How to give items to the player.

Option 1:
For delivery of any item to the player offline you need to execute SQL inquiry:

INSERT INTO 'items_delayed' ('owner_id', 'item_id', 'count') VALUES (char_obj_id, item_id, item_count);

INSERT INTO 'items_delayed' ('owner_id', 'item_id', 'count') VALUES (12345678, 57, 1000);

We give to the player 12345678 thousand adena.
This option works as if online the player or the player offline.
Option 1.1 Augmented item and/or Enchanted:
INSERT INTO items_delayed (owner_id, item_id, count, enchant_level,variationId1,variationId2) VALUES (268476982, 7575, 1, 5, 14561, 700);
Where:
268476982 - ObjId of character
7575 - Item Id
1 - Item amount
5 - enchant level
14561 - Augment id1
700 - Augment id2

Option 2:
For delivery of a item to the player in a game when it online:
//give_item <target|target_name> <item_id> <item_count>

Example:
We take in a target character
//give_item (Target) 57 1000 So we will give out to a target of 1000 of an adena
//give_item Troy 57 1000 Thus we remotely will give to character Troy 1000 of an adena
//give_all <item_id> <amount> - give an item to all players in the world
//give_all_by_ip <item_id> <amount> - give an item to all players in the world with unique IP
//give_all_by_hwid <item_id> <amount> - give an item to all players in the world with unique HWID
 
Last edited:
Back
Top