Jump to content
  • 0

Guild Master Changer


Question

Posted

can anyone tell me what's wrong with this script? it says unknown syntax


gm_room,154,136,5  script   Guild Master Changer   866,{
if(!getcharid(2))  // [b][color=#ff0000]ERROR LINE[/color][/b]
{
mes "[ ^336699Leo^000000 ]";
mes "Are you Kidding me?";
mes "You're not a member of any guild";
close;
}
if(getguildmaster(getcharid(2)) != strcharinfo(0))
{
mes "[ ^336699Leo^000000 ]";
mes "You're not the Guild Master of your guild";
close;
}
if(agitcheck())
{
mes "[ ^336699Leo^000000 ]";
mes "War is currently in progress";
close;
}
mes "[ ^336699Leo^000000 ]";
mes "OK Please Input the name of the character";
mes "The player mus be online!";
next;
input @input$;
set @success, guildchangegm(getcharid(2), @input$);
if(!@success)
{
mes "[ ^336699Leo^000000 ]";
mes "Something's wrong, maybe the player doesn't exist.";
close;
}
mes "Done!";
close;
}

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