Jump to content
  • 0

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


Question

3 answers to this question

Recommended Posts

Posted

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
Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...