mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Quest API] Add IsUnderwaterOnly() to Perl/Lua (#2995)
# Perl - Add `$npc->IsUnderwaterOnly()`. # Lua - Add `npc:IsUnderwaterOnly()`. # Notes - Allows operators to chec k if an NPC is underwater only.
This commit is contained in:
@@ -767,6 +767,11 @@ void Lua_NPC::ScaleNPC(uint8 npc_level, bool override_special_abilities)
|
||||
self->ScaleNPC(npc_level, true, override_special_abilities);
|
||||
}
|
||||
|
||||
bool Lua_NPC::IsUnderwaterOnly() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsUnderwaterOnly();
|
||||
}
|
||||
|
||||
bool Lua_NPC::HasSpecialAbilities() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->HasSpecialAbilities();
|
||||
@@ -865,6 +870,7 @@ luabind::scope lua_register_npc() {
|
||||
.def("IsRaidTarget", (bool(Lua_NPC::*)(void))&Lua_NPC::IsRaidTarget)
|
||||
.def("IsRareSpawn", (bool(Lua_NPC::*)(void))&Lua_NPC::IsRareSpawn)
|
||||
.def("IsTaunting", (bool(Lua_NPC::*)(void))&Lua_NPC::IsTaunting)
|
||||
.def("IsUnderwaterOnly", (bool(Lua_NPC::*)(void))&Lua_NPC::IsUnderwaterOnly)
|
||||
.def("MerchantCloseShop", (void(Lua_NPC::*)(void))&Lua_NPC::MerchantCloseShop)
|
||||
.def("MerchantOpenShop", (void(Lua_NPC::*)(void))&Lua_NPC::MerchantOpenShop)
|
||||
.def("ModifyNPCStat", (void(Lua_NPC::*)(std::string,std::string))&Lua_NPC::ModifyNPCStat)
|
||||
|
||||
Reference in New Issue
Block a user