• 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 Easy change

TibiaGameHost

Hello!
Joined
Feb 25, 2009
Messages
255
Reaction score
0
Location
Canadá
Hi, I want 2 effects for text, would possible?

Code:
local positions = {
   ["Trainers"] = {{x = 32343, y = 32219, z = 7}, 28},
   ["Items!"] = {{x = 32365, y = 32231, z = 7}, 55},
}

function onThink(cid, interval, lastExecution)
   for text, v in pairs(config.positions) do
      doSendAnimatedText(v[1], text, math.random(1, 255))
 doSendMagicEffect(v[1], v[2] or 18)
   end

   return true
end
 
Yes ,it can be

PHP:
local positions = {
        ["HardCore"] = { x = 993, y = 991, z = 7 },
        ["Depot"] = { x = 1007, y = 991, z = 7 },
        ["Arena"] = { x = 1007, y = 993, z = 7 },
        ["Training"] = { x = 993, y = 997, z = 7 },
        ["V.I.P!!"] = { x = 993, y = 995, z = 7 },
        ["Quests!!"] = { x = 993, y = 993, z = 7 },
        ["Low Hunt"] = { x = 993, y = 999, z = 7 },
        ["NPC"] = { x = 993, y = 1001, z = 7 }, 
        ["War!"] = { x = 1180, y = 1373, z = 7 },
        ["Zombie"] = { x = 1188, y = 1373, z = 7 },
        ["Welcome"] = { x = 1000, y = 999, z = 7 },
        ["Events"] = { x = 1007, y = 995, z = 7 },
        ["Outfit"] = { x = 1007, y = 997, z = 7 },
 
}

function onThink (cid, interval, lastExecution)
	for text, pos in pairs(positions) do
		doSendMagicEffect(pos, math.random(31,31))
                doSendMagicEffect(pos, math.random(61,61))
		doSendAnimatedText(pos, text, 57000)
	end
	return true
end
 
Back
Top