View Single Post
Old 04-18-2008, 12:41 PM   #2 (permalink)
Lord_Greywolf
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,748
Send a message via Yahoo to Lord_Greywolf
Default

i do not think the weapon used at the time he was killed is stored

but you can get the current weapon he is holding
just do a findon layer check for 1handed and 2 hand layers and if base weapon - then you have it

BUT if what i am thinking you really want is this:
if the critter was killed using a certain weapon
then either extra gold, items, etc etc would be in corpse
or something happens to weapon or owner

then you need to do the check in the onafterdeath (or was it ondeath) part of the critters script
(or put that overide in)
onbeforedeath might work also
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote