• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem z svar arena tp

Status
Not open for further replies.

Monte321

Banned User
Joined
Jul 21, 2009
Messages
137
Reaction score
0
mam problem, gdyz gdy chce wejsc to tp svar arena to nic sie nie dzieje, uzywam svar arena by gesior co mam zrobic?
 
dobra problem rozwiazany, ma ktos moze skrypty z tp bossami inq? zeby jak sie zrobi to mozna isc go zabijac i huncic?
 
znaczy: jesli nie umiesz tak prostej rzeczy to plac
hmm, moze powinienem zadac oplaty za wyjasnienie?
 
trzeba graczowi zrobic storage ze po zrobieniu sali bedzie mugl tam przez tp sie dostac ;d

Zrúb temat na Requests forum bo tu troche malo pomagaja albo noobiá tylko ;d
 
Rep +++


Code:
 local config = {
        message = "Go into the teleport in 120 seconds, else it will disappear.",
        timeToRemove = 120, -- seconds
        teleportId = 1387,
        bosses = { -- Monster Name, Teleport To Position, Teleport Position
                ["Hellgorak"] = { { x = 1192, y = 1240, z = 12 }, { x = 1066, y = 1057, z = 14, stackpos = 1 } },

}

local function removal(position)
        if getThingfromPos(position).itemid == config.teleportId then
                doRemoveItem(getThingfromPos(position).uid)
        end
        return TRUE
end

function onKill(cid, target, lastHit)
        local position = getCreaturePosition(cid)
        for name, pos in pairs(config.bosses) do
                if name == getCreatureName(target) then
                        teleport = doCreateTeleport(config.teleportId, pos[1], pos[2])
                        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
                        addEvent(removal, config.timeToRemove * 1000, pos[2])
                end
        end
        return TRUE
end
 
Rep +++


Code:
 local config = {
        message = "Go into the teleport in 120 seconds, else it will disappear.",
        timeToRemove = 120, -- seconds
        teleportId = 1387,
        bosses = { -- Monster Name, Teleport To Position, Teleport Position
                ["Hellgorak"] = { { x = 1192, y = 1240, z = 12 }, { x = 1066, y = 1057, z = 14, stackpos = 1 } },

}

local function removal(position)
        if getThingfromPos(position).itemid == config.teleportId then
                doRemoveItem(getThingfromPos(position).uid)
        end
        return TRUE
end

function onKill(cid, target, lastHit)
        local position = getCreaturePosition(cid)
        for name, pos in pairs(config.bosses) do
                if name == getCreatureName(target) then
                        teleport = doCreateTeleport(config.teleportId, pos[1], pos[2])
                        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
                        addEvent(removal, config.timeToRemove * 1000, pos[2])
                end
        end
        return TRUE
end

Chyba dla mnie =/
 
Status
Not open for further replies.
Back
Top