Hadeszeus 15 Posted March 1, 2014 How to check if players killed by mobs. OnPCDieEvent: if ( killerrid >= 3000000) { do something; } else Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted March 1, 2014 (edited) OnPCDieEvent: if ( killerrid >= 110000000 ) { //--->killed by a mob ........................... } end; if(killerrid==getcharid(3))----->killed by him/her self (ex: Grand Cross) if(!killerrid) ----->eat poison potion Edited March 1, 2014 by Angelmelody 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted March 1, 2014 (edited) OnPCDieEvent: This special label triggers when a player dies. The variable 'killerrid' is set to the ID of the killer. killerrid < 1500000 (min char_id) Edited March 1, 2014 by evilpuncker Quote Share this post Link to post Share on other sites
0 Hadeszeus 15 Posted March 1, 2014 (edited) OnPCDieEvent: This special label triggers when a player dies. The variable 'killerrid' is set to the ID of the killer. killerrid < 1500000 (min char_id) Dunno why it's not working.. I tried if OnPCDieEvent: if ( killerrid < 1500000 ) { do; } else and OnPCDieEvent: if ( killerrid < 150000 ) { do; } else EDITED: Solved. killerrid >= 110000000 Edited March 1, 2014 by Hadeszeus Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted March 1, 2014 try if(killerrid >= 1001 && killerrid <= 3109) Quote Share this post Link to post Share on other sites
0 BuLaLaKaW 7 Posted March 1, 2014 why not do a test ? OnPCDieEvent: // display killerid and you will see what killerid is really or the value, in that way you can easily do something on your script its like reversing the process .,.. check the value first then once you have the value do the correct conditional statement you will be amazed ... OnPCDieEvent: This special label triggers when a player dies. The variable 'killerrid' is set to the ID of the killer. Quote Share this post Link to post Share on other sites
0 Hadeszeus 15 Posted March 1, 2014 (edited) OnPCDieEvent: if ( killerrid >= 110000000 ) { ........................... } end; if(killerrid==getcharid(3))----->killed by him/her self if(!killerrid) ----->eat poison potion Thanks for this if(killerrid==getcharid(3))----->killed by him/her self if(!killerrid) ----->eat poison potion I was able to solved it using killerrid >= 110000000 Thanks everyone! Edited March 1, 2014 by Hadeszeus Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 1, 2014 http://rathena.org/board/topic/91930-how-to-know-if-the-monster-kill-you-or-a-human/?p=241994 not good enough if you killed by pets, homunculus or mercenary, it also return ID above 100000000 Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 1, 2014 OnPCDieEvent: if ( killerrid >= 110000000 ) { //--->killed by a mob ........................... } end; if(killerrid==getcharid(3))----->killed by him/her self (ex: Grand Cross) if(!killerrid) ----->eat poison potion Ohh, always I thought, killerrid will return mobid. Quote Share this post Link to post Share on other sites
How to check if players killed by mobs.
Share this post
Link to post
Share on other sites