Jump to content
  • 0

pvp room


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

how to put a player count when the player inside the pvp room? at the top head of npc? thank you.

Edited by Hatake Kakashi
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


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

OnInit:
while( 1 ){
delwaitingroom;
waitingroom "PVP : "+getmapusers("prontera")+" Users",0;
sleep 1000;
}
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

ill tried your script but it doesn't count when you are inside pvp room.

here's my pvp room script.

prontera,156,175,6 script PvP Arena 413,{

mes "[PvP Warper]";

mes "Do you want to warp to the PvP Arena and fight your enemies?";

menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No;

L_Yes:

mes "[PvP Warper]";

mes "Which PvP Arena do you want to enter?";

menu "PvP Arena [" + getmapusers("pvp_y_1-2.gat") + " / 20]",L1,

"GvG Arena [" + getmapusers("guild_vs2.gat") + " / 20]",L2,

"Nightmare Mode [" + getmapusers("guild_vs4.gat") + " / 20]",L3;

L1:

if (getmapusers("pvp_y_1-2.gat") > 19) goto Lsorry;

warp "pvp_y_1-2",0,0;

announce "[ "+strcharinfo(0)+" ] is warped into PVP Arena.",0;

close;

L2:

if (getmapusers("guild_vs2.gat") > 19) goto Lsorry;

warp "guild_vs2",0,0;

announce "[ "+strcharinfo(0)+" ] is warped into GVG Arena.",0;

close;

close;

L3:

if (getmapusers("guild_vs4.gat") > 19) goto Lsorry;

warp "guild_vs4",0,0;

announce "[ "+strcharinfo(0)+" ] is warped into Nightmare Mode.",0;

close;

close;

Lsorry:

mes "[PvP Warper]";

mes "Sorry but this PvP Arena is full, maybe you could try another one.";

close;

L_No:

close;

OnInit:

waitingroom "PVP : "+getmapusers("pvp_y_1-2")+" Users",0;

sleep 1000;

}

hugel,93,152,3 duplicate(PvP Arena) PvP Arena#2 413

lighthalzen,154,94,3 duplicate(PvP Arena) PvP Arena#3 413

guild_vs2 mapflag noteleport

guild_vs2 mapflag nowarp

guild_vs2 mapflag noreturn

guild_vs4 mapflag noteleport

guild_vs4 mapflag nowarp

guild_vs4 mapflag noreturn

Edited by Hatake Kakashi
Link to comment
Share on other sites


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

see the way i did...and the way you did...

ur process are not repeated....mine are repeated with the while loop..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

my script is ok? but why there's no user in my pvp room at pvp_y_1-2?

Link to comment
Share on other sites


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

your way ...

OnInit:
waitingroom "PVP : "+getmapusers("pvp_y_1-2")+" Users",0;
sleep 1000;

my way...

OnInit:
while( 1 ){
delwaitingroom;
waitingroom "PVP : "+getmapusers("prontera")+" Users",0;
sleep 1000;
}
end;

did you see the different ?

i told you in the previous post ~ your checking process is not repeated..so it keep show 0...the status is not updated...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

error. missing right 1 curlys at line 64

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.01
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

error. missing right 1 curlys at line 64

Then put a right curly at line 64. Check your curlies if they match. Should be an even number.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

and i don't know where do i put it..

if that just so easy i will not post it here and i do it for my self and i dont need to give a question here... thanks xD

Edited by Hatake Kakashi
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...