sizenine Posted October 25, 2013 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted October 25, 2013 Share 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 Link to comment Share on other sites More sharing options...
sizenine Posted October 25, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
Anyone know the best way to do this? OnPCDieEvent doesn't exactly work right? Since that command doesn't bind to maps individually?
Link to comment
Share on other sites