• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Znote Shop item to other player

rafaeru

Active Member
Joined
Mar 6, 2013
Messages
143
Solutions
10
Reaction score
30
Location
Poland
GitHub
rafaeru97
Hello, i try to create selection item to other player on Znote ACC. Someone maybe have advice for me how i can write it ?

Like this:
0tFyKam.png
 
Solution
If the player is offline, you can transfer the item directly to the table player_depotitems. (find player_id by name in players table, verify that player_id is not in players_online table, then figure out which depotid you want to send item to and add the record in player_depotitem table).

An easier approach would be to just add it to the shop retrieval queue (table znote_shop_orders), then they need to say !shop to retrieve the item.

Code:
INSERT INTO `znote_shop_orders` (`account_id`, `type`, `itemid`, `count`)
VALUES ('ACCOUNT_ID', '1', 'ITEMID', 'ITEM_COUNT');

Search after account_id on players table by name (from search field), use that account_id to populate znote_shop_orders table with itemid and count.
If the player is offline, you can transfer the item directly to the table player_depotitems. (find player_id by name in players table, verify that player_id is not in players_online table, then figure out which depotid you want to send item to and add the record in player_depotitem table).

An easier approach would be to just add it to the shop retrieval queue (table znote_shop_orders), then they need to say !shop to retrieve the item.

Code:
INSERT INTO `znote_shop_orders` (`account_id`, `type`, `itemid`, `count`)
VALUES ('ACCOUNT_ID', '1', 'ITEMID', 'ITEM_COUNT');

Search after account_id on players table by name (from search field), use that account_id to populate znote_shop_orders table with itemid and count.
 
Last edited:
Solution
Back
Top