Jump to content
  • 0

Player counting


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Hello rAthena board x')

I need a player counter for the pvp and dead branch arena ;>

Here my scripts ~

PvP

mymap,32,56,6 script PvP Warper 413,{
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "bla bla";
next;
switch(select("Hardcore PvP","Abort")) {
case 1:
warp "hard_pvp",0,0;
close;
case 2:
close; }
}

Dea Branch Arena

mymap34,56,6 script DB Arena Warper 708,{
//DBArena
set @gotoCount, 0;
mes "[ ^000088DB Arena Warper^000000 ]";
mes "blabla";
next;
switch(select("^0065DFDB Arena 1^000000","^0065DFDB Arena 2^000000","^0065DFDB Arena 3^000000","^0065DFDB Arena 4^000000","^0065DFDB Arena 5^000000","^ff0000Abort^000000")) {
case 1:
warp "dbarena1",49,50;
close;
case 2:
warp "dbarena2",49,50;
close;
case 3:
warp "dbarena3",49,50;
close;
case 4:
warp "dbarena4",49,50;
close;
case 5:
warp "dbarena5",49,50;
close;
case 6:
mes "[ ^000088DB Arena Warper^000000 ]";
mes "You're wellcome~";
close; }
}

soFar~

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

*getmapusers("<map name>")

This function will return the number of users currently located on the specified

map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

blaa,32,56,6 script PvP Warper 413,{
getmapusers("hard_pvp");
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Blaa";
next;
switch(select("Hardcore PvP","no")) {
case 1:
warp "hard_pvp",0,0;
close;
case 2:
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "blaa";
close; }
}

It didn't work..

Please copy my script and paste it in here, so I can watch how it's right x')

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

"Hardcore PvP ["+getmapusers("hard_pvp")+"]"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

I'll try it ~_~

----EDIT----

Thank you x')

Edited by Nochii
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...