Jump to content
  • 0

possible to delete enchantment stones items using SQL commands?


Kakaroto

Question


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

Hello everybody!

Well, I'm with a doubt one boring either, and I wonder if someone could help me, I was wondering if it is possible to delete enchantment stones items using SQL commands, but without deleting the item from the player, only the spells, you can ? if so, can give me the code?

I appreciate very much the same who can help

Edited by Akkarin
Topic title edited. Be more informative in the future, please.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

UPDATE `inventory` SET `card0` = 0 WHERE `card0` BETWEEN 4700 AND 4900;

repeat it for cart_inventory, storage, guild_storage, mail, auction

repeat it for card1, card2, and card3

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

1. Get all Enchantment Stone IDs:

(May be wrong or overlap with Card IDs. You need to check it)

egrep "^([^,]*,){3}6(,[^,]*){10},," db/re/item_db.txt | grep -o "^[^,]*" | tr '\n' ,

2. Stop your server.

 

3. Apply the update command:

UPDATE `inventory` SET `card0` = 0 WHERE `card0` IN (4700,4701,4702);
UPDATE `inventory` SET `card1` = 0 WHERE `card1` IN (4700,4701,4702);
UPDATE `inventory` SET `card2` = 0 WHERE `card2` IN (4700,4701,4702);
UPDATE `inventory` SET `card3` = 0 WHERE `card3` IN (4700,4701,4702);

This is just an example. You need to add all item ids you like to remove. And do the same for all other item tables like storage, mail, cart, etc.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

1. Get all Enchantment Stone IDs:

(May be wrong or overlap with Card IDs. You need to check it)

egrep "^([^,]*,){3}6(,[^,]*){10},," db/re/item_db.txt | grep -o "^[^,]*" | tr '\n' ,

2. Stop your server.

 

3. Apply the update command:

UPDATE `inventory` SET `card0` = 0 WHERE `card0` IN (4700,4701,4702);
UPDATE `inventory` SET `card1` = 0 WHERE `card1` IN (4700,4701,4702);
UPDATE `inventory` SET `card2` = 0 WHERE `card2` IN (4700,4701,4702);
UPDATE `inventory` SET `card3` = 0 WHERE `card3` IN (4700,4701,4702);

This is just an example. You need to add all item ids you like to remove. And do the same for all other item tables like storage, mail, cart, etc.

 

 

UPDATE `inventory` SET `card0` = 0 WHERE `card0` BETWEEN 4700 AND 4900;

repeat it for cart_inventory, storage, guild_storage, mail, auction

repeat it for card1, card2, and card3

 

 

Thank you so much !!!

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