Figaro
Banned User
Hey how i make effect like this?
E=Effect
Tp=teleport
s=distance shooting effect
I want that effect to this script!
E=Effect
Tp=teleport
s=distance shooting effect
Code:
E
E s E
E s TP s E
E s E
E
Code:
local config = {
positions = {
["Welcome"] = { x = 1033, y = 1007, z = 7 }
},
effects = {
CONST_ME_YELLOWENERGY,
CONST_ME_FIREWORK_YELLOW,
CONST_ME_FIREWORK_BLUE,
CONST_ME_FIREWORK_RED,
CONST_ME_PURPLEENERGY
}
}
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(1, 255))
end
return TRUE
end