Jump to content
  • 0

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


Dolphin86

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

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 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

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);

 

Link to comment
Share on other sites

  • 0

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

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

@Emistry just run on sql date base of my ragnarok correct?

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