diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:48:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:48:21 -0300 |
commit | be6cf986bbbd122a15c12ffafef2b5931c56c1b3 (patch) | |
tree | 65a2f61598908dfb8782b75e90e8c5c83ab18933 | |
parent | df01eb784f3cb59bea386b21fdf89a09c089293e (diff) | |
download | serverdata-be6cf986bbbd122a15c12ffafef2b5931c56c1b3.tar.gz serverdata-be6cf986bbbd122a15c12ffafef2b5931c56c1b3.tar.bz2 serverdata-be6cf986bbbd122a15c12ffafef2b5931c56c1b3.tar.xz serverdata-be6cf986bbbd122a15c12ffafef2b5931c56c1b3.zip |
Yay, refeer system works ^_^
Only the guest get the reward automatically, for now.
-rw-r--r-- | db/re/item_db.conf | 39 | ||||
-rw-r--r-- | npc/functions/clientversion.txt | 2 |
2 files changed, 21 insertions, 20 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index d8dbb799f..f4c5c548f 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2226,28 +2226,29 @@ item_db: ( if (BaseLevel < 5) { dispbottom l("You must reach level 5 to open this gift."); getitembound FriendGift, 1, 1; - } - getitem ScorpionStinger, rand(1,3); - getitem BugLeg, rand(1,3); - getitem MaggotSlime, rand(1,3); - Zeny=Zeny+50; + } else { + getitem ScorpionStinger, rand(1,3); + getitem BugLeg, rand(1,3); + getitem MaggotSlime, rand(1,3); + Zeny=Zeny+50; - if (rand(1,2) == 1) - getitem Beer, 1; - else - getitem CottonCloth, 1; + if (rand(1,2) == 1) + getitem Beer, 1; + else + getitem CottonCloth, 1; - .@it=PiouLegs; - switch(rand(1,3)) { - case 1: - .@it=PiouLegs;break; - case 2: - .@it=Piberries;break; - case 3: - .@it=Cheese;break; + .@it=PiouLegs; + switch(rand(1,3)) { + case 1: + .@it=PiouLegs;break; + case 2: + .@it=Piberries;break; + case 3: + .@it=Cheese;break; + } + getitem .@it, rand(2,3); + dispbottom l("Dear @@, I send you this gift in hopes you do well in TMW2.", strcharinfo(0)); } - getitem .@it, rand(2,3); - dispbottom l("Dear @@, I send you this gift in hopes you do well in TMW2.", strcharinfo(0)); "> }, { diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index cf2b424db..5069e61ad 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -57,7 +57,7 @@ function script checkclientversion { next; } } while (.@ref$ == ""); - if (ClientVersion >= 24) return; + if (ClientVersion >= 24) close; } } |