Lua functions

GetHateList

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

Historical signature: GetHateList(spawn)

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

Function: GetHateList(spawn)

Description: Returns a list of all spawns currently on the specified NPC’s hate (aggro) list. This includes anyone who has attacked or otherwise generated hate on the NPC.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Table – A list/array of spawns that the NPC currently hates.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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