Jump to content
  • 0

requesting a "change guild name" npc


andrew0960

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/21/16
  • Last Seen:  

requesting a " guild name changer" npc

 

 

 

just the funtion that can chage a guild's name will do!

 

i can add del item by myself.

 

 

thanks so much!!! 

 

my life saver ><

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/08/16
  • Last Seen:  

requesting a " guild name changer" npc

 

 

 

just the funtion that can chage a guild's name will do!

 

i can add del item by myself.

 

 

thanks so much!!! 

 

my life saver ><

 

I don't know if this one will work but you can try :)

 

prontera,161,180,4 script Mr. Nick 709,{
mes "Hello there! I am Nick, the Guild Name changer."
mes "you can use my service if you have TCG and 50 Million Zennies! "
next;
mes "Input new name";
input @NewName$;
if(countitem(7227) || Zeny < 50000000) {
mes "I do apologize but you did not meet my requirements..";
close;
}
next;
mes "Please relog for the changes to take effect";
query_sql("UPDATE `name` FROM `guild` SET `name`='"+@NewName$+"' WHERE `name`='"+strcharinfo(2)+"'");
delitem 7227,1;
set Zeny,Zeny-50000000;
close;

I used +strcharinfo(2)+ because type "2" is for the name of the guild and "0" is for the player(as per wiki), but I'm not so sure about this...

 

Edited by Mosaic
Link to comment
Share on other sites

  • 0

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

trick like this wouldnt work well.

 

you have to shut down the server and then update the guild name through SQL then restart the server, that's the proper way to updates these value that shared and used by more than one char.

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