Milky Holmes Posted November 27, 2012 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
Dastgir Posted November 27, 2012 Posted November 27, 2012 Just do if (getmapusers(.@mapcount_1) >= 1) { to if (getmapusers("mapname") >= 1) { OR if (.@mapcount_1 >= 1){ Quote
GM Takumirai Posted November 27, 2012 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
Dastgir Posted November 27, 2012 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
Emistry Posted November 27, 2012 Posted November 27, 2012 try this... http://pastebin.com/raw.php?i=aRJySH0B Quote
Milky Holmes Posted November 27, 2012 Author 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
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 Holmes5 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.