mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
[Quest API] Add IsInAGuild() to Perl/Lua (#4066)
# Perl - Add `$client->IsInAGuild()`. # Lua - Add `client:IsInAGuild()`. # Notes - Allows operators to more accurately tell if a player is in a group. - `GuildID()` returns `uint32` max value if the player isn't in a guild so conditions using it must check for a value over a certain point, this is just a bool that simplifies that logic.
This commit is contained in:
@@ -3290,6 +3290,12 @@ int Lua_Client::GetEXPPercentage()
|
||||
return self->GetEXPPercentage();
|
||||
}
|
||||
|
||||
bool Lua_Client::IsInAGuild()
|
||||
{
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsInAGuild();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_client() {
|
||||
return luabind::class_<Lua_Client, Lua_Mob>("Client")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -3578,6 +3584,7 @@ luabind::scope lua_register_client() {
|
||||
.def("IsDueling", (bool(Lua_Client::*)(void))&Lua_Client::IsDueling)
|
||||
.def("IsEXPEnabled", (bool(Lua_Client::*)(void))&Lua_Client::IsEXPEnabled)
|
||||
.def("IsGrouped", (bool(Lua_Client::*)(void))&Lua_Client::IsGrouped)
|
||||
.def("IsInAGuild", (bool(Lua_Client::*)(void))&Lua_Client::IsInAGuild)
|
||||
.def("IsLD", (bool(Lua_Client::*)(void))&Lua_Client::IsLD)
|
||||
.def("IsMedding", (bool(Lua_Client::*)(void))&Lua_Client::IsMedding)
|
||||
.def("IsRaidGrouped", (bool(Lua_Client::*)(void))&Lua_Client::IsRaidGrouped)
|
||||
|
||||
Reference in New Issue
Block a user