sizenine Posted October 25, 2013 Posted October 25, 2013 Anyone know the best way to do this? OnPCDieEvent doesn't exactly work right? Since that command doesn't bind to maps individually? Quote
GmOcean Posted October 25, 2013 Posted October 25, 2013 It doesn't bind to maps individually but it i the best method to track deaths, in comparison to other methods such as seeing if anyone dropped to 0 HP in a continuous every second. Just add a map check with the OnPCDieEvent to compare it to it's instanced version. OnPCDieEvent: if( instance_mapname(strcharinfo(3)) == instance_mapname("prontera") ){end;} dispbottom "A shame. Maybe next time. Come back when your stronger kid."; instance_destroy; end; I don't know why it is like this, but from my tests, the if(statement) needs to be == instead of != to actually end. Otherwise people outside of an instance would trigger the event. But it could just be that my revision is outdated. At any rate, you should be able to properly run a similar check to fit your needs, so that you can perform script functions without interference from other scripts. 1 Quote
sizenine Posted October 25, 2013 Author Posted October 25, 2013 Thanks Ocean, I will test this out. Guess my revision is too outdated, don't have instance_mapname, or at least its not listed in the script_commands.txt yet. And nice seeing you again. Quote
Question
sizenine
Anyone know the best way to do this? OnPCDieEvent doesn't exactly work right? Since that command doesn't bind to maps individually?
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.