From edb5ca74c67ec618a4d82dfd3d847b261f260f3e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Aug 2019 22:03:34 -0300 Subject: Fix exploit involving referral scope in client updater --- npc/functions/clientversion.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index da09f7d57..15300aaee 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -538,14 +538,18 @@ function script clientupdater { skill TMW2_TRANSMIGRATION, 10, 0; } // Post-poned Referral Rewards - if (#REFERRAL_PROG && BaseLevel >= 25) + if (#REFERRAL_PROG && BaseLevel >= 25 && #REFERRAL_CTRL < 1) { + #REFERRAL_CTRL=1; rodex_sendmail(gf_charid(#REFERRAL_PROG), "TMW2 Team", "Recruited Player got Lv 25!", strcharinfo(0)+" just got level 25!\nAs they get stronger, more rewards will be sent to you!", 0, SilverGift, 1); - if (#REFERRAL_PROG && BaseLevel >= 50) + } + if (#REFERRAL_PROG && BaseLevel >= 50 && #REFERRAL_CTRL < 2) { + #REFERRAL_CTRL=2; rodex_sendmail(gf_charid(#REFERRAL_PROG), "TMW2 Team", "Recruited Player got Lv 50!", strcharinfo(0)+" just got level 50!\nAs they get stronger, more rewards will be sent to you!", 0, ArcmageBoxset, 1); - if (#REFERRAL_PROG && BaseLevel >= 75) + } + #REFERRAL_CTRL=3; + if (#REFERRAL_PROG && BaseLevel >= 75 && #REFERRAL_CTRL < 3) { rodex_sendmail(gf_charid(#REFERRAL_PROG), "TMW2 Team", "Recruited Player got Lv 75!", strcharinfo(0)+" just got level 75!\nAs they get stronger, more rewards will be sent to you!", 0, PrismGift, 1); - if (#REFERRAL_PROG && BaseLevel >= 100) - rodex_sendmail(gf_charid(#REFERRAL_PROG), "TMW2 Team", "Recruited Player got Lv 100!", strcharinfo(0)+" just got level 100!\nTime to reap what you've sow for so long!", 0, SupremeGift, 1); + } // Eisten Rewards if (BaseLevel >= 50 && getq(TulimsharQuest_Eistein) == 2) getitem SilverGift, 1; -- cgit v1.2.3-70-g09d2