pele112
Member
Witam!
Mam problem z yalahar quest. Zabijam Azereus'a i nie pojawia sie tp
Mój azerus.lua
Mam problem z yalahar quest. Zabijam Azereus'a i nie pojawia sie tp
Mój azerus.lua
LUA:
local config = {
message = "Now You have 2 minutes to come in the teleport on the north room",
timeToRemove = 120, -- seconds
teleportId = 1387,
bosses = { -- Monster Name, Teleport To Position, Teleport Position
["Azerus"] = { { x = 581, y = 575, z = 10 }, { x = 581, y = 577, z = 9 }},
}
}
local function removal(position)
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end
function onDeath(cid, corpse, killer)
local position = getCreaturePosition(cid)
for name, pos in pairs(config.bosses) do
if name == getCreatureName(cid) then
teleport = doCreateTeleport(config.teleportId, pos[1], pos[2])
doSendMagicEffect(pos[2], CONST_ME_TELEPORT)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, pos[2])
end
end
return TRUE
end
Last edited by a moderator: