sizenine Posted October 25, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 12 Joined: 02/17/12 Last Seen: January 25, 2018 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 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 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 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 12 Joined: 02/17/12 Last Seen: January 25, 2018 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...
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?
Link to comment
Share on other sites
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.