findweapon(str) - returns object
I'd presume you'd do something like:
NPC Code:
if (findweapon(weaponname) == true) {
doStuff();
}
I haven't had a play with it, but I'd say from the name of the command it would probably be the substitute, or close to, for hasweapon(str);