I whant the text comming up of teleports ! i have the code
and that have i put in globalevents\scripts-effects.lua
and this one have i put in globalevent.xml
and it dosent work? help mee please!
Code:
local config = {
positions = {
["teleport"] = { x = 1006, y = 996, z = 7 },
["Text to show"] = { x = 1000, y = 1000, z = 7 },
["Text to show"] = { x = 1000, y = 1000, z = 7 },
["Text to show"] = { x = 1000, y = 1000, z = 7 },
["Text to show"] = { x = 1000, y = 1000, z = 7 },
["Text to show"] = { x = 1000, y = 1000, z = 7 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
},
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
and that have i put in globalevents\scripts-effects.lua
Code:
<globalevent name="effects" interval="2" event="script" value="effects"/>
and this one have i put in globalevent.xml
and it dosent work? help mee please!