Postado Janeiro 17, 2015 10 anos Olá, gostaria que me ajudassem em uma spell se possivel, Gostaria de uma spell que um determinado effect ( DISTANCE) saísse de um determinado ponto X da tela , e fosse em direção ao target.Ex:Como uma bola de fogo estivesse caindo do "céu" no target. (o efeito que irá sair, será um efeito Distance \x ) https://www.youtube.com/watch?v=kvAoijsI3vg Como a spell do video, porém q saia apenas 1 efeito no target, e não varios! Agradeço Editado Janeiro 17, 2015 10 anos por Treevo (veja o histórico de edições)
Postado Janeiro 19, 2015 10 anos Bom, eu fiz desse jeito, espero que goste... Tag: <instant name="Fire Attack" words="exori flame" lvl="10" mana="20" prem="1" range="3" casterTargetOrDirection="0" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="exori flame.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> Você pode trocar os nomes, as vocações, basicamente tudo, menos casterTargetOrDirection="0", deixe 0 mesmo. Script: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 15) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local effect = 3 doSendDistanceShoot({x = getThingPos(target).x-9, y = getThingPos(target).y-12,z = getThingPos(target).z}, getThingPos(target), effect) return addEvent(doCombat, 500, cid, combat, var) end Onde tem local effect 3, é o efeito de distance, como você diz "/x". _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Postado Janeiro 19, 2015 10 anos Autor Cara, funcionou o efeito sai certinho tudo perfeito, porém ele não da nenhum dano ao target :c
Postado Janeiro 19, 2015 10 anos Solução Cara, funcionou o efeito sai certinho tudo perfeito, porém ele não da nenhum dano ao target :c Eu percebi uns erros só agora... Troca tudo por isso: Tag: <instant name="Fire Attack" words="exori flame" lvl="10" mana="20" prem="1" range="3" needtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="exori flame.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> Script: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 15) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local effect = 3 doSendDistanceShoot({x = getThingPos(target).x-6, y = getThingPos(target).y-6,z = getThingPos(target).z}, getThingPos(target), effect) return doCombat( cid, combat, var) end _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.