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;
}
Question
Hades03
Link to comment
Share on other sites
5 answers 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.