Jump to content
  • 0

Guild Master Changer


cozzy09

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Works for me. Maybe tab error ?

Basic_Scripting#NPC

  • Upvote 1
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...