Jump to content
  • 0

Admin NPC To Delete Item from everyone inventory/Storage either player is Online or Offline


Question

Posted

Welp as title, anyone can help me? i would like to remove some bugged item that most my player have been using on my server,

example, i talk to NPC and enter the item ID i want to delete, and everyone either his/her online or offline the item will be deleted 

not matter where they put it, in inventory, equipped or in storage 

4 answers to this question

Recommended Posts

  • 0
Posted
DELETE FROM `auction` WHERE `nameid` = 512;
DELETE FROM `cart_inventory` WHERE `nameid` = 512;
DELETE FROM `guild_storage` WHERE `nameid` = 512;
DELETE FROM `inventory` WHERE `nameid` = 512;
DELETE FROM `mail_attachments` WHERE `nameid` = 512;
DELETE FROM `market` WHERE `nameid` = 512;
DELETE FROM `sales` WHERE `nameid` = 512;
DELETE FROM `storage` WHERE `nameid` = 512;
  1. shutdown server
  2. edit the item ID
  3. run the queries above in your database
  4. restart server
  • 0
Posted
17 minutes ago, Emistry said:

DELETE FROM `auction` WHERE `nameid` = 512;
DELETE FROM `cart_inventory` WHERE `nameid` = 512;
DELETE FROM `guild_storage` WHERE `nameid` = 512;
DELETE FROM `inventory` WHERE `nameid` = 512;
DELETE FROM `mail_attachments` WHERE `nameid` = 512;
DELETE FROM `market` WHERE `nameid` = 512;
DELETE FROM `sales` WHERE `nameid` = 512;
DELETE FROM `storage` WHERE `nameid` = 512;
  1. shutdown server
  2. edit the item ID
  3. run the queries above in your database
  4. restart server

512 is the item ID? what if i want to add multiple item to delete?

  • 0
Posted

change the itemID after every execution ...

or use this

DELETE FROM `auction` WHERE `nameid` IN (501,502,503);
DELETE FROM `cart_inventory` WHERE `nameid` IN (501,502,503);
DELETE FROM `guild_storage` WHERE `nameid` IN (501,502,503);
DELETE FROM `inventory` WHERE `nameid` IN (501,502,503);
DELETE FROM `mail_attachments` WHERE `nameid` IN (501,502,503);
DELETE FROM `market` WHERE `nameid` IN (501,502,503);
DELETE FROM `sales` WHERE `nameid` IN (501,502,503);
DELETE FROM `storage` WHERE `nameid` IN (501,502,503);

 

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