local creatureName = "ghost of old pirate" -- First monster name
local newCreature = "ghost of old pirate" -- Name of a monster spawning after first monster death
local creatureSay = "TEXT TEXT TEXT" -- Orange text after kill first monster
local position = {x=1027,y=1016,z=7} -- Position where monster spawn
function Spawn_Msg()
doBroadcastMessage("TEXT TEXT TEXT") -- Msg when monster spawn
end
function onDeath(cid, target, damage, flags)
if isPlayer(target) then
return false
end
local name = getCreatureName(cid):lower()
if name ~= creatureName:lower() then
return false
end
doCreatureSay(cid, creatureSay, TALKTYPE_ORANGE_1, false, 0, position)
addEvent(doCreateMonster, 60 * 1000 * 60, newCreature, position) -- Next monster spawn after 60 min from first death of Boss
addEvent(Spawn_Msg, 60 * 1000 * 60)
return true
end