Jump to content

Question

Posted (edited)
prontera,147,157,5 script Guild Master Changer 993,{
if( GetGuildMaster(getcharid(2)) != strcharinfo(0))
mes "Only the Guild Master is allowed to use this service.";
else if( agitcheck() || agitcheck2() )
mes "Cannot change GM, WoE is in progress";
else {
mes "Input the name of the new Guild Master.";
next;
input .@name$;
if( !isloggedin(getcharid(3,.@name$)))
 mes "Character not online.";
else if( getcharid(2,.@name$) != getcharid(2))
 mes "The selected character does not belong to your guild.";
else {
 mes "Is " + .@name$ + " correct?";
 next;
 if( select("Yes:No")  == 2)
  close;
 atcommand "@changegm " + .@name$;
 mes "GM Changed.";
 mes "Both you and the new GM must relog to confirm the changes.";
 announce [ .@name$ + " ] is now the new Guild Master of guild [ " + GetGuildName(getcharid(2)) + " ]", 0;
}
}
close;
}

Edited by Jam

5 answers to this question

Recommended Posts

Posted

change

 announce [ .@name$ + " ] is now the new Guild Master of guild [ " + GetGuildName(getcharid(2)) + " ]", 0;

into this

 announce "[ "+.@name$ + " ] is now the new Guild Master of guild [ " + GetGuildName(getcharid(2)) + " ]", 0;

next time..specify the error....

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