jeppsonskate
Member
Hello!
I've seen on different otservers thats using "effectile" got= on one tp(mortarea) and on other tp(magic_red) ETC... i wounder how i do that.. when i use em both in my script it choose between those two both is on same tp, i want like 5 different effect on 5 different tps..
script:
I've seen on different otservers thats using "effectile" got= on one tp(mortarea) and on other tp(magic_red) ETC... i wounder how i do that.. when i use em both in my script it choose between those two both is on same tp, i want like 5 different effect on 5 different tps..
script:
Lua:
local config = {
positions = {
["SHOP"] = { x = 1004, y = 998, z = 7 },
["QUEST"] = { x = 1004, y = 996, z = 7 },
["HUNT"] = { x = 1004, y = 994, z = 7 },
["TRAINER"] = { x = 1004, y = 1000, z = 7 },
["DEPOT"] = { x = 1004, y = 1002, z = 7 },
["CASINO"] = { x = 995, y = 994, z = 7 },
["OUTFIT"] = { x = 1004, y = 998, z = 6 },
["READ"] = { x = 1000, y = 993, z = 11 },
["WARZONE"] = { x = 997, y = 994, z = 7 },
["Enchants"] = { x = 1003, y = 996, z = 8 },
},
effects = {
CONST_ME_MAGIC_RED
},
colors = {
TEXTCOLOR_WHITE
}
}
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, config.colors[math.random(1, #config.colors)])
end
return TRUE
end
Last edited by a moderator: