From 57122f6e33b9019619c8f7280b0e89313915d8da Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 23 Jul 2024 21:22:35 -0300 Subject: June's Hardcore Challenge rewards --- npc/functions/clientversion.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index b61863dc4..238e56bb2 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -1241,6 +1241,32 @@ function script clientupdater { if (getq(SQuest_Paxel) >= 2) TakeMoney(10000, l("Paxel forgot to collect payment for Prsm helmet")); } + // June's Hardcore Challenge + // ter 23 jul 2024 19:50:00 -03 + if (UPDATE < 1721775000) { + UPDATE=1721775000; + .@dg=1; + showavatar NPC_LOF_RICH; + mesn ("TMW2 Staff"); + mesc l("Hello, @@! We are proud to announce the @@ RESULTS!", strcharinfo(0) , b(l("June's Hardcore Challenge"))), 3; + next; + mesc l("1st Place - Poppet (Lv 35)"); + mesc l("2nd Place - ThinkSome (Lv 30)"); + mesc l("3rd Place - Test_User (Lv 24)"); + mesc l("4th Place - YuckFou (Lv 21)"); + + if (strcharinfo(0) == "poppet") + getitem StrangeCoin, 250; + else if (strcharinfo(0) == "ThinkSome") + getitem StrangeCoin, 200; + else if (strcharinfo(0) == "Test_User") + getitem StrangeCoin, 150; + else if (strcharinfo(0) == "YuckFou") + getitem StrangeCoin, 100; + + mes ""; + next; + } // TODO: Anniversary (leap years disregarded) // :// End of Regular Update System @@ -1257,6 +1283,20 @@ function script clientupdater { #VALENTINE20_REWARDS=false; } + // Deconstitute global login variables + if ($BETASERVER && ##ADD_SC) { + #ADD_SC += ##ADD_SC; + ##ADD_SC = 0; + } + if ($BETASERVER && ##ADD_GP) { + #ADD_GP += ##ADD_GP; + ##ADD_GP = 0; + } + if ($BETASERVER && ##ADD_MPT) { + #ADD_MPT += ##ADD_MPT; + ##ADD_MPT = 0; + } + // Permanent Gold Boost // #ADD_GP means the user have to right to get some gp if (#ADD_GP) { -- cgit v1.2.3-70-g09d2