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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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