PDA

View Full Version : NPC Help please...


Nai
03-11-2001, 02:22 AM
Can you help with this script anyone?

Well, I have the script...I just need to know how
to make it to where if you have the item already
after you bought it and you try to buy it again
it says like "You already have this Item!"

Thanks for reading this!

grim_squeaker_x
03-11-2001, 02:28 AM
Just put in this:

if (fillinglagsnormallyneededforbuyinghere&&!isweapon) {
if (hasweapon(weaponname) {
setcharprop #c,Sorry you already have this item!;
}
else {
toweapons weaponname;
optionalextrascriptthingshere;
}
}
And then from here on whatever you had already scripted.

Nai
03-11-2001, 02:33 AM
K, I will check it out.

Fai
03-11-2001, 03:45 AM
OMG Even I knew that :|

Psyker
03-14-2001, 03:31 AM
Nai, I thought you looked at my script for that?
(unless it didn't work)