• 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!

Lua Raid Open Teleport

adrenyslopez

Member
Joined
Dec 22, 2015
Messages
201
Reaction score
15
Hello, good night, someone will have a script for when a raid is activated a teleport to the boss is created, example: ./raid demon

Create a teleport here (32343, 32220, 7) that sends you to this address (32402, 32082, 7) and the demon comes out here (32399, 32076, 7)

Or create a teleport with an actionid X here (32343, 32220, 7) and the demon comes out here (32399, 32076, 7)
 
Since you didn't mention your server version, I've made it for TFS 1.3, using revscripts.

Lua:
local config = {
    raidTime = "7:30:00", -- 0:00:00 to 23:59:59
    remainTime = 60, -- how long until teleporter disappears (in seconds)
    teleporterPosition = Position(32343, 32220, 7),
    teleportDestination = Position(32402, 32082, 7),
    bossName = "demon",
    bossPosition = Position(32399, 32076, 7)
}

local function removeTeleporter(position)
    Tile(position):getItemById(1387):remove()
end

local global = GlobalEvent("globalEvent_demonRaidTeleporter")

function global.onTime()
    Game.createMonster(config.bossName, config.bossPosition, false, true)
    Game.createItem(1387, 1, config.teleporterPosition):setDestination(config.teleportDestination)
    addEvent(removeTeleporter, 1000 * config.remainTime, config.teleporterPosition)
    return true
end

global:time(config.raidTime)
global:register()
 
Since you didn't mention your server version, I've made it for TFS 1.3, using revscripts.

Lua:
local config = {
    raidTime = "7:30:00", -- 0:00:00 to 23:59:59
    remainTime = 60, -- how long until teleporter disappears (in seconds)
    teleporterPosition = Position(32343, 32220, 7),
    teleportDestination = Position(32402, 32082, 7),
    bossName = "demon",
    bossPosition = Position(32399, 32076, 7)
}

local function removeTeleporter(position)
    Tile(position):getItemById(1387):remove()
end

local global = GlobalEvent("globalEvent_demonRaidTeleporter")

function global.onTime()
    Game.createMonster(config.bossName, config.bossPosition, false, true)
    Game.createItem(1387, 1, config.teleporterPosition):setDestination(config.teleportDestination)
    addEvent(removeTeleporter, 1000 * config.remainTime, config.teleporterPosition)
    return true
end

global:time(config.raidTime)
global:register()

Is it possible for this message to appear when the raid runs?

Ferumbras has returned to his citadel once more.
Stop him before its too late.
 
Since you didn't mention your server version, I've made it for TFS 1.3, using revscripts.

Lua:
local config = {
    raidTime = "7:30:00", -- 0:00:00 to 23:59:59
    remainTime = 60, -- how long until teleporter disappears (in seconds)
    teleporterPosition = Position(32343, 32220, 7),
    teleportDestination = Position(32402, 32082, 7),
    bossName = "demon",
    bossPosition = Position(32399, 32076, 7)
}

local function removeTeleporter(position)
    Tile(position):getItemById(1387):remove()
end

local global = GlobalEvent("globalEvent_demonRaidTeleporter")

function global.onTime()
    Game.createMonster(config.bossName, config.bossPosition, false, true)
    Game.createItem(1387, 1, config.teleporterPosition):setDestination(config.teleportDestination)
    addEvent(removeTeleporter, 1000 * config.remainTime, config.teleporterPosition)
    return true
end

global:time(config.raidTime)
global:register()
Is it possible for this message to appear when the raid runs?
 
Back
Top