local mob = "Guzzlemaw"
local bossName = "Orshabaal"
local killCount = 15
local positionBossSpawn = {x = 932, y = 1356, z = 12}
local storValGlobal = 1024
local bossMsg = "The skies darken as Orshabaal enters the world! Flee mortals!"
function onKill(cid, target)
if isPlayer(target) ~= TRUE and getCreatureName(target) == mob then
if getGlobalStorageValue(storValGlobal) == nil then
setGlobalStorageValue(storValGlobal, 0)
end
setGlobalStorageValue(cid, getGlobalStorageValue(storValGlobal) + 1)
end
if getGlobalStorageValue(storValGlobal) == killCount then
doCreateMonster(bossName, positionBossSpawn)
broadcastMessage(bossMsg, MESSAGE_STATUS_WARNING)
setGlobalStorageValue(storValGlobal, 0)
end
end