Lua functions

SetCastOnAggroComplete

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

Historical signature: SetCastOnAggroComplete(spawn, value)

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

Function: SetCastOnAggroComplete(spawn, value)

Description: Sets whether an NPC has completed its initial aggro spell bucket. A reset applies to the current NPC state; completion from an older in-progress selection cannot undo that reset.

Parameters:

  • spawn (Spawn) - The NPC whose completion flag is changed.
  • value (int8) - 1 marks the bucket complete; other numeric values reset it to incomplete.

Returns: Bool. True for a valid NPC; false when the spawn is missing or is not an NPC.

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.