diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-11 22:03:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-11 22:03:34 -0300 |
commit | edb5ca74c67ec618a4d82dfd3d847b261f260f3e (patch) | |
tree | 0dfd3b017ace321aa17510c8a5bfd8cf498b58c2 /npc/functions/clientversion.txt | |
parent | b5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa (diff) | |
download | serverdata-edb5ca74c67ec618a4d82dfd3d847b261f260f3e.tar.gz serverdata-edb5ca74c67ec618a4d82dfd3d847b261f260f3e.tar.bz2 serverdata-edb5ca74c67ec618a4d82dfd3d847b261f260f3e.tar.xz serverdata-edb5ca74c67ec618a4d82dfd3d847b261f260f3e.zip |
Fix exploit involving referral scope in client updater
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 14 |
1 files 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; |