Lua functions

ClearHateForSpawn

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

Historical signature: ClearHateForSpawn(…) via current binding

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

Function: ClearHateForSpawn(spawn)

Description: Removes an entity from NPC hate lists in its current zone.

Parameters:

  • spawn (Entity userdata) - Entity to remove from the zone's NPC hate lists.

Returns: None. Invalid entities or missing zones are logged.

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.

ClearHateForSpawn(Target)

Evidence: server/Spells/ClassicRefresh/Fighter/Brawler/FeignDeath-2551690.lua:16; binding EQ2Emu_lua_ClearHateForSpawn.

Current registration: WorldServer/Lua/LuaInterface.cpp.