Cgf
Advanced User
- Joined
- Aug 17, 2009
- Messages
- 334
- Reaction score
- 8
Od razu pisz?,?e skrypt nie jest m?j.. Skrypt polega na tym,?e po wpisaniu pozycji np.nad teleportem wyskakuje Trainers lub nad skrzynk?(bez efektu). Z tego co wiem efekt te? mo?e by? ale ja akurat tego nie u?ywam.Skrypt otrzyma?em od Arteek daj? go tutaj dlatego,?e du?o os?b go szuka!
data/globalevents/script tworzysz magic effects.lua i wklejasz
PS.[1] = {pos = {2577,2553,7}, text = {"Trainery"}}, Tam gdzie pos wpisujesz pozycje np. skrzyni nad kt?r? ma by? tekst, a tam gdzie pisze text wpisujesz co chcesz...
data/globalevents/globalevents.xml dodajemy
Foto jak to wygl?da:
Oczywi?cie ten napis mruga i zmienia kolory...
data/globalevents/script tworzysz magic effects.lua i wklejasz
Code:
--[[
Talking Tp/signs/tiles for TFS 0.3+
by Maxi (Shawak)
]]--
local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {2577,2553,7}, text = {"Trainery"}},
[2] = {pos = {2583,2551,7}, text = {"Paladin"}},
[3] = {pos = {2583,2549,7}, text = {"Loot"}},
[4] = {pos = {2547,2530,6}, text = {"Temple"}},
[5] = {pos = {2577,2551,7}, text = {"Depo"}},
[6] = {pos = {2577,2549,7}, text = {"Teleporty!"}},
[7] = {pos = {2583,2547,7}, text = {"Malak"}},
[8] = {pos = {2577,2547,7}, text = {"Black City"}},
[9] = {pos = {2577,2545,7}, text = {"Lost City"}},
}
local effects = {
--X pos,Y pos, Z pos, text
}
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
data/globalevents/globalevents.xml dodajemy
Code:
<globalevent name="magicEffects" interval="tutaj wpisujesz czas co ile ma wyskakiwa? w milisekundach ja mam 2000 i jest ok" script="magic effects.lua"/>
Foto jak to wygl?da:
Oczywi?cie ten napis mruga i zmienia kolory...