Jump to content
  • 0
DanialFX

SQL query/ How to replace a specific item from player inventory or equiped item

Question

3 answers to this question

Recommended Posts

If you mean via phpmyadmin..

UPDATE `inventory` SET `nameid`=4444 WHERE `nameid`=8888;
UPDATE `cart_inventory` SET `nameid`=4444 WHERE `nameid`=8888;
UPDATE `storage` SET `nameid`=4444 WHERE `nameid`=8888;
UPDATE `guild_storage` SET `nameid`=4444 WHERE `nameid`=8888;

 

If you want it via npc script, just add enclose them in

query_sql()'

 

Make sure your server is turned off.. And you have a backup.

  • Upvote 1
Link to comment
Share on other sites

Thanks. How about to change the items that player is equiped?

UPDATE `inventory` SET `equip`=4444 WHERE `equip`=8888;

is it true? :D

Edited by DanialFX
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.