-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
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
There are no files selected for viewing
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.
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.
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.
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.
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 | ||
|
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 <<<<<<<<<"); |
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> |
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 |
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 |