|
|
|
@ -57,6 +57,7 @@ void OTClient::registerLuaFunctions()
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "getDatSignature", &ThingTypeManager::getDatSignature, &g_things);
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "getThingType", &ThingTypeManager::getThingType, &g_things);
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "getItemType", &ThingTypeManager::getItemType, &g_things);
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "findItemTypeByClientId", &ThingTypeManager::findItemTypeByClientId, &g_things);
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "findThingTypeByAttr", &ThingTypeManager::findThingTypeByAttr, &g_things);
|
|
|
|
|
g_lua.bindSingletonFunction("g_things", "findItemTypeByCategory", &ThingTypeManager::findItemTypeByCategory, &g_things);
|
|
|
|
|
|
|
|
|
@ -164,7 +165,6 @@ void OTClient::registerLuaFunctions()
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "inspectNpcTrade", &Game::inspectNpcTrade, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "buyItem", &Game::buyItem, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "sellItem", &Game::sellItem, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "ping", &Game::ping, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "closeNpcTrade", &Game::closeNpcTrade, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "requestTrade", &Game::requestTrade, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "inspectTrade", &Game::inspectTrade, &g_game);
|
|
|
|
@ -179,6 +179,8 @@ void OTClient::registerLuaFunctions()
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "requestQuestLine", &Game::requestQuestLine, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "equipItem", &Game::equipItem, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "mount", &Game::mount, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "requestItemInfo", &Game::requestItemInfo, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "ping", &Game::ping, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "canPerformGameAction", &Game::canPerformGameAction, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "canReportBugs", &Game::canReportBugs, &g_game);
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "checkBotProtection", &Game::checkBotProtection, &g_game);
|
|
|
|
@ -333,6 +335,7 @@ void OTClient::registerLuaFunctions()
|
|
|
|
|
g_lua.registerClass<ThingType>();
|
|
|
|
|
g_lua.bindClassMemberFunction<ThingType>("getId", &ThingType::getId);
|
|
|
|
|
g_lua.bindClassMemberFunction<ThingType>("getMarketData", &ThingType::getMarketData);
|
|
|
|
|
g_lua.bindClassMemberFunction<ThingType>("getClothSlot", &ThingType::getClothSlot);
|
|
|
|
|
|
|
|
|
|
g_lua.registerClass<Item, Thing>();
|
|
|
|
|
g_lua.bindClassStaticFunction<Item>("create", &Item::create);
|
|
|
|
|