[Quest API] Add DescribeSpecialAbilities() to Perl/Lua (#4269)

This commit is contained in:
Alex King
2024-04-20 22:20:37 -04:00
committed by GitHub
parent 703d2cd1d8
commit 6b698b5f51
6 changed files with 27 additions and 0 deletions
+7
View File
@@ -3363,6 +3363,12 @@ bool Lua_Client::SetAutoLoginCharacterName(std::string character_name)
return quest_manager.SetAutoLoginCharacterNameByAccountID(self->AccountID(), character_name);
}
void Lua_Client::DescribeSpecialAbilities(Lua_NPC n)
{
Lua_Safe_Call_Void();
n.DescribeSpecialAbilities(self);
}
luabind::scope lua_register_client() {
return luabind::class_<Lua_Client, Lua_Mob>("Client")
.def(luabind::constructor<>())
@@ -3446,6 +3452,7 @@ luabind::scope lua_register_client() {
.def("CreateExpeditionFromTemplate", &Lua_Client::CreateExpeditionFromTemplate)
.def("CreateTaskDynamicZone", &Lua_Client::CreateTaskDynamicZone)
.def("DecreaseByID", (bool(Lua_Client::*)(uint32,int))&Lua_Client::DecreaseByID)
.def("DescribeSpecialAbilities", (void(Lua_Client::*)(Lua_NPC))&Lua_Client::DescribeSpecialAbilities)
.def("DeleteBucket", (void(Lua_Client::*)(std::string))&Lua_Client::DeleteBucket)
.def("DeleteItemInInventory", (void(Lua_Client::*)(int,int))&Lua_Client::DeleteItemInInventory)
.def("DeleteItemInInventory", (void(Lua_Client::*)(int,int,bool))&Lua_Client::DeleteItemInInventory)