[Quest API] Add GetClassAbbreviation() and GetRaceAbbreviation() to Perl/Lua (#3463)

# Perl
- Add `$bot->GetClassAbbreviation()`.
- Add `$bot->GetRaceAbbreviation()`.
- Add `$client->GetClassAbbreviation()`.
- Add `$client->GetRaceAbbreviation()`.

# Lua
- Add `bot:GetClassAbbreviation()`.
- Add `bot:GetRaceAbbreviation()`.
- Add `client:GetClassAbbreviation()`.
- Add `client:GetRaceAbbreviation()`.

# Notes
- Allows operators to easily get a player race/class abbreviation, example being `Warrior` as `WAR`.
This commit is contained in:
Alex King
2023-07-02 10:26:51 -04:00
committed by GitHub
parent d16ac99033
commit 6324e3687a
8 changed files with 59 additions and 4 deletions
+2
View File
@@ -469,6 +469,8 @@ public:
bool IsAutoAttackEnabled();
bool IsAutoFireEnabled();
uint32 GetEXPForLevel(uint16 check_level);
std::string GetClassAbbreviation();
std::string GetRaceAbbreviation();
void ApplySpell(int spell_id);
void ApplySpell(int spell_id, int duration);