Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Adding aVa, Mythras and Lisbus packs
Browse files Browse the repository at this point in the history
COMMIT

Adding aVa, Mythras and Lisbus packs

aVa

- initial commit

Mythras

- initial commit

Lisbus

- initial commit

aCis

- Manifest  addition

Lucera

- Project update
  • Loading branch information
nightw0lv committed Dec 24, 2020
1 parent eef91f6 commit d2aa391
Show file tree
Hide file tree
Showing 105 changed files with 7,215 additions and 38 deletions.
8 changes: 8 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/artifacts/VDSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/dictionaries/CPU.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/libraries/libs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions HighFive/Mythras/VDSystem/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions HighFive/Mythras/VDSystem/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Manifest-Version: 1.0
Main-Class: VDSystemManager
Class-Path: itopz.com

39 changes: 39 additions & 0 deletions HighFive/Mythras/VDSystem/Patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git .classpath .classpath
index 1d6ec15..353f44f 100644
--- .classpath
+++ .classpath
@@ -29,5 +29,6 @@
<classpathentry exported="true" kind="lib" path="dist/libs/tools.jar"/>
<classpathentry exported="true" kind="lib" path="dist/libs/trove-3.0.3.jar"/>
<classpathentry exported="true" kind="lib" path="dist/libs/worldwind.jar"/>
+ <classpathentry kind="lib" path="dist/libs/VDSystem.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git dist/libs/VDSystem.jar dist/libs/VDSystem.jar
new file mode 100644
index 0000000..b7da9d8
--- /dev/null
+++ dist/libs/VDSystem.jar
Binary files differ
diff --git java/l2f/gameserver/GameServer.java java/l2f/gameserver/GameServer.java
index f7ed94f..b7aab4b 100644
--- java/l2f/gameserver/GameServer.java
+++ java/l2f/gameserver/GameServer.java
@@ -97,6 +97,7 @@

//import Elemental.datatables.CharacterMonthlyRanking;
import Elemental.datatables.OfflineBuffersTable;
+import itopz.com.VDSystemManager;
//import Elemental.datatables.ServerRanking;
//import Elemental.managers.AutoRaidEventManager;

@@ -341,6 +342,9 @@
printSection("Offline Buffers");
OfflineBuffersTable.getInstance().restoreOfflineBuffers();
}
+
+ VDSystemManager.getInstance();
+
Shutdown.getInstance().schedule(Config.RESTART_AT_TIME, 2);
printSection("");
_log.info(">>>>>>>>>> GameServer Started <<<<<<<<<");
12 changes: 12 additions & 0 deletions HighFive/Mythras/VDSystem/VDSystem.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="libs" level="project" />
</component>
</module>
81 changes: 81 additions & 0 deletions HighFive/Mythras/VDSystem/config/VDSystem.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# ================================================================== #
# -- ITOPZ Console VARS -- #
# ================================================================== #
# Console font, can be any font
# Default: Roboto
ConsoleFont = Roboto

# Console font size
# Default: 12
ConsoleFontSize = 12

# Console R,G,B background color
# R default: 204
ConsoleColorR = 204
# G default: 238
ConsoleColorG = 238
# B default: 241
ConsoleColorB = 241

# Console width size
# Default: 400
ConsoleWidth = 400

# Console height size
# Default: 350
ConsoleHeight = 350

# ================================================================== #
# -- ITOPZ GLOBAL VOTE VARS -- #
# ================================================================== #
# Enable global reward
# Default: True
iTopZGlobalVoteReward = True

# Server ID
# Default: 325339 (Test Server)
ServerID = 325339

# Api key
# Can be obtained at https://itopz.com/ after adding a server.
# Default: DEMO (random values returned for test environments)
ApiKey = DEMO

# Check Votes delay in seconds
# Default: 1800 (30 minutes)
CheckDelay = 1800

# Announce statistics on game
# Default: True
AnnounceStatistics = True

# Reward every XX votes
# Default: 20
VoteStep = 20

# Reward items
# itemId (int), MIN(long), MAX(long), CHANCE(min 0, max 100)
# example: itemId,MIN-MAX-CHANCE;itemId,MIN-MAX-CHANCE;
# Default: 57,10000-99999-100;5575,500-1000-80;6622,1-5-20;
GlobalRewards = 57,10000-99999-100;5575,500-1000-80;6622,1-5-20;

# ================================================================== #
# -- ITOPZ Individual VOTE VARS -- #
# ================================================================== #
# Will also register a new command .itopz
# Enable individual reward
# Default: True
IndividualReward = True

# Reward items
# itemId (int), MIN(long), MAX(long), CHANCE(min 0, max 100)
# example: itemId,MIN-MAX-CHANCE;itemId,MIN-MAX-CHANCE;
# Default: 57,10000-99999-100;5575,500-1000-80;6622,1-5-20;
IndividualRewards = 57,10000-99999-100;5575,500-1000-80;6622,1-5-20;

# ================================================================== #
# -- ITOPZ Donate Manager VARS -- #
# ================================================================== #
# Enable Donation manager reward
# Default: True
DonateManager = True
Binary file added HighFive/Mythras/VDSystem/images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HighFive/Mythras/VDSystem/images/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions HighFive/Mythras/VDSystem/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
**VDS Vote Donate System**

Implementation of vote global and individual system with itopz donate panel task manager.

**Requirement**
- aVa Sources
- Voiced Command Handler (provided)
- Patch installation (provided)
- JDK 8
- Remove ```commons-lang3-3.0.jar``` from lib folder and from build path
- Add ```commons-lang3-3.11.jar``` on your lib folder and build path
- ```commons-lang3-3.11.jar``` is provided on releases

**Build**
- File ```VDSystem.jar```
- Version: 1.0

**Global vote system for iTopZ**

- IP restricted rewards
- Reward every XX minutes
- Reward step every XX votes
- Reward item list will check if item exist
- Reward item list with chances 0-100%
- Reward item randomized of min-max values
- Update console votes and ranking
- Save votes in case of restarting the server
- Monthly reset for votes
- Print response failure message
- Configured announcement print of server vote statistics

**Individual vote system for iTopZ**

- Automatically register .itopz command
- Reward item list will check if item exist
- Reward item list with chances 0-100%
- Reward item randomized of min-max values
- Reward will set as "expired" after 12hours checking server time
- Reward reuse 12hours
- Command used after reward will show remaining time (PM/AM) to vote again
- Check for local ips is restriction
- Check for response errors
- Check if player voted

**Donate Management** (upgrade version of [Donate Panel](https://github.com/nightw0lv/DonatePanel))

- Player donates through Donate Panel
- Item will be rewarded in game

**Configs**

- Fully configured Console
- Fully configured global reward
- Fully configured individual reward

**Console**

- Information buttons
- Can send global reward in-game manually
- Prints rewards
- Prints donates
- Prints monthly reset
- Prints database updates
- Shows server ranking statistics
- Shows if you use DEMO or API key as mode status
- Auto scrolling messages
- Fully configured


**Note**

- Can be extended to add all topsites
- Can be used with LIVE and TEST modes

**Installation**
![https://github.com/nightw0lv/iTopZ-Java/tree/master/HighFive/aVa/VDSystem/Patch.diff](Patch.diff)


**TODO**

- Add HWID protection
- Replace JSON result parsing with StringJoiner

```Special thanks to Rationale``` :cry:

**Images**
![https://prnt.sc/w6zkpg](images/1.png)
![https://prnt.sc/w6zl79](images/2.png)
![https://prnt.sc/w6zp4l](images/3.png)
![https://prnt.sc/w6zqok](images/4.png)
![https://prnt.sc/w6zuyx](images/5.png)
![https://prnt.sc/w6zxyo](images/6.png)
![https://prnt.sc/w6zzcs](images/7.png)

**Chancelog**

- Version 1.0
- Initial commit
Loading

0 comments on commit d2aa391

Please sign in to comment.