Reborn Posted July 1, 2015 Posted July 1, 2015 Hello guys..How can you able to give a prize to the last player standing in the event map automatically without talking to an NPC? Quote
Moriarty Posted July 1, 2015 Posted July 1, 2015 is it a PvP? If yes, create a OnPcKillEvent that checks if getmapusers(strcharinfo(3)) == 1, then, give the prizes. Quote
Reborn Posted July 2, 2015 Author Posted July 2, 2015 its an event. the player needs to flee from the monster and the last player standing will get the prize automatically without talking to any NPC Quote
Moriarty Posted July 2, 2015 Posted July 2, 2015 (edited) Then you use something like this OnPcDieEvent: recovery 0; warp "SavePoint",0,0; // Ress player and warp out of map detachrid; if( getmapusers("your_event_map_name") == 1 ) { // If there is only one man standing addrid(1); // It will attach that player into script getitem id,amount; announce "Player "+strcharinfo(0)+" won the event",8; } end; Make sure that this npc script is located on the event map, or addrid won't work. Edited July 12, 2015 by Emistry codebox Quote
Question
Reborn
Hello guys..How can you able to give a prize to the last player standing in the event map automatically without talking to an NPC?
3 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.