You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
664 B
13 lines
664 B
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(); |