okk but idk how i can explain i want this onehttp://otland.net/threads/magic-effect-on-sqm.209585/#post-2008550
http://otland.net/threads/magic-effects-10-41.221733/
Next time post your server version, so people don't have to guess.

local config = {
positions = {
["Teleports"] = { x = 994, y = 995, z = 7 },
["Trainers"] = { x = 995, y = 995, z = 7 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 2094, y = 2415, z = 5 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Shops"] = { x = 1006, y = 995, z = 7 },
["Train II"] = { x = 1747, y = 1988, z = 6 },
["Temple"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Events"] = { x = 999, y = 995, z = 7 },
["PvP Arena"] = { x = 1000, y = 995, z = 7 },
},
effects = {
CONDITION_PARAM_DELAYED
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(37,37)) <-----? here or what
doSendAnimatedText(pos, text, math.random(133, 134))
end
return TRUE
end
ok ok now i get it but what do i type? in that link you gave me it says Const_me_stunYes, instead of math.random(37,37), if you want it to send 2 magic effects, you can add another line.
ok ok now i get it but what do i type? in that link you gave me it says Const_me_stun
doSendMagicEffect(pos, math.random(37,37))
doSendMagicEffect(pos, math.random(37,37)) <---- here i want thoose stars so what chould i type in it?
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
effects = {
CONDITION_PARAM_DELAYED,
CONST_ME_STUN,
CONST_ME_POFF
}
can you do one to me so i can see how you did cant really take it in my stupid brain ^^Change line to
Code:doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
And then add random effects to the effects variable, like:
Code:effects = { CONDITION_PARAM_DELAYED, CONST_ME_STUN, CONST_ME_POFF }
local config = {
positions = {
["Teleports"] = { x = 994, y = 995, z = 7 },
["Trainers"] = { x = 995, y = 995, z = 7 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 2094, y = 2415, z = 5 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Shops"] = { x = 1006, y = 995, z = 7 },
["Train II"] = { x = 1747, y = 1988, z = 6 },
["Temple"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Events"] = { x = 999, y = 995, z = 7 },
["PvP Arena"] = { x = 1000, y = 995, z = 7 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA,
CONST_ME_STUN
},
colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_BLUE
}
}
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
Code:local config = { positions = { ["Teleports"] = { x = 994, y = 995, z = 7 }, ["Trainers"] = { x = 995, y = 995, z = 7 }, ["Tempel"] = { x = 1035, y = 998, z = 7 }, ["Tempel"] = { x = 1745, y = 1988, z = 6 }, ["Tempel"] = { x = 2094, y = 2415, z = 5 }, ["Tempel"] = { x = 1745, y = 1988, z = 6 }, ["Shops"] = { x = 1006, y = 995, z = 7 }, ["Train II"] = { x = 1747, y = 1988, z = 6 }, ["Temple"] = { x = 1745, y = 1988, z = 6 }, ["Tempel"] = { x = 1035, y = 998, z = 7 }, ["Events"] = { x = 999, y = 995, z = 7 }, ["PvP Arena"] = { x = 1000, y = 995, z = 7 }, }, effects = { CONST_ME_MAGIC_BLUE, CONST_ME_MAGIC_GREEN, CONST_ME_MORTAREA, CONST_ME_STUN }, colors = { TEXTCOLOR_WHITE, TEXTCOLOR_ORANGE, TEXTCOLOR_GREEN, TEXTCOLOR_BLUE } } 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
I replaced your positions with my script.
My script has random text color and more effects.
Nice it works perfect thx alot i have another script that i dont know how to make it work can you maybe take a look repp +++Code:local config = { positions = { ["Teleports"] = { x = 994, y = 995, z = 7 }, ["Trainers"] = { x = 995, y = 995, z = 7 }, ["Tempel"] = { x = 1035, y = 998, z = 7 }, ["Tempel"] = { x = 1745, y = 1988, z = 6 }, ["Tempel"] = { x = 2094, y = 2415, z = 5 }, ["Tempel"] = { x = 1745, y = 1988, z = 6 }, ["Shops"] = { x = 1006, y = 995, z = 7 }, ["Train II"] = { x = 1747, y = 1988, z = 6 }, ["Temple"] = { x = 1745, y = 1988, z = 6 }, ["Tempel"] = { x = 1035, y = 998, z = 7 }, ["Events"] = { x = 999, y = 995, z = 7 }, ["PvP Arena"] = { x = 1000, y = 995, z = 7 }, }, effects = { CONST_ME_MAGIC_BLUE, CONST_ME_MAGIC_GREEN, CONST_ME_MORTAREA, CONST_ME_STUN }, colors = { TEXTCOLOR_WHITE, TEXTCOLOR_ORANGE, TEXTCOLOR_GREEN, TEXTCOLOR_BLUE } } 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
I replaced your positions with my script.
My script has random text color and more effects.
here comes a noob qeustion but dont give up ^^ how can i see the tfs?Which TFS?
, version 0.3.6 -When you start your server
it is this oneOh okay, well the scripts are good as they can get with 0.3If you had 1.x, i will be able to optimize them
![]()