Jump to content
  • 0
Eross

Pet and Homunculus rename npc

Question

Hi ! Im trying to make a paid rename npc for homun and pet but its not working on my sql script 

query_sql "UPDATE `pet` SET `name` = '"+escape_sql([email protected]$)+"' WHERE `name` = '"+getpetinfo(2)+"'";


query_sql "UPDATE `homunculus` SET `name` = '"+escape_sql([email protected]$)+"' WHERE `name` = '"+strcharinfo(0)+"'";

Its updating on my database but once I relog it will change back to old name ,... thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
atcommand "@petrename "[email protected]$;

use this instead.

 

if you are using the SQL method above, your char need to be disconnected from server before the SQL query is executed to update the server, otherwise your current character data will override the changes when it saved into database upon logout.

Link to comment
Share on other sites

  • 0
26 minutes ago, Emistry said:
atcommand "@petrename "[email protected]$;

use this instead.

 

if you are using the SQL method above, your char need to be disconnected from server before the SQL query is executed to update the server, otherwise your current character data will override the changes when it saved into database upon logout.

Thanks ! how about in homunculus sir ?

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.