Autor Wiadomość
Mefix94
PostWysłany: Czw 14:13, 17 Lut 2011    Temat postu: [8.54] Kolorowe napisy na TP

W folderze data/Globalevents robimy plik effect.lua
Kod:
local config = {
positions = {
["Welcome"] = { x = 1031, y = 1018, z = 7 },
["Start Items"] = { x = 1027, y = 1014, z = 7 },
["Expy"] = { x = 1034, y = 1014, 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

Pozniej w globalevents.xmp dodajemy:
Kod:
<globalevent name="EffectTiles" interval="1" event="script" value="effect.lua"/>


Welcome tutaj dajemy jaki chcemy napis.
x = 1027, y = 1014, z = 7 tutaj umieszczamu wspolzedne danej kratki.
Pozdrawiam

Powered by phpBB © 2001, 2005 phpBB Group