Jump to content
  • 0

Error Line 30


Hades03

Question


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

and can you change the color announce bcoz the announce is color yellow i want to change to color blue

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

Change it to:

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

bahmut if i want ot change it again to color purple i put bc_purple I bc_all

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

Here:

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

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