[Quest API] Add GetGuildPublicNote() to Perl/Lua. (#2608)

# Perl
- Add `$client->GetGuildPublicNote()`.

# Lua
- Add `client:GetGuildPublicNote()`.

# Notes
- Allows operators to grab a player's public note in there guild if they wanted to.
This commit is contained in:
Alex King
2022-12-04 12:18:18 -05:00
committed by GitHub
parent 80fffb57b1
commit 5d5c2a4194
5 changed files with 30 additions and 0 deletions
+7
View File
@@ -2855,6 +2855,12 @@ luabind::object Lua_Client::GetZoneFlags(lua_State* L) {
return t;
}
std::string Lua_Client::GetGuildPublicNote()
{
Lua_Safe_Call_String();
return self->GetGuildPublicNote();
}
#ifdef BOTS
int Lua_Client::GetBotRequiredLevel()
@@ -3112,6 +3118,7 @@ luabind::scope lua_register_client() {
.def("GetGMStatus", (int16(Lua_Client::*)(void))&Lua_Client::GetGMStatus)
.def("GetGroup", (Lua_Group(Lua_Client::*)(void))&Lua_Client::GetGroup)
.def("GetGroupPoints", (uint32(Lua_Client::*)(void))&Lua_Client::GetGroupPoints)
.def("GetGuildPublicNote", (std::string(Lua_Client::*)(void))&Lua_Client::GetGuildPublicNote)
.def("GetHorseId", (int(Lua_Client::*)(void))&Lua_Client::GetHorseId)
.def("GetHealAmount", (int(Lua_Client::*)(void))&Lua_Client::GetHealAmount)
.def("GetHunger", (int(Lua_Client::*)(void))&Lua_Client::GetHunger)