diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:56:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:56:34 -0300 |
commit | ecf58523693b415ea017257f96b9460b43f4998c (patch) | |
tree | 58c0073be55fe0632dbaa6006b2dae579333aa1a /npc/functions/clientversion.txt | |
parent | 5ee5addd52a052c28f5815da0a205d7c8b835c8c (diff) | |
download | serverdata-ecf58523693b415ea017257f96b9460b43f4998c.tar.gz serverdata-ecf58523693b415ea017257f96b9460b43f4998c.tar.bz2 serverdata-ecf58523693b415ea017257f96b9460b43f4998c.tar.xz serverdata-ecf58523693b415ea017257f96b9460b43f4998c.zip |
Refeer is handled by Nard now, and must be enabled via @event
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 5069e61ad..2821ad836 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -11,54 +11,6 @@ function script checkclientversion { // Skip any update for newcomers if (isin("000-0", 0, 0, 40, 40)) { UPDATE=gettimetick(2); - // if $EVENT$ is REFFER: - if (#REFERRAL_PROG == 0) { - mesn l("TMW2 Staff"); - mesc l("Hello, and welcome to TMW2: Moubootaur Legends!"), 3; - mesc l("(Click next button to advance dialogs)"),9; - next; - mesn l("TMW2 Staff"); - mesc l("Did you came here by someone advise? If yes, write their name here!"), 3; - mesc l("If this is not the case, just click on \"Send\"."), 3; - .@ref$=""; - do - { - input .@ref$; - debugmes "Hercules is bugged: "+.@ref$; - mes ""; - if (.@ref$ != "") { - .@ref=gf_accid(strip(.@ref$)); - if (.@ref > 0) { - if (.@ref == getcharid(3)) { - mesn l("TMW2 Staff"); - mesc l("Hahah, silly, that's yourself!"), 3; - mesc l("Try again!"), 3; - next; - .@ref$=""; - } else { - #REFERRAL_PROG=.@ref; - getitembound FriendGift, 1, 1; - mesn l("TMW2 Staff"); - mesc l("Well, welcome to the game! If you have any doubt, shout on #world for help!"), 3; - mesc l("Your friend also sent you a gift - open it when you get level 5!"), 3; - next; - } - } else { - mesn l("TMW2 Staff"); - mesc l("Oops, there is nobody known as @@ on this game.", .@ref$), 3; - mesc l("Could you try again? There could be a typo!"), 3; - next; - .@ref$=""; - } - } else { - .@ref$="None"; - mesn l("TMW2 Staff"); - mesc l("I see. Well, welcome to the game! If you have any doubt, shout on #world for help!"), 3; - next; - } - } while (.@ref$ == ""); - if (ClientVersion >= 24) close; - } } // Update handler (use `date +%s` for this) |