[Quest API] Add GetEXPForLevel() to Perl/Lua (#3403)

# Perl
- Add `$client->GetEXPForLevel(check_level)`.

# Lua
- Add `client:GetEXPForLevel(check_level)`.

# Notes
- This allows operators to see the required experience for a level based on the client provided, this takes race/class modifiers into account as well if enabled.
This commit is contained in:
Alex King
2023-06-12 20:18:39 -04:00
committed by GitHub
parent 152e99444c
commit c5c575b028
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1641,6 +1641,7 @@ public:
PlayerEvent::PlayerEvent GetPlayerEvent();
void RecordKilledNPCEvent(NPC *n);
uint32 GetEXPForLevel(uint16 check_level);
protected:
friend class Mob;
void CalcEdibleBonuses(StatBonuses* newbon);
@@ -1816,7 +1817,6 @@ private:
bool temp_pvp;
void NPCSpawn(const Seperator* sep);
uint32 GetEXPForLevel(uint16 level);
void SendLogoutPackets();
void SendZoneInPackets();