Em 07/10/2016 at 06:19, matheus7z disse:
Libera a magia ai, por favor!
Em 08/10/2016 at 00:16, Shotta disse:
Ta aí, magia bem simples:
elseif spell == "Dual Flamethrower" thenlocal function doStartAtk(cid)if not isCreature(cid) then return false endif isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return false endif isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end local flamepos = getThingPosWithDebug(cid) local effect = 255 local a = isCreature(target) and getCreatureDirectionToTarget(cid, target) or getCreatureLookDir(cid) if a == 0 then flamepos.x = flamepos.x+1 flamepos.y = flamepos.y-1 effect = (isMega(cid) and getMegaID(cid) == "X") and 292 or 106 elseif a == 1 then flamepos.x = flamepos.x+3 flamepos.y = flamepos.y+1 effect = (isMega(cid) and getMegaID(cid) == "X") and 295 or 109 elseif a == 2 then flamepos.x = flamepos.x+1 flamepos.y = flamepos.y+3 effect = (isMega(cid) and getMegaID(cid) == "X") and 293 or 107 elseif a == 3 then flamepos.x = flamepos.x-1 flamepos.y = flamepos.y+1 effect = (isMega(cid) and getMegaID(cid) == "X") and 294 or 108 end --doSetCreatureOutfit(cid, {lookType = 2139}, 3400) doMoveInArea2(cid, 0, flamek, FIREDAMAGE, min, max, spell) -- doSendMagicEffect(flamepos, effect) end times = {0, 200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000, 2200, 2400, 2600, 2800, 3000, 3200, 3400, 3600, 3800, 4000, 4200, 4400, 4600} -- Quantidade de vezes em que dará dano(dps) e seu respectivo intervalo de temposetPlayerStorageValue(cid, 3644587, 1)addEvent(setPlayerStorageValue, 10000, cid, 3644587, -1)for i = 1, #times do addEvent(doStartAtk, times[i], cid) if i ==1 then -- Outfit, Tempo doSetCreatureOutfit(cid, {lookType = 2139}, 3400) endend
só precisa configurar o ID da Outfit do Magmortar e caso queira alterar a duração do tempo da magia, altera em "Times" e o tempo em que a Outfit com flamethrower vai durar
Edit: Gif aqui também:
