Jump to content
  • 0
easonz

teamleader problem

Question

Team leader register but it say you are not team leader .

        mes "[MVP Warper]";        mes "Do you want to register with your teammate?";        mes "For the ENTRANCE FEE is^FF0000"+ @zenyp +"^000000zeny.";        next;        if (select("Register.","No")==2) {                mes "[MVP Warper]";                mes "Thank you and please come again.";                close;        }        if ( getcharid(0) != CID[@MnF] ) {                mes "You are not the Teamleader!";                close;        }        for ( set @MnF,1; @MnF <= 5; set @MnF,@MnF+1 ) {                if ( getmapusers("06guild_0"+@MnF) == 0 ) {                        enablenpc "MVP Master#"+@MnF;                        enablenpc "Dealer#"+@MnF;                        killmonsterall "06guild_0"+@MnF;                        set Zeny,Zeny- @ZenyC ;                        set @Start[@MnF],0;                        set @PID[@MnF],getcharid(1);                        set CID[@MnF],getcharid(0);                        set @GuanShu[@MnF],1;                        announce "The partymember of["+ getpartyname(@PID[@MnF]) +"], please find [MVP Warper] !",15;                        warp "06guild_0"+@MnF,49,47;                        end;                }        }        mes "[MVP Warper]";        mes "Sorry all the places is currently in use.";        mes "Please wait, thank you";        close;}

need help .. thank you 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

is this part of script ?, used variable is attached temporary to character, post entire script

as for part 'Team leader register but it say you are not team leader .', change this part code

if ( getcharid(0) != CID[@MnF] ) {mes "You are not the Teamleader!";close;}

to this

if ( getcharid(0) != getpartyleader(getcharid(1),2) ) {mes "You are not the Teamleader!";close;}

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.