Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
local config = {
tableka = {
['depo'] = {pos={x=1111, y=1111, z=7}},
['tp'] = {pos={x=2222, y=2222, z=5}}
--['wyswietlajacy sie tekst'] = {pos={pozycje x, y i z}}
},
effect = 11, -- wyswietlajacy sie efekt
color = 2 --kolor napisu
}
function onThink(interval)
for text, op in pairs(config.tableka) do
doSendMagicEffect(op.pos, config.effect)
doSendAnimatedText(op.pos, text, config.color)
end
return true
end
<globalevent type="think" name="Napisy" script="napisy.lua"/>
<globalevent type="think" name="Napisy" script="napisy.lua"/>
<globalevent type="think" interval="3000" name="Napisy" script="napisy.lua"/>
<globalevent name="Napisy" interval="3000" script="napisy.lua"/>
local pozycje = {
{pos = {x=1004, y=997, z=7}, tekst = "Deposit"},
{pos = {x=993, y=1004, z=8}, tekst = "Deposit"},
{pos = {x=998, y=997, z=7}, tekst = "Arena PvP"},
{pos = {x=1002, y=992, z=7}, tekst = "Trainers"},
{pos = {x=1026, y=994, z=7}, tekst = "Trainers"},
{pos = {x=1000, y=992, z=7}, tekst = "Shops"},
{pos = {x=998, y=992, z=7}, tekst = "Quests"},
{pos = {x=1028, y=994, z=7}, tekst = "Temple"},
{pos = {x=1002, y=997, z=6}, tekst = "The Runes"},
{pos = {x=1004, y=997, z=6}, tekst = "The Ship"}
}
local kolor = 29
function onThink(interval, lastExecution)
for i=1, #pozycje do
local efektLosowy = math.random(efekt.odEfektu,efekt.doEfektu)
doSendMagicEffect(pozycje[i].pos, pozycje[i].effect or 30)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,pozycje[i].textEffect or kolor)
end
return true
end
<globalevent name="magic" interval="2000" script="teleportText.lua"/>
Wiadomo?? nie mo?e zosta? wys?ana, poniewa? Don Muha przekroczy? maksymalny limit posiadanych (przechowywanych) prywatnych wiadomo?ci. Skontaktuj si? z u?ytkownikiem Don Muha i popro?, aby usun?? kilka wiadomo?ci.
local pozycje = {
{pos = {x=163, y=48, z=7}, tekst = "OB"},
{pos = {x=156, y=48, z=7}, tekst = "TP Room"}
}
local kolor = 29
function onThink(interval, lastExecution)
for i=1, #pozycje do
local efektLosowy = math.random(efekt.odEfektu,efekt.doEfektu)
doSendMagicEffect(pozycje[i].pos, pozycje[i].effect or 30)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,pozycje[i].textEffect or kolor)
end
return true
end
--[[
Talking Tp/signs/tiles for TFS 0.3+
by Maxi (Shawak) ]]--
local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {996,983,7}, text = {"asd"}},
[2] = {pos = {997,983,7}, text = {"bsd"}},
[3] = {pos = {998,983,7}, text = {"csd"}},
}
local effects = {
--X pos,Y pos, Z pos, text
[1] = {pos = {996,983,7}, effect = {36}},
[2] = {pos = {997,983,7}, effect = {36}},
[3] = {pos = {998,983,7}, effect = {36}},
[4] = {pos = {999,983,7}, effect = {36}},
[5] = {pos = {1000,983,7}, effect = {36}},
[6] = {pos = {1001,983,7}, effect = {36}},
}
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(144,144))
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
Poco za?miecasz temat jak ja ju? napisa?em?:<testowane i dzia?a:
Kod:--[[ Talking Tp/signs/tiles for TFS 0.3+ by Maxi (Shawak) ]]-- local text = { --X pos,Y pos, Z pos, text [1] = {pos = {996,983,7}, text = {"asd"}}, [2] = {pos = {997,983,7}, text = {"bsd"}}, [3] = {pos = {998,983,7}, text = {"csd"}}, } local effects = { --X pos,Y pos, Z pos, text [1] = {pos = {996,983,7}, effect = {36}}, [2] = {pos = {997,983,7}, effect = {36}}, [3] = {pos = {998,983,7}, effect = {36}}, [4] = {pos = {999,983,7}, effect = {36}}, [5] = {pos = {1000,983,7}, effect = {36}}, [6] = {pos = {1001,983,7}, effect = {36}}, } 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(144,144)) 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

local pozycje = {
{pos = {x=163, y=48, z=7}, tekst = "OB"},
{pos = {x=156, y=48, z=7}, tekst = "TP Room"}
}
local kolor = 29
function onThink(interval, lastExecution)
for i=1, #pozycje do
doSendMagicEffect(pozycje[i].pos, pozycje[i].effect or 30)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,pozycje[i].textEffect or kolor)
end
return true
end
| Notka moderatorska: |
| +1 OT Expert [Request] |