mirror of
https://github.com/edubart/otclient.git
synced 2025-05-10 06:19:20 +02:00
13 lines
664 B
Plaintext
13 lines
664 B
Plaintext
void processOpenNpcTrade(const std::vector<std::tuple<ItemPtr, std::string, int, int, int>>& items);
|
|
void processPlayerGoods(int money, const std::vector<std::tuple<ItemPtr, int>>& goods);
|
|
void processCloseNpcTrade();
|
|
|
|
g_lua.callGlobalField("g_game", "onOpenNpcTrade", items);
|
|
g_lua.callGlobalField("g_game", "onPlayerGoods", goods);
|
|
g_lua.callGlobalField("g_game", "onCloseNpcTrade");
|
|
|
|
// npc trade related
|
|
void inspectNpcTrade(const ItemPtr& item);
|
|
void buyItem(const ItemPtr& item, int amount, bool ignoreCapacity, bool buyWithBackpack);
|
|
void sellItem(const ItemPtr& item, int amount, bool ignoreEquipped);
|
|
void closeNpcTrade(); |