Milky Holmes Posted November 27, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 28 Reputation: 0 Joined: 11/06/12 Last Seen: January 10, 2013 Share Posted November 27, 2012 (edited) Hi, does anyone know whats wrong my script? I tried something like this if (getmapusers(.@mapcount_1) >= 1) { mes "[PVP Warper]"; mes "This map is currently full."; } but it just doesn't work.. people still can enter above 1.. Please if anyone knows tell me how to fix it... pvp.txt Edited November 28, 2012 by Milky Holmes Quote Link to comment Share on other sites More sharing options...
Dastgir Posted November 27, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Share Posted November 27, 2012 Just do if (getmapusers(.@mapcount_1) >= 1) { to if (getmapusers("mapname") >= 1) { OR if (.@mapcount_1 >= 1){ Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 27, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 27, 2012 (edited) gonryun,162,122,6 script PVP Warper 852,{ mes "Hello I can warp you inside the PvP Arena!"; next; mes "Where do you want to go?"; menu "Normal PvP [" + getmapusers("pvp_y_1-2") + " / 40]",normal, "No Party PvP [" + getmapusers("pvp_y_2-2") + " / 40]",np; normal: if (getmapusers("06guild_01") > 39) { mes "The PvP Arena is full"; close; } warp "06guild_01",0,0; close; np: if (getmapusers("06guild_02") > 39) { mes "The PvP Arena is full"; close; } warp "06guild_02",0,0; close; } 06guild_01 mapflag nowarp 06guild_01 mapflag pvp 06guild_01 mapflag nowarpto 06guild_01 mapflag noteleport 06guild_01 mapflag nosave 06guild_01 mapflag nomemo 06guild_01 mapflag nobranch 06guild_01 mapflag nocommand 80 06guild_02 mapflag nowarp 06guild_02 mapflag pvp 06guild_02 mapflag nowarpto 06guild_02 mapflag noteleport 06guild_02 mapflag nosave 06guild_02 mapflag nomemo 06guild_02 mapflag nobranch 06guild_02 mapflag pvp_noparty 06guild_02 mapflag nocommand 80 Edited November 27, 2012 by GM Takumirai Quote Link to comment Share on other sites More sharing options...
Dastgir Posted November 27, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Share Posted November 27, 2012 @GM Takumirai, He has given the script, so we should give him that script edited As I Guess. pvp.txt Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 27, 2012 try this... http://pastebin.com/raw.php?i=aRJySH0B Quote Link to comment Share on other sites More sharing options...
Milky Holmes Posted November 27, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 28 Reputation: 0 Joined: 11/06/12 Last Seen: January 10, 2013 Author Share Posted November 27, 2012 Thanks... I just need to add else when I tried it out... lol I've changed it to this: if (.@mapcount_1 >= 1) { next; mes "[PVP Warper]"; mes "This map is currently full."; close; } else {callsub S_CheckPVPRoom,@mapcount_2,"pvp_n_1-3",100; break; } Anyway thankyou very much Quote Link to comment Share on other sites More sharing options...
Question
Milky Holmes
Hi, does anyone know whats wrong my script?
I tried something like this
if (getmapusers(.@mapcount_1) >= 1) {
mes "[PVP Warper]";
mes "This map is currently full.";
}
but it just doesn't work.. people still can enter above 1..
Please if anyone knows tell me how to fix it...
pvp.txt
Edited by Milky HolmesLink 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.