Reborn Posted July 1, 2015 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 290 Reputation: 3 Joined: 09/29/13 Last Seen: December 28, 2024 Share 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 Link to comment Share on other sites More sharing options...
Moriarty Posted July 1, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 135 Reputation: 13 Joined: 06/20/12 Last Seen: April 14, 2018 Share 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 Link to comment Share on other sites More sharing options...
Reborn Posted July 2, 2015 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 290 Reputation: 3 Joined: 09/29/13 Last Seen: December 28, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Moriarty Posted July 2, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 135 Reputation: 13 Joined: 06/20/12 Last Seen: April 14, 2018 Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.