Total Posted December 31, 2016 Posted December 31, 2016 (edited) Hello, I'm creating a system where if a player dies, they are auto hidden and must find the spot they died on to carry on. World of Warcraft Style. Is it possible to determine how you have been killed? I only want this to trigger if killed by a monster and not trigger if they was killed by another player in PvP, BG, WoE etc OnPCDieEvent: This is for any death isn't it? if their another trigger to use? i was thinking of using something like; OnPCDieEvent: if map="pvp1,pvp2,woe1,woe2" end; <else script here> Would this work? Thanks in advanced. Edited December 31, 2016 by Total Quote
0 nitrous Posted December 31, 2016 Posted December 31, 2016 With OnPCDieEvent: you could check the killerrid and see if it is a monster, although it might require some extra script commands. Quote
0 Skorm Posted January 1, 2017 Posted January 1, 2017 (edited) Just adding to @Nitrous's answer here... - script Mob Death -1,{ OnPCDieEvent: if( killerrid > 100000000 ) { getunitdata( killerrid, .@killerrid ); if( getarraysize(.@killerrid) == 49 ) dispbottom "You were killed by "+getmonsterinfo( .@killerrid[13], MOB_NAME )+"."; } } Edited January 1, 2017 by Skorm Quote
Question
Total
Hello,
I'm creating a system where if a player dies, they are auto hidden and must find the spot they died on to carry on.
World of Warcraft Style.
Is it possible to determine how you have been killed?
I only want this to trigger if killed by a monster and not trigger if they was killed by another player in PvP, BG, WoE etc
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.