DXtibiaXD 1 Postado Abril 18, 2010 Share Postado Abril 18, 2010 local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 4.2, 60, 6.4, 100) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_INFERNALBOLT) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 4.2, 60, 6.4, 100) arr1 = { {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, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0}, {0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 1, 1, 0, 3, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 0, 0, 1, 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}, } local area = createCombatArea(arr1) local area = createCombatArea(arr2) setCombatArea(combat1, area) setCombatArea(combat2, area) function onTargetTile1(cid, pos) doCombat(cid,combat1,positionToVariant(pos)) end setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onTargetTile2(cid, pos) doCombat(cid,combat2,positionToVariant(pos)) end function onCastSpell(cid, var) addEvent(onCastSpell1, 20, parameters) addEvent(onCastSpell2, 200, parameters) return TRUE end tem algum erro eu n conseguir arruma e a unica spell que eu n cosigo e foda '' Link para o comentário Compartilhar em outros sites More sharing options...
Fir3element 185 Postado Abril 18, 2010 Share Postado Abril 18, 2010 cara manda o erro tipo oke aparece no gui ou console.. Link para o comentário Compartilhar em outros sites More sharing options...
DXtibiaXD 1 Postado Abril 18, 2010 Autor Share Postado Abril 18, 2010 aqui está da isso no conselo erro [18/04/2010 00:40:01] [Error - Spell Interface] [18/04/2010 00:40:01] data/spells/scripts/exevo mas bolt.lua:onCastSpell [18/04/2010 00:40:01] Description: [18/04/2010 00:40:01] (luaAddEvent) Callback parameter should be a function. [18/04/2010 00:40:01] [Error - Spell Interface] [18/04/2010 00:40:01] data/spells/scripts/exevo mas bolt.lua:onCastSpell [18/04/2010 00:40:01] Description: [18/04/2010 00:40:01] (luaAddEvent) Callback parameter should be a function. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados