Jump to content

Recommended Posts

Posted

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

_________________  ;)

Posted

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;

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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