From 4df70ec2c5578be9b7d2448b185997f29bf471f0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Aug 2019 16:47:13 -0300 Subject: From now on, rewards for invites (referral system) will be handled automatically. --- db/re/item_db.conf | 2 ++ npc/003-3/malindou.txt | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 43b8aab96..9711fbcbb 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2221,6 +2221,8 @@ item_db: ( $REFERRAL_IDS[#REFERRAL_PROG]=$REFERRAL_IDS[#REFERRAL_PROG]+1; // I can't warrant this won't break stuff so I left commented out //message(#REFERRAL_PROG, strcharinfo(0)+" accepted your invite to play TMW2."); + .@charid=callfunc("gf_charid", #REFERRAL_PROG); + rodex_sendmail(.@charid, "TMW2 Team", "Invite Accepted", strcharinfo(0)+" accepted your invite and got level 5!\nAs they get stronger, more rewards will be sent to you!", rand(25,50)); } "> }, diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index b39b13d08..09a21ef8e 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -475,9 +475,17 @@ OnPCBaseLvUpEvent: sc_end SC_CASH_RECEIVEITEM; break; case 25: + if (#REFERRAL_PROG && BaseLevel == 25) + 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) + 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) + 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) + 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."); -- cgit v1.2.3-60-g2f50