1
0
EQ2Emu/docs/lua_functions/StopTimer.md

27 lines
717 B
Markdown

### Function: StopTimer(spawn, function)
**Description:**
Stops an active timer that is to call the `function`.
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
- `function` (int32) - Integer value `function`.
**Returns:** None.
**Example:**
```lua
-- From SpawnScripts/The Deserted Mine/ShyzintheCoercer.lua
function spawnthirdwaveisalivefinal(NPC)
local zone = GetZone(NPC)
local firstwavegrp = GetGroup(GetSpawnGroupByID(zone, 4122))
if not firstwavegrp == nil then
SetTempVariable(NPC, "combat_notfinish", "0")
for k,v in ipairs(firstwavegrp) do
if IsAlive(GetSpawnByLocationID(zone, v)) then
SetTempVariable(NPC, "combat_notfinish", "1")
break
end
```