Shawak
Intermediate OT User
Hey all,
Here a script for TFS 0.3.4.
Idea from Teleport Effects.
-> Let ur fields talk
-> Send effects on fields
Globalevents.xml
"interval="2"" = Send all 2 secs, change it to whatever you want.
Effects.lua
Tutorial
You can easy add more fields / texts, just change
to
And so on...
Testet, it work.
Regards,
Shawak
Here a script for TFS 0.3.4.
Idea from Teleport Effects.
-> Let ur fields talk
-> Send effects on fields
Globalevents.xml
HTML:
<globalevent name="effects" interval="2" event="script" value="effects.lua"/>
Effects.lua
Lua:
--[[
Talking Tp/signs/tiles for TFS 0.3+
by Maxi (Shawak)
]]--
local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1095,1217,7}, text = {"text 1"}},
[2] = {pos = {1096,1217,7}, text = {"text 2"}},
[3] = {pos = {1097,1217,7}, text = {"text 3"}},
[4] = {pos = {1098,1217,7}, text = {"text 4"}}
}
local effects = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1095,1217,7}, effect = {18}},
[2] = {pos = {1096,1217,7}, effect = {19}},
[3] = {pos = {1097,1217,7}, effect = {21}},
[4] = {pos = {1098,1217,7}, effect = {22}}
}
function onThink(interval, lastExecution)
for _, area in pairs(text) do
doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
end
for _, area in pairs(effects) do
doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
end
return TRUE
end
Tutorial
You can easy add more fields / texts, just change
Lua:
local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1095,1217,7}, text = {"text 1"}},
[2] = {pos = {1096,1217,7}, text = {"text 2"}},
[3] = {pos = {1097,1217,7}, text = {"text 3"}},
[4] = {pos = {1098,1217,7}, text = {"text 4"}}
}
Lua:
local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1095,1217,7}, text = {"text 1"}},
[2] = {pos = {1096,1217,7}, text = {"text 2"}},
[3] = {pos = {1097,1217,7}, text = {"text 3"}},
[4] = {pos = {1098,1217,7}, text = {"text 4"}},
[5] = {pos = {1099,1217,7}, text = {"text 5"}}
}
Testet, it work.
Regards,
Shawak
Last edited: