summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-05 17:55:57 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-05 17:55:57 -0300
commit3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25 (patch)
tree153dfff16c948638d9c561041a9791eba4c5585f
parenta2056f8555670f3a44a374855ff977b73b8a13b0 (diff)
downloadserverdata-3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25.tar.gz
serverdata-3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25.tar.bz2
serverdata-3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25.tar.xz
serverdata-3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25.zip
EMERGENCY PATCH - CHED SUMMER REWARD PORTABILITY
-rw-r--r--npc/functions/clientversion.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 8a1793632..bca4f3504 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -411,6 +411,7 @@ function script clientupdater {
"apane", "omatt";
setarray .@expval, 211625, 1955041, 938439, 59663, 73899, 10338, 7494, 7857, 1992, 360, 443, 193, 5180;
setarray .@gpval, 150321, 863215, 3263, 973137, 5650, 18343, 45227, 42002, 37381, 50000, 50450, 50275, 49988;
+ setarray .@summer, 19, 30, 55, 0, 4, 2, 3, 4, 0, 0, 0, 0, 2;
/* Data for python
# import exp from exptable
i=0
@@ -455,6 +456,20 @@ function script clientupdater {
mesc l("Congratulations to everyone who participated on the event, even those who didn't made to the top 10!");
if (.@ranking >= 0) {
#ADD_LVL=.@expval[.@ranking];
+
+ // Force Ched quest start if you haven't done so already
+ .@year=getq(SQuest_Ched);
+ if (.@year != (gettime(GETTIME_YEAR)-2000))
+ setq SQuest_Ched, (gettime(GETTIME_YEAR)-2000), 0, 0;
+
+
+ @ched=getq2(SQuest_Ched);
+ .@pts=.@summer[.@ranking];
+ if (.@pts) {
+ getexp rand2(.@pts-1, .@pts*11/10), rand2(0,.@pts/25);
+ setq2 SQuest_Ched, @ched+.@pts;
+ }
+
switch (.@ranking+1) {
case 1:
getitembound Tyranny, 1, 1;