1234567891011121314151617181920212223242526272829303132333435 |
- --[[
- Script Name : SpawnScripts/QueensColony/aMorakdevourer_halfling.lua
- Script Purpose : a Morak devourer
- Script Author : Scatman
- Script Date : 2009.05.14
- Script Notes :
- --]]
- function spawn(NPC)
- if GetSpawnLocationID(NPC) == 1584881 then
- local Halfling = GetSpawnByLocationID(GetZone(NPC), 1584880)
- if Halfling == nil then
- SpawnByLocationID(GetZone(NPC), 1584880)
- else
- SpawnSet(Halfling, "show_command_icon", 0)
- end
-
- local RescuedHalfling = GetSpawnByLocationID(GetZone(NPC), 1584992)
- if RescuedHalfling ~= nil then
- Say(Halfling, "Ahhhhhh! I must escape!")
- Despawn(RescuedHalfling)
- end
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function group_dead(NPC, Spawn)
- local Halfling = GetSpawnByLocationID(GetZone(NPC), 1584880)
- if Halfling ~= nil then
- SpawnSet(Halfling, "show_command_icon", 1)
- end
- end
|