mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 15:46:37 +00:00
[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:
@@ -1,3 +1,4 @@
|
||||
\
|
||||
#ifndef EQEMU_LUA_BOT_H
|
||||
#define EQEMU_LUA_BOT_H
|
||||
#ifdef LUA_EQEMU
|
||||
@@ -65,6 +66,8 @@ public:
|
||||
Lua_ItemInst GetItemAt(int16 slot_id);
|
||||
int GetItemIDAt(int16 slot_id);
|
||||
void SendSpellAnim(uint16 target_id, uint16 spell_id);
|
||||
std::string GetClassAbbreviation();
|
||||
std::string GetRaceAbbreviation();
|
||||
|
||||
void ApplySpell(int spell_id);
|
||||
void ApplySpell(int spell_id, int duration);
|
||||
|
||||
Reference in New Issue
Block a user