Jump to content
  • 0

Need Help with PVP Limit!


Question

Posted (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 by Milky Holmes

5 answers to this question

Recommended Posts

Posted (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 by GM Takumirai
Posted

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...