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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock