diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/clientversion.txt | 15 |
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; |