mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 00:58:26 +00:00
[Quest API] Add IsAutoFireEnabled() to Perl/Lua (#2978)
# Perl - Add `$client->IsAutoFireEnabled()`. # Lua - Add `client:IsAutoFireEnabled()`. # Notes - Allows operators to check if a client has auto fire enabled.
This commit is contained in:
@@ -3038,6 +3038,12 @@ void Lua_Client::UseAugmentContainer(int container_slot)
|
||||
self->UseAugmentContainer(container_slot);
|
||||
}
|
||||
|
||||
bool Lua_Client::IsAutoFireEnabled()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->AutoFireEnabled();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_client() {
|
||||
return luabind::class_<Lua_Client, Lua_Mob>("Client")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -3296,6 +3302,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("IsAutoFireEnabled", (bool(Lua_Client::*)(void))&Lua_Client::IsAutoFireEnabled)
|
||||
.def("IsCrouching", (bool(Lua_Client::*)(void))&Lua_Client::IsCrouching)
|
||||
.def("IsDead", &Lua_Client::IsDead)
|
||||
.def("IsDueling", (bool(Lua_Client::*)(void))&Lua_Client::IsDueling)
|
||||
|
||||
Reference in New Issue
Block a user