IndieD Posted June 16, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 50 Reputation: 1 Joined: 06/13/12 Last Seen: November 1, 2015 Share Posted June 16, 2012 I'm trying to add a PvP warper that has the number of the people currently inside, to the people that can be in pvp. How would I add the chat-box function over its head to give it a live feed of people inside? Thank you! Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 16, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 16, 2012 Try this : NPC,Header,here,{ OnInit: set .map$,"YOURMAPHERE"; waitingroom "["+getmapusers(.map$)+"/15]",0; end; } Quote Link to comment Share on other sites More sharing options...
IndieD Posted June 16, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 50 Reputation: 1 Joined: 06/13/12 Last Seen: November 1, 2015 Author Share Posted June 16, 2012 Would I put the chat functions after the "end;" command? Nevermind, figured it out. However, it doesn't show the current amount of people inside. Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 16, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 16, 2012 Hmm...That's because of the OnInit: I think. Maybe you could add a npctalk instead of the Waitingroom : So if a Player clicks the NPC the NPC talks like a Player and says how many people are fighting in the PvP Room. NPC HEADER ,{ set .map$,"YOURMAPNAME"; npctalk "There are ["+getmapusers(.map$)+"/15] in the PvP Room."; Quote Link to comment Share on other sites More sharing options...
maynard Posted June 16, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted June 16, 2012 (edited) Try this.it will show if theres a player inside.If you click you will be warp inside.refresh every seconds. MAP,XXX,YYY,4 script PVP npc,{ warp "pvp map",X,Y; end; OnInit: while(1) { DelWaitingRoom; WaitingRoom("PvP: " + GetMapUsers("pvp map"), 0); sleep 1000; } } Edited June 16, 2012 by maynard Quote Link to comment Share on other sites More sharing options...
IndieD Posted June 16, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 50 Reputation: 1 Joined: 06/13/12 Last Seen: November 1, 2015 Author Share Posted June 16, 2012 Thanks! Both of these worked. Quote Link to comment Share on other sites More sharing options...
Question
IndieD
I'm trying to add a PvP warper that has the number of the people currently inside, to the people that can be in pvp.
How would I add the chat-box function over its head to give it a live feed of people inside?
Thank you!
Link to comment
Share on other sites
5 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.