Jump to content
  • 0

Wiping a specific item


Mad Walker

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Does anyone know how to wipe a specific item to all players without disabling the item?

For example I want to wipe gtb from all players but I don't have to disable it from item_db

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  154
  • Reputation:   8
  • Joined:  05/31/12
  • Last Seen:  

Do it in sql by querying.

 SELECT <column_name> FROM inventory WHERE <cloumn_name> = '<item_id_number>;

this will display all that has eg. item no. 7777 in the inventory

to delete:

 DELETE FROM inventory WHERE <column_name> = <item_ID>;

Edited by RCharles
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

run this in your SQL ...

make sure you do backup before use this ...

shutdown the server and run the query ....

DELETE FROM `cart_inventory` WHERE `nameid`=4128
DELETE FROM `inventory` WHERE `nameid`=4128
DELETE FROM `mail` WHERE `nameid`=4128
DELETE FROM `storage` WHERE `nameid`=4128

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Thanks for the reply!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

UPDATE `inventory` SET card0=0 WHERE card0 = 4430;

UPDATE `inventory` SET card1=0 WHERE card1 = 4430;

UPDATE `inventory` SET card2=0 WHERE card2 = 4430;

UPDATE `inventory` SET card3=0 WHERE card3 = 4430;

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