Skip to content

Useful SQL queries

Featured Replies

To remove an item special:

DELETE FROM items WHERE item_id = ID_ITEM AND owner_id = ID_CHARACTER;

 

To remove several items:

DELETE FROM items WHERE item_id IN (ID_ITEM1, ID_ITEM2,....) AND owner_id = ID_CHARACTER;

 

To delete everything a player has:

DELETE FROM items WHERE owner_id = ID_CHARACTER;

and even stronger

DELETE FROM items WHERE owner_id = (SELECT obj_Id FROM characters WHERE name = 'NAME_PERSO');

 

To remove just the inventory and not what he wears or the warehouse must be added to each query :

AND loc = 'INVENTORY';

_________________  ;)

Here is some too

 

Set Price Items = 0 adena

( u can do this in anothers colums too, just change the "price" for other thing like "weight" )

UPDATE armor SET price = 0;

UPDATE weapon SET price = 0;

UPDATE etcitem SET price = 0;

Thank you for letting us know. Server has been operating to help.

Tell us another thing to read a lot. Thank you

  • 4 weeks later...

Thx good job , go on , we need ppl who posts importatnt news :D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.