Thread: Script Question
View Single Post
  #5  
Old 06-23-2001, 06:20 PM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
Quote:
Originally posted by grim_squeaker_x
Yakuzo, this is how Graal would view that:
NPC Code:
if (strequals(#g,Warrioroflight)&&strequals(#c,healer  )) {
toweapons Healer;
else {
setlevel bannedforevern00b.graal;
}
}


And since there is no if before the else in this case you would just get a syntax error... A better version is this:
NPC Code:
if (playerchats&&!(isweapon)&&strequals(#c,healer)) {
if (strequals(#g,Warrioroflight)) toweapons Healer;
else setlevel2 jail.graal,32,32;
}

yep, hes got the idea
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
Reply With Quote