Uname 0 Postado Março 25, 2011 Share Postado Março 25, 2011 Ola companheiros XTibia, Criei alguns spells com o Mindrage's Spellmaker mas elas estao sem exausted e nao gastam a mana...ja tentei varias vezes "arrumar", infelismente todos sem sucesso. Este é um dos spells que eu fiz... -----------------This Spell was made with Mindrage's Spell Maker v0.56b -----------Do not post the spells in any forum without this line or you will be caught!--- --This Software is free to use and can't be for for real-life values!------------ local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 24) setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) --======================================================================= local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, 8) setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 25) setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) --======================================================================= local area1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} --======================================= local area2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} --======================================= setCombatArea(combat1, createCombatArea(area1)) setCombatArea(combat2, createCombatArea(area2)) function onCastSpell(cid, var) addEvent(doCombat, 0, cid, combat1, var) addEvent(doCombat, 0, cid, combat2, var) end Por favor me ajudem! Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/ Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Março 25, 2011 Share Postado Março 25, 2011 -----------------This Spell was made with Mindrage's Spell Maker v0.56b --------- --Do not post the spells in any forum without this line or you will be caught!--- --This Software is free to use and can't be for for real-life values!------------ local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 24) setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, 8) setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 25) setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) local area1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} local area2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} setCombatArea(combat1, createCombatArea(area1)) setCombatArea(combat2, createCombatArea(area2)) function onCastSpell(cid, var) addEvent(doCombat, 0, cid, combat1, var) addEvent(doCombat, 0, cid, combat2, var) return TRUE end Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/#findComment-1017322 Compartilhar em outros sites More sharing options...
Uname 0 Postado Março 26, 2011 Autor Share Postado Março 26, 2011 VALEU AEWWWW REP+ mas tem como tu me ensina como tu fez ? eu tenho varias outras aqui mas estao com o mesmo problema... e acho que existem mais pessoas com a mesma duvida... ou se puder fazer um tutorial... ajudaria muito... abraço Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/#findComment-1017687 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Março 26, 2011 Share Postado Março 26, 2011 (editado) só adiciona um "return TRUE" antes do último end Editado Março 26, 2011 por Vodkart Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/#findComment-1017690 Compartilhar em outros sites More sharing options...
Uname 0 Postado Março 26, 2011 Autor Share Postado Março 26, 2011 LoL nem precisa mais.. ja vi como.. pro pessoal que ainda nao sabe é só acrescentar la no final "return TRUE" antes do end.... function onCastSpell(cid, var) addEvent(doCombat, 0, cid, combat1, var) addEvent(doCombat, 0, cid, combat2, var) ---->return TRUE<---- end mas sem a flexinha ^^ Mais uma vez, Obrigado pela ajuda!! Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/#findComment-1017691 Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Março 26, 2011 Share Postado Março 26, 2011 isso ai,apendeu com o papai tópico reportado para moverem abraços Link para o comentário https://xtibia.com/forum/topic/154044-spells-sem-exausted/#findComment-1017693 Compartilhar em outros sites More sharing options...
Posts Recomendados