|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Master of the Internet
|
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 ..... :) |
|
|
|
|
|
#3 (permalink) |
|
Lurker
Join Date: Mar 2008
Posts: 5
|
Yeah, I was thinking of doing it in the OnDeath method - but i found that the OnKilledBy method gives the mobile that killed, which i obviouslly need to change the item props.
Can you think of a way to get the 'killers' id from the OnDeath routine? Is there a particular reason you recommend using that method rather than the OnKilledBy. Thanks btw, as what you suggested does work using what I have now. Last edited by IceColdFish; 04-19-2008 at 08:11 AM. |
|
|
|
|
|
#4 (permalink) |
|
Master of the Internet
|
onkilledby works also - just did not think of that one
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
![]() |
| Bookmarks |
| Tags |
| monster, onkilled, weapon |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|