From 3d3ac198a1b3d36a6cc60b20e32ae1a92ee46e25 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 5 Aug 2019 17:55:57 -0300 Subject: EMERGENCY PATCH - CHED SUMMER REWARD PORTABILITY --- npc/functions/clientversion.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; -- cgit v1.2.3-60-g2f50