Jump to content
  • 0

Partymember amount check.


Question

Posted

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;

2 answers to this question

Recommended Posts

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