Jump to content
  • 0

Need Help with PVP Limit!


Milky Holmes

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  11/06/12
  • Last Seen:  

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

Just do

if (getmapusers(.@mapcount_1) >= 1) {

to

if (getmapusers("mapname") >= 1) {

OR

if (.@mapcount_1 >= 1){

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  



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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

@GM Takumirai, He has given the script, so we should give him that script edited As I Guess.

pvp.txt

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  11/06/12
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...