Hatake Kakashi Posted May 21, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted May 21, 2012 (edited) how to put a player count when the player inside the pvp room? at the top head of npc? thank you. Edited May 21, 2012 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted May 21, 2012 OnInit: while( 1 ){ delwaitingroom; waitingroom "PVP : "+getmapusers("prontera")+" Users",0; sleep 1000; } end; Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted May 22, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted May 22, 2012 (edited) ill tried your script but it doesn't count when you are inside pvp room. here's my pvp room script. prontera,156,175,6 script PvP Arena 413,{ mes "[PvP Warper]"; mes "Do you want to warp to the PvP Arena and fight your enemies?"; menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No; L_Yes: mes "[PvP Warper]"; mes "Which PvP Arena do you want to enter?"; menu "PvP Arena [" + getmapusers("pvp_y_1-2.gat") + " / 20]",L1, "GvG Arena [" + getmapusers("guild_vs2.gat") + " / 20]",L2, "Nightmare Mode [" + getmapusers("guild_vs4.gat") + " / 20]",L3; L1: if (getmapusers("pvp_y_1-2.gat") > 19) goto Lsorry; warp "pvp_y_1-2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into PVP Arena.",0; close; L2: if (getmapusers("guild_vs2.gat") > 19) goto Lsorry; warp "guild_vs2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into GVG Arena.",0; close; close; L3: if (getmapusers("guild_vs4.gat") > 19) goto Lsorry; warp "guild_vs4",0,0; announce "[ "+strcharinfo(0)+" ] is warped into Nightmare Mode.",0; close; close; Lsorry: mes "[PvP Warper]"; mes "Sorry but this PvP Arena is full, maybe you could try another one."; close; L_No: close; OnInit: waitingroom "PVP : "+getmapusers("pvp_y_1-2")+" Users",0; sleep 1000; } hugel,93,152,3 duplicate(PvP Arena) PvP Arena#2 413 lighthalzen,154,94,3 duplicate(PvP Arena) PvP Arena#3 413 guild_vs2 mapflag noteleport guild_vs2 mapflag nowarp guild_vs2 mapflag noreturn guild_vs4 mapflag noteleport guild_vs4 mapflag nowarp guild_vs4 mapflag noreturn Edited May 22, 2012 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted May 22, 2012 see the way i did...and the way you did... ur process are not repeated....mine are repeated with the while loop.. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted May 22, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted May 22, 2012 my script is ok? but why there's no user in my pvp room at pvp_y_1-2? Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Saturday at 07:13 PM Share Posted May 22, 2012 your way ... OnInit: waitingroom "PVP : "+getmapusers("pvp_y_1-2")+" Users",0; sleep 1000; my way... OnInit: while( 1 ){ delwaitingroom; waitingroom "PVP : "+getmapusers("prontera")+" Users",0; sleep 1000; } end; did you see the different ? i told you in the previous post ~ your checking process is not repeated..so it keep show 0...the status is not updated... Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted May 22, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted May 22, 2012 error. missing right 1 curlys at line 64 Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted May 22, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted May 22, 2012 error. missing right 1 curlys at line 64 Then put a right curly at line 64. Check your curlies if they match. Should be an even number. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted May 23, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted May 23, 2012 (edited) and i don't know where do i put it.. if that just so easy i will not post it here and i do it for my self and i dont need to give a question here... thanks xD Edited May 23, 2012 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Question
Hatake Kakashi
how to put a player count when the player inside the pvp room? at the top head of npc? thank you.
Edited by Hatake KakashiLink to comment
Share on other sites
8 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.