summaryrefslogtreecommitdiff
path: root/npc/003-3/malindou.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-11 22:02:35 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-11 22:02:35 -0300
commitb5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa (patch)
treeed6ac2e6c2f73a7d93a2ce58b85ff778b5140b41 /npc/003-3/malindou.txt
parentc91c1302669d3c16c7ffb04d0891bbe6a3c753d4 (diff)
downloadserverdata-b5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa.tar.gz
serverdata-b5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa.tar.bz2
serverdata-b5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa.tar.xz
serverdata-b5302ab3c52e80a61d16d1ef6db523c3b6a6b1aa.zip
Malindou - Fix an exploit on referral
Diffstat (limited to 'npc/003-3/malindou.txt')
-rw-r--r--npc/003-3/malindou.txt16
1 files changed, 12 insertions, 4 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index 09a21ef8e..f2efd46ce 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -475,17 +475,25 @@ OnPCBaseLvUpEvent:
sc_end SC_CASH_RECEIVEITEM;
break;
case 25:
- 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);
+ }
case 50:
- 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);
+ }
case 75:
- if (#REFERRAL_PROG && BaseLevel == 75)
+ if (#REFERRAL_PROG && BaseLevel == 75 && #REFERRAL_CTRL < 3) {
+ #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);
+ }
case 100:
- if (#REFERRAL_PROG && BaseLevel == 100)
+ if (#REFERRAL_PROG && BaseLevel == 100 && #REFERRAL_CTRL < 4) {
+ #REFERRAL_CTRL=4;
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);
+ }
case 125:
case 150:
dispbottom l("Milestone levelup: A reward can now be claimed in Tulimshar.");