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

Talking Teleports

8.6~:
LUA:
local config = {
positions = {
    ["Example"] = { x = 975, y = 1283, z = 6 },
    ["Example2"] = { x = 975, y = 1283, z = 6 }
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
	doSendMagicEffect(pos, math.random(37,37)) 
        doSendAnimatedText(pos, text, math.random(133, 134))
    end
    return TRUE
end

9.~+:
LUA:
local config = {
	positions = {
		["Example"] = {
			x = 1108, y = 1082, z = 7
		},
		["Example2"] = {
			x = 1108, y = 1082, z = 7
		},

	-- Find more on ../data/lib/000-constant.lua
	effects = {
		CONST_ME_TELEPORT,
		CONST_ME_MAGIC_BLUE,
		CONST_ME_MAGIC_GREEN,
		-- CONST_ME_MORTAREA
	}
}

function onThink(cid, interval, lastExecution)
	for text, pos in pairs(config.positions) do
		doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
		doSendAnimatedText(pos, text, math.random(255))
	end

	return true
end
 
Back
Top