View Single Post
  #10  
Old 02-28-2002, 02:18 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by joseyisleet
-=Josey=-
NPC Code:

if (playerenters&&hasweapon(yourweaponhere)){
toweapons yourweaponhere;
sleep .1;
destrory;
}



You may have to make the sleep just a tad bit longer. It should work though. Or in your weapon you could use:

NPC Code:

if (playerenters){
toweapons Destroying soon;
timeout=.05;
}
if (timeout&&hasweapon(Destroying soon)){
if (strequals(#L,levelname.graal)){
destroy;
}
timeout=.05;
}


You could use either of those two.

The question is when do you want the weapon to be destroyed?
if it is part of a trading system or something then you could add the bottom code from josey into everyweapon or try and make a global one.
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote