Jump to content
  • 0

Guild Rename/Change Leader NPC.


Eyjafjallajokull

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

Attempted to create SQL based script where you can change the Guild Name and Guild Leader.

(Basically I just tried to tweak the character rename script I have, but failed.) 

Searched around for a while and couldn't find anything.

 

Any help or prior scripts anyone has lying around that I might have missed? :)

 

I appreciate it in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

If you rename your character when you are in a guild, your name in guild wont change, you must leave guild first. Tested it already.



I also tried changing all names available in sql, including Guild, char, etc.. etc.. still not working.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

Figured out the guild leader changer, but still need help with the Guild Name changer, which.....

 

If you rename your character when you are in a guild, your name in guild wont change, you must leave guild first. Tested it already.



I also tried changing all names available in sql, including Guild, char, etc.. etc.. still not working.

 

was not my point. Sorry.

 

Not requesting something to change the character name -- requesting something to change the guild name (if possible, I guess?)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

prontera,150,180,4    script    GuildName Changer    123,{
mes "Input your new guild name.";
input .@name$;
set .@a$,charat(.@name$,0); //We run this so we can see if the first "character" is a Space.
if( !compare("1234567890",.@a$) && !charisalpha(.@a$,0) ){mes "^FF0000 INVALID NAME ^000000"; close;} //We've determined it's a Space so invalid name.
set .@n$,escape_sql(.@name$);
query_sql("UPDATE guild SET name='"+ .@n$ +"' WHERE guild_id='"+ getcharid(2) +"'");
next;
mes "Guild name successfully updated.";
close;

Not sure if the update will show without a relog or not. You'd have to test.

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