Jump to content
  • 0

Deleting an item in all storages


Mabuhay

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

How do I delete all Existing Memory of Thanatos Card [Weapon]   Item ID# 4399 (Thanatos_Card) in my server? Thanks

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:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

DELETE FROM inventory WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM cart_inventory WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM storage WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM guild_storage WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM mail WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;

 

Execute this query on your database, make sure to backup first.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

DELETE FROM inventory WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM cart_inventory WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM storage WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM guild_storage WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
DELETE FROM mail WHERE nameid=4399 OR card0=4399 OR card1=4399 OR card2=4399 OR card3=4399;
 

Execute this query on your database, make sure to backup first.

Instead of deleting all weapons that contain a Thanatos Card, you rather just remove the card from the weapon.

 

DELETE FROM `inventory` WHERE `nameid`=4399;
DELETE FROM `cart_inventory` WHERE `nameid`=4399;
DELETE FROM `storage` WHERE `nameid`=4399;
DELETE FROM `guild_storage` WHERE `nameid`=4399;
DELETE FROM `auction` WHERE `nameid`=4399;

UPDATE `inventory` SET `card0`=0 WHERE `card0`=4399;
UPDATE `inventory` SET `card1`=0 WHERE `card1`=4399;
UPDATE `inventory` SET `card2`=0 WHERE `card2`=4399;
UPDATE `inventory` SET `card3`=0 WHERE `card3`=4399;

UPDATE `cart_inventory` SET `card0`=0 WHERE `card0`=4399;
UPDATE `cart_inventory` SET `card1`=0 WHERE `card1`=4399;
UPDATE `cart_inventory` SET `card2`=0 WHERE `card2`=4399;
UPDATE `cart_inventory` SET `card3`=0 WHERE `card3`=4399;

UPDATE `storage` SET `card0`=0 WHERE `card0`=4399;
UPDATE `storage` SET `card1`=0 WHERE `card1`=4399;
UPDATE `storage` SET `card2`=0 WHERE `card2`=4399;
UPDATE `storage` SET `card3`=0 WHERE `card3`=4399;

UPDATE `guild_storage` SET `card0`=0 WHERE `card0`=4399;
UPDATE `guild_storage` SET `card1`=0 WHERE `card1`=4399;
UPDATE `guild_storage` SET `card2`=0 WHERE `card2`=4399;
UPDATE `guild_storage` SET `card3`=0 WHERE `card3`=4399;

UPDATE `mail` SET `nameid`=0, `amount`=0, `refine`=0, `attribute`=0, `identify`=0, `card0`=0, `card1`=0, `card2`=0, `card3`=0 WHERE `nameid`=4399;
UPDATE `mail` SET `card0`=0 WHERE `card0`=4399;
UPDATE `mail` SET `card1`=0 WHERE `card1`=4399;
UPDATE `mail` SET `card2`=0 WHERE `card2`=4399;
UPDATE `mail` SET `card3`=0 WHERE `card3`=4399;

UPDATE `auction` SET `card0`=0 WHERE `card0`=4399;
UPDATE `auction` SET `card1`=0 WHERE `card1`=4399;
UPDATE `auction` SET `card2`=0 WHERE `card2`=4399;
UPDATE `auction` SET `card3`=0 WHERE `card3`=4399;
Edited by Toshiro
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Thanks! :)

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