Bacana brother, eu normalmente não curto o uso de talkaction para magia, mas, essa ficou legal.
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Elemental Arrow
ME
3
1.2k
info
Grupo: Visconde
Registrado: 27/01/13
Posts: 443
Reputação: +83
Gênero: Masculino

13 de novembro de 2013 às 18:42
info
Grupo: Visconde
Registrado: 27/10/12
Posts: 323
Reputação: +46
Char no Tibia: Schznister Equilibriun

18 de novembro de 2013 às 08:29
opa novidade =D irei usa-la huashuauh, Mt boa!

info
Grupo: Visconde
Registrado: 21/04/08
Posts: 311
Reputação: +257
- Flechas de todos elementos vão cair do céu ! rs
local configSpell = { exaust = 40, -- tempo de exaustão st = 19020, -- não mexe level = 150, -- level para usar min = 500, -- ataque minimo max = 1000, -- ataque maximo voc = {3, 7}, -- vocações mana = 600, -- mana } function elementalArrowAttack(cid, min, max) local tipos = { [1] = {distance = 32, efeito = 11, damage = COMBAT_ENERGYDAMAGE}, [2] = {distance = 33, efeito = 6, damage = COMBAT_FIREDAMAGE}, [3] = {distance = 34, efeito = 43, damage = COMBAT_ICEDAMAGE}, [4] = {distance = 39, efeito = 8, damage = COMBAT_EARTHDAMAGE}, } if not isCreature(cid) then return true end local tipoarrow = tipos[math.random(1, 4)] local pos = getThingPos(cid) local novapos = {x = pos.x + math.random(-4, 4), y = pos.y + math.random(-4, 4), z = pos.z} local distancepos = {x = novapos.x, y = pos.y - 8, z = pos.z} doSendDistanceShoot(distancepos, novapos, tipoarrow.distance) doAreaCombatHealth(cid, tipoarrow.damage, novapos, 0, -min, -max, tipoarrow.efeito) end function onSay(cid) local min, max = configSpell.min, configSpell.max if getPlayerAccess(cid) < 3 then if getPlayerLevel(cid) < configSpell.level then return doPlayerSendCancel(cid, "You need level " .. configSpell.level .. " to use this spell.") end if not isInArray(configSpell.voc, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "Your vocation dont use this spell.") end if exhaustion.check(cid, configSpell.st) then return doPlayerSendCancel(cid, "You is exhausted.") end if getCreatureMana(cid) < configSpell.mana then return doPlayerSendCancel(cid, "You dont have mana.") end doCreatureAddMana(cid, -configSpell.mana) exhaustion.set(cid, configSpell.st, configSpell.exaust) end doSendDistanceShoot(getThingPos(cid), {x = getThingPos(cid).x, y = getThingPos(cid).y - 8, z = getThingPos(cid).z}, 2) for x = 1, 12 do for i = 1, 50 do addEvent(elementalArrowAttack, 300 * i, cid, min, max) end end return true endtalkaction:
configure do seu jeito
Editado Novembro 12 por xotservx