Jump to content
  • 0

Partymember amount check.


HristDead

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Hi.

Does anyone know how i make this script read the amount of partymembers?

It works fine if I'm not in a party then it goes to the "Please make sure you have a team mate." dialogue.

but it also does when i do have a party of atleast 2 members... while i want it to go to the next option menu. why doesn't it read it...?

prt_are_in,95,28,5 script Team PVP Manager 757,{
prt_are_in,95,28,5 script Team PVP Manager 757,{
set .@n$,"[^FF0000PVP Manager^000000]";
set .@charid,getcharid(0);
mes .@n$;
mes "Would you like to register for a 2vs2 PVP Battle?";
next;
menu "Yes",-,"No",L_cancel;
if(getmapusers("pvp_y_1-3") > 0) { mes .@n$; mes "There appears to be a match currently in session. Check back momentarily."; close; end; }
if($@partymembercount < 1) { mes .@n$; mes "Please make sure you have one team mate."; close; end; }
mes .@n$;
mes "Which side of the arena would you like to join?";
next;
menu "Red ("+$pvp4nA+"/2)",L_north,"Blue ("+$pvp4nB+"/2)",L_south,"Cancel",L_cancel;

Link to comment
Share on other sites

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

You need to add this before the party check:

getpartymember getcharid(1); // sets $@partymembercount

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

You need to add this before the party check:

getpartymember getcharid(1); // sets $@partymembercount

Thank you! :)

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...