From 2987afb977b5d759e68a4ed9be59aaee629dd6ce Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 18:55:08 -0300 Subject: Fix some minor buggies... --- npc/functions/clientversion.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'npc/functions/clientversion.txt') diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 058796e6e..fe7b35198 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -12,7 +12,7 @@ function script checkclientversion { if (isin("000-0", 0, 0, 40, 40)) { UPDATE=gettimetick(2); // if $EVENT$ is REFFER: - if (#REFERRAL_PROG == "") { + 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; @@ -20,12 +20,12 @@ function script checkclientversion { 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$="nah"; + .@ref$=""; do { input .@ref$; mes ""; - if (.@ref$) { + if (.@ref$ != "") { .@ref=getcharid(0, strip(.@ref$)); if (.@ref > 0) { #REFERRAL_PROG=.@ref; @@ -42,13 +42,12 @@ function script checkclientversion { .@ref$=""; } } else { - .@ref$="nah"; 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; } if (ClientVersion >= 24) return; - } while (.@ref$ != ""); + } while (.@ref$ == ""); } } -- cgit v1.2.3-60-g2f50