Thread: Script Question
View Single Post
  #1  
Old 06-23-2001, 06:03 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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;
}

__________________

Reply With Quote