Hey,
So i have decided to make an 8.7 otserv. Im fairly new to it, but im making progress.
But im stuck on trying to get text effect to appear over a teleport.
[8.7] The Forgotten Server v0.2.10 (Mystic Spirit)
Im using this one.
globalevents/scripts/effectile.lua
globalevents/globalevents.xml
I have tried it on a 8.6 server and it works fine there, but i just cant get it to work on an 8.7.
Can anyone help me please? :/
So i have decided to make an 8.7 otserv. Im fairly new to it, but im making progress.
But im stuck on trying to get text effect to appear over a teleport.
[8.7] The Forgotten Server v0.2.10 (Mystic Spirit)
Im using this one.
globalevents/scripts/effectile.lua
PHP:
local config = {
positions = {
["Teleports"] = { x = 993, y = 996, z = 7 },
["Deport"] = { x = 1006, y = 996, z = 7 },
},
effects = {
CONDITION_PARAM_DELAYED
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(1, 255))
end
return TRUE
end
globalevents/globalevents.xml
PHP:
<globalevent name="EffectTile" interval="3" script="effectile.lua"/>
I have tried it on a 8.6 server and it works fine there, but i just cant get it to work on an 8.7.
Can anyone help me please? :/