[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
+14
View File
@@ -11977,3 +11977,17 @@ void Client::SetSpellDuration(
m->SetBuffDuration(spell_id, duration);
}
}
std::string Client::GetGuildPublicNote()
{
if (!IsInAGuild()) {
return std::string();
}
CharGuildInfo gci;
if (!guild_mgr.GetCharInfo(character_id, gci)) {
return std::string();
}
return gci.public_note;
}