PDA

View Full Version : Script Question


ownerofbabylon
06-23-2001, 03:19 PM
I have a NPC weapon but i need this. I want it so someone with the guild tag (WarriorofLight) who says healer gets the weapon called healer. but if someone doesnt have the tag it warps them to jail.graal can anyone help?

KJS
06-23-2001, 03:48 PM
basically go like this

if(strequals(#g,WarriorofLight)){
//do whatever
}else{
setlevel2 jail.graal,30,30;
}

06-23-2001, 06:05 PM
should be like this...

if (strequals(#g,Warrioroflight)&&strequals(#c,healer)) {
toweapons Healer;
else {setlevel bannedforevern00b.graal;
}
}

grim_squeaker_x
06-23-2001, 07:03 PM
Yakuzo, this is how Graal would view that:
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:
if (playerchats&&!(isweapon)&&strequals(#c,healer)) {
if (strequals(#g,Warrioroflight)) toweapons Healer;
else setlevel2 jail.graal,32,32;
}

Yakuna2001
06-23-2001, 07:20 PM
Originally posted by grim_squeaker_x
Yakuzo, this is how Graal would view that:
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:
if (playerchats&&!(isweapon)&&strequals(#c,healer)) {
if (strequals(#g,Warrioroflight)) toweapons Healer;
else setlevel2 jail.graal,32,32;
}
yep, hes got the idea

ownerofbabylon
06-23-2001, 11:37 PM
what does the isweapon statement do??

General
06-24-2001, 12:48 AM
No wonder your servers not up

Babylon