Lua functions

GiveExp

Registered in this checkout as EQ2Emu_lua_GiveExp; implementation found at WorldServer/Lua/LuaFunctions.cpp:12431.

Historical signature: GiveExp(player, amount)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: GiveExp(player, amount)

Description: Awards a certain amount of experience points to the specified player. This can be used to grant quest rewards or bonus experience outside the normal combat exp flow.

Parameters:

  • player (Spawn) - Spawn object representing player.
  • amount (uint32) - Quantity amount.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

GiveExp(Player, 110)

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:208; binding EQ2Emu_lua_GiveExp.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.