Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ########################################################
- -- ##### Name: Adriano Swatt' #####
- -- ##### Version: 1.0 #####
- -- ########################################################
- -- ##### Developed by Adriano Swatt' #####
- -- ##### Contact: [email protected] #####
- -- ##### TEXTO INGAME ANIMADO BY SWATT #####
- -- ########################################################
- -- [[ <- 15 sqms -> ]] -- POR -- [[ /\ 6 sqms \/ ]] --
- local cfg = {
- effect = 43, -- Magic Effect to Text [Efeito das Letras]
- columns = 15, -- Número de Colunas [Sqms na horizontal]
- delay = 15, -- Effect Delay [Montando Texto / Transition]
- interval = 1000, -- Text [Entre Um Texto e Outro]
- }
- local text = {
- [1] = { -- 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15
- [1] = {x, 0, 0, 0, 0, x, 0, 0, x, x, 0, 0, x, x, x},
- [2] = {x, 0, 0, 0, x, 0, x, 0, x, 0, x, 0, 0, 0, x},
- [3] = {x, 0, 0, 0, x, 0, x, 0, x, 0, x, 0, 0, x, 0},
- [4] = {x, 0, 0, 0, x, x, x, 0, x, x, 0, 0, 0, x, 0},
- [5] = {x, 0, 0, 0, x, 0, x, 0, x, 0, x, 0, x, 0, 0},
- [6] = {x, x, x, 0, x, 0, x, 0, x, x, 0, 0, x, x, x}
- },
- [2] = {
- [1] = {x, x, 0, 0, x, x, x, 0, x, x, x, 0, x, x, x},
- [2] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, 0, x},
- [3] = {x, x, x, 0, x, x, x, 0, 0, x, 0, 0, x, 0, x},
- [4] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, x, x},
- [5] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, 0, x},
- [6] = {x, x, 0, 0, x, x, x, 0, 0, x, 0, 0, x, 0, x}
- },
- [3] = {
- [1] = {x, x, x, x, x, x, x, 0, x, x, x, x, x, x, x},
- [2] = {x, 0, 0, 0, 0, 0, 0, x, 0, 0, 0, 0, 0, 0, x},
- [3] = {x, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, x},
- [4] = {x, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, x},
- [5] = {x, 0, 0, 0, 0, 0, 0, x, 0, 0, 0, 0, 0, 0, x},
- [6] = {x, x, x, x, x, x, x, 0, x, x, x, x, x, x, x}
- },
- [4] = {
- [1] = {x, x, 0, 0, x, x, x, 0, x, x, x, 0, x, x, x},
- [2] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, 0, x},
- [3] = {x, x, x, 0, x, x, x, 0, 0, x, 0, 0, x, 0, x},
- [4] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, x, x},
- [5] = {x, 0, x, 0, x, 0, 0, 0, 0, x, 0, 0, x, 0, x},
- [6] = {x, x, 0, 0, x, x, x, 0, 0, x, 0, 0, x, 0, x}
- },
- [5] = {
- [1] = {x, x, x, 0, 0, x, x, 0, x, x, 0, 0, x, x, x},
- [2] = {x, 0, 0, 0, x, 0, 0, x, 0, 0, x, 0, 0, 0, x},
- [3] = {x, 0, 0, 0, x, 0, 0, 0, 0, 0, x, 0, 0, 0, x},
- [4] = {x, 0, 0, 0, 0, x, 0, 0, 0, x, 0, 0, 0, 0, x},
- [5] = {x, 0, 0, 0, 0, 0, x, 0, x, 0, 0, 0, 0, 0, x},
- [6] = {x, x, x, 0, 0, 0, 0, x, 0, 0, 0, 0, x, x, x}
- },
- }
- function onSay(cid, words, param)
- myPos = getCreaturePos(cid)
- centerPos = {x=myPos.x, y=myPos.y+2, z=myPos.z}
- local effPosY = {
- [1] = 2,
- [2] = 1,
- [3] = 0,
- [4] = 1,
- [5] = 2,
- [6] = 3,
- }
- local effPosX = {
- [1] = 7,
- [2] = 6,
- [3] = 5,
- [4] = 4,
- [5] = 3,
- [6] = 2,
- [7] = 1,
- [8] = 0,
- [9] = 1,
- [10] = 2,
- [11] = 3,
- [12] = 4,
- [13] = 5,
- [14] = 6,
- [15] = 7,
- }
- for w = 1, #text do -- W = 1, Quantidade de Textos
- for a = 1, #text[1] do -- A = 1, Quantidade de Linhas Y
- for b = 1, cfg.columns do -- B = 1, Quantidade de Colunas X
- var = text[w][a][b]
- if tostring(var) == "nil" then
- addEvent(function()
- if a <= 2 then
- if b <= 7 then
- local newPosFinal = {x=centerPos.x-effPosX[b], y=centerPos.y-effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b == 8 then
- local newPosFinal = {x=centerPos.x, y=centerPos.y-effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b >= 9 then
- local newPosFinal = {x=centerPos.x+effPosX[b], y=centerPos.y-effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- end
- elseif a == 3 then
- if b <= 7 then
- local newPosFinal = {x=centerPos.x-effPosX[b], y=centerPos.y, z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b == 8 then
- local newPosFinal = {x=centerPos.x, y=centerPos.y, z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b >= 9 then
- local newPosFinal = {x=centerPos.x+effPosX[b], y=centerPos.y, z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- end
- elseif a >= 4 then
- if b <= 7 then
- local newPosFinal = {x=centerPos.x-effPosX[b], y=centerPos.y+effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b == 8 then
- local newPosFinal = {x=centerPos.x, y=centerPos.y+effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- elseif b >= 9 then
- local newPosFinal = {x=centerPos.x+effPosX[b], y=centerPos.y+effPosY[a], z=centerPos.z}
- addEvent(doSendMagicEffect, (cfg.delay * b), newPosFinal, cfg.effect)
- end
- end
- end, cfg.interval * w)
- end
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment