mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 08:18:27 +00:00
[Quest API] Add IsAutoAttackEnabled() to Perl/Lua (#2979)
# Perl - Add `$client->IsAutoAttackEnabled()`. # Lua - Add `client:IsAutoAttackEnabled()`. # Notes - Allows operators to check if a client has auto attack enabled.
This commit is contained in:
@@ -3038,10 +3038,18 @@ void Lua_Client::UseAugmentContainer(int container_slot)
|
||||
self->UseAugmentContainer(container_slot);
|
||||
}
|
||||
|
||||
|
||||
bool Lua_Client::IsAutoAttackEnabled()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->AutoAttackEnabled();
|
||||
}
|
||||
|
||||
bool Lua_Client::IsAutoFireEnabled()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->AutoFireEnabled();
|
||||
|
||||
}
|
||||
|
||||
luabind::scope lua_register_client() {
|
||||
@@ -3302,6 +3310,7 @@ luabind::scope lua_register_client() {
|
||||
.def("IncreaseSkill", (void(Lua_Client::*)(int))&Lua_Client::IncreaseSkill)
|
||||
.def("IncreaseSkill", (void(Lua_Client::*)(int,int))&Lua_Client::IncreaseSkill)
|
||||
.def("IncrementAA", (void(Lua_Client::*)(int))&Lua_Client::IncrementAA)
|
||||
.def("IsAutoAttackEnabled", (bool(Lua_Client::*)(void))&Lua_Client::IsAutoAttackEnabled)
|
||||
.def("IsAutoFireEnabled", (bool(Lua_Client::*)(void))&Lua_Client::IsAutoFireEnabled)
|
||||
.def("IsCrouching", (bool(Lua_Client::*)(void))&Lua_Client::IsCrouching)
|
||||
.def("IsDead", &Lua_Client::IsDead)
|
||||
|
||||
Reference in New Issue
Block a user