Quote:
Originally posted by GoZelda
I'm having some problems with the following script, i don't see what's wrong, please help me...
// NPC made by Cyrin
setimg beer.png
if (playertouchsme){
// wont' work online, but fine for offline
toweapons Dagger;
}
if (weaponfired) {
if (strequals(#s(client.equipment),fists)){
setstring client.equipment,dagger;
setplayerprop #c,Equipped Dagger;
setstring client.weaponpower,2;
}
if (strequals(#s(client.equipment),dagger)){
setstring client.equipment,fists;
setplayerprop #c,Unequipped Dagger;
setstring client.weaponpower,1;
}
}
|
If the script worked it would always be set client.equipment=fists
becouse you change it to dagger then the next if statement checks if it's dagger and changes it back to fists.
You might try an elseif statement.
To busy arguing to catch that guys?