• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Yalahar 10 mission

pele112

Member
Joined
Aug 9, 2007
Messages
572
Reaction score
8
Location
Wodzisław Śląski
Witam!
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:
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:lower() == getCreatureName(cid):lower()) 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

Tak spróbuj, i nie zapomnij dodać linijki do creaturescript.xml i zarejestrować eventu w funkcji onLogin.
 
Back
Top