Who or what killed me?
I can't seem to find what I am wanting to do. I thought it would be simple and it probably is. Just not today.
I would like to get the ID and eventually the name of the creature that killed a player. In case of PvP the killing player would be nice. If that's not possible, then maybe just a true/false that it was a another player All other deaths marked as "from an unknown source" or the like |
"Killer variables," says Secrets.
Code:
$killer_damage Code:
sub EVENT_DEATH_COMPLETE { |
I fiddled around with a bunch of different things and could not get any of them to work until I stumbled into this:
Code:
sub EVENT_DEATH_COMPLETE{ |
The reason GetCleanName() works on PCs and NPCs is because GetCleanName() is a Mob method that PCs and NPCs inherit through subclass inheritance. Try this:
Code:
sub EVENT_DEATH_COMPLETE { |
Awesome! Thanks Kingly. When I had the practice toon nuke himself I got this message:
Zeppa the Ranger has just been killed in the Overthere by Zeppa This is perfect. |
You're welcome, I'm glad you got it worked out! Always happy to be of assistance.
|
My final Code
Code:
sub EVENT_DEATH_COMPLETE { |
All times are GMT -4. The time now is 07:19 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.