• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    Spell Exura tempo sio Halp pls xd

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1default Spell Exura tempo sio Halp pls xd el Sáb Feb 10, 2018 12:05 pm

    elchuvas

    avatar
    Nuevo Miembro
    Nuevo Miembro
    Mi Problema:
    Tengo este spell se llama exura tempo sio, si realiza la curacion y si respeta el maglvl que requiere lo que esta mal es que el soul que deberia quitar no lo quita y aparte lo peor de todo es que no tiene exausted los players lo usan como si fueran gods te dejo la imagen a ver si me pueden ayudar :p
    el spell esta algo largo lo dejo abajo antes en tfs 0.3.2 funcionaba bien y ahora tengo tfs 0.3.6

    spells.xml
    ----->         </instant>
           <instant name="Heal Friend" words="exura tempo sio" lvl="10" maglv="180" manapercent="5" prem="0" soul="2" aggressive="0" needtarget="1" params="1" exhaustion="3000" needlearn="0" script="tempo sio.lua">
                   <vocation id="2"/>
    <vocation id="6"/>


    tempo sio.lua  
    ------>   local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat1, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat2, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat3 = createCombatObject()
    setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat3, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat3, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat4 = createCombatObject()
    setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat4, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat4, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat5 = createCombatObject()
    setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat5, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat5, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat6 = createCombatObject()
    setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat6, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat6, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat7 = createCombatObject()
    setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat7, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat7, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat8 = createCombatObject()
    setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat8, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat8, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat9 = createCombatObject()
    setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat9, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat9, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat10 = createCombatObject()
    setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat10, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat10, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat11 = createCombatObject()
    setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat11, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat11, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat11, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat12 = createCombatObject()
    setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat12, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat12, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat12, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat13 = createCombatObject()
    setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat13, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat13, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat13, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat14 = createCombatObject()
    setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat14, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat14, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat14, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat15 = createCombatObject()
    setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat15, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat15, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat15, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat16 = createCombatObject()
    setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat16, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat16, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat16, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat17 = createCombatObject()
    setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat17, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat17, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat17, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat18 = createCombatObject()
    setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat18, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat18, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat18, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat19 = createCombatObject()
    setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat19, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat19, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat19, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat20 = createCombatObject()
    setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat20, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat20, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat21 = createCombatObject()
    setCombatParam(combat21, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat21, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat21, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat21, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat21, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat22 = createCombatObject()
    setCombatParam(combat22, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat22, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat22, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat22, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat22, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    local combat23 = createCombatObject()
    setCombatParam(combat23, COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combat23, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combat23, COMBAT_PARAM_AGGRESSIVE, FALSE)
    setCombatParam(combat23, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combat23, COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)

    arr1 = {
    {3}
    }

    arr2 = {
    {3}
    }

    arr3 = {
    {3}
    }

    arr4 = {
    {3}
    }

    arr5 = {
    {3}
    }

    arr6 = {
    {3}
    }

    arr7 = {
    {3}
    }

    arr8 = {
    {3}
    }

    arr9 = {
    {3}
    }

    arr10 = {
    {3}
    }

    arr11 = {
    {3}
    }

    arr12 = {
    {3}
    }

    arr13 = {
    {3}
    }

    arr14 = {
    {3}
    }

    arr15 = {
    {3}
    }

    arr16 = {
    {3}
    }

    arr17 = {
    {3}
    }

    arr18 = {
    {3}
    }

    arr19 = {
    {3}
    }

    arr20 = {
    {3}
    }

    arr21 = {
    {3}
    }

    arr22 = {
    {3}
    }

    arr23 = {
    {3}
    }


    local area1 = createCombatArea(arr1)
    local area2 = createCombatArea(arr2)
    local area3 = createCombatArea(arr3)
    local area4 = createCombatArea(arr4)
    local area5 = createCombatArea(arr5)
    local area6 = createCombatArea(arr6)
    local area7 = createCombatArea(arr7)
    local area8 = createCombatArea(arr8)
    local area9 = createCombatArea(arr9)
    local area10 = createCombatArea(arr10)
    local area11 = createCombatArea(arr11)
    local area12 = createCombatArea(arr12)
    local area13 = createCombatArea(arr13)
    local area14 = createCombatArea(arr14)
    local area15 = createCombatArea(arr15)
    local area16 = createCombatArea(arr16)
    local area17 = createCombatArea(arr17)
    local area18 = createCombatArea(arr18)
    local area19 = createCombatArea(arr19)
    local area20 = createCombatArea(arr20)
    local area21 = createCombatArea(arr21)
    local area22 = createCombatArea(arr22)
    local area23 = createCombatArea(arr23)
    setCombatArea(combat1, area1)
    setCombatArea(combat2, area2)
    setCombatArea(combat3, area3)
    setCombatArea(combat4, area4)
    setCombatArea(combat5, area5)
    setCombatArea(combat6, area6)
    setCombatArea(combat7, area7)
    setCombatArea(combat8, area8)
    setCombatArea(combat9, area9)
    setCombatArea(combat10, area10)
    setCombatArea(combat11, area11)
    setCombatArea(combat12, area12)
    setCombatArea(combat13, area13)
    setCombatArea(combat14, area14)
    setCombatArea(combat15, area15)
    setCombatArea(combat16, area16)
    setCombatArea(combat17, area17)
    setCombatArea(combat18, area18)
    setCombatArea(combat19, area19)
    setCombatArea(combat20, area20)
    setCombatArea(combat21, area21)
    setCombatArea(combat22, area22)
    setCombatArea(combat23, area23)

    local function onCastSpell1(parameters)
       doCombat(parameters.cid, parameters.combat1, parameters.var)
    end

    local function onCastSpell2(parameters)
       doCombat(parameters.cid, parameters.combat2, parameters.var)
    end

    local function onCastSpell3(parameters)
       doCombat(parameters.cid, parameters.combat3, parameters.var)
    end

    local function onCastSpell4(parameters)
       doCombat(parameters.cid, parameters.combat4, parameters.var)
    end

    local function onCastSpell5(parameters)
       doCombat(parameters.cid, parameters.combat5, parameters.var)
    end

    local function onCastSpell6(parameters)
       doCombat(parameters.cid, parameters.combat6, parameters.var)
    end

    local function onCastSpell7(parameters)
       doCombat(parameters.cid, parameters.combat7, parameters.var)
    end

    local function onCastSpell8(parameters)
       doCombat(parameters.cid, parameters.combat8, parameters.var)
    end

    local function onCastSpell9(parameters)
       doCombat(parameters.cid, parameters.combat9, parameters.var)
    end

    local function onCastSpell10(parameters)
       doCombat(parameters.cid, parameters.combat11, parameters.var)
    end

    local function onCastSpell11(parameters)
       doCombat(parameters.cid, parameters.combat11, parameters.var)
    end

    local function onCastSpell12(parameters)
       doCombat(parameters.cid, parameters.combat12, parameters.var)
    end

    local function onCastSpell13(parameters)
       doCombat(parameters.cid, parameters.combat13, parameters.var)
    end

    local function onCastSpell14(parameters)
       doCombat(parameters.cid, parameters.combat14, parameters.var)
    end

    local function onCastSpell15(parameters)
       doCombat(parameters.cid, parameters.combat15, parameters.var)
    end

    local function onCastSpell16(parameters)
       doCombat(parameters.cid, parameters.combat16, parameters.var)
    end

    local function onCastSpell17(parameters)
       doCombat(parameters.cid, parameters.combat17, parameters.var)
    end

    local function onCastSpell18(parameters)
       doCombat(parameters.cid, parameters.combat18, parameters.var)
    end

    local function onCastSpell19(parameters)
       doCombat(parameters.cid, parameters.combat19, parameters.var)
    end

    local function onCastSpell20(parameters)
       doCombat(parameters.cid, parameters.combat20, parameters.var)
    end

    local function onCastSpell21(parameters)
       doCombat(parameters.cid, parameters.combat21, parameters.var)
    end

    local function onCastSpell22(parameters)
       doCombat(parameters.cid, parameters.combat22, parameters.var)
    end

    local function onCastSpell23(parameters)
       doCombat(parameters.cid, parameters.combat23, parameters.var)
    end

    function onCastSpell(cid, var)

    local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20, combat21 = combat21, combat22 = combat22, combat23 = combat23 }
    addEvent(onCastSpell1, 100, parameters)
    addEvent(onCastSpell2, 500, parameters)
    addEvent(onCastSpell3, 900, parameters)
    addEvent(onCastSpell4, 1300, parameters)
    addEvent(onCastSpell5, 1700, parameters)
    addEvent(onCastSpell6, 2100, parameters)
    addEvent(onCastSpell7, 2500, parameters)
    addEvent(onCastSpell8, 2900, parameters)
    addEvent(onCastSpell9, 3300, parameters)
    addEvent(onCastSpell10, 3700, parameters)
    addEvent(onCastSpell11, 4100, parameters)
    addEvent(onCastSpell12, 4500, parameters)
    addEvent(onCastSpell13, 4900, parameters)
    addEvent(onCastSpell14, 5300, parameters)
    addEvent(onCastSpell15, 5700, parameters)
    addEvent(onCastSpell16, 6100, parameters)
    addEvent(onCastSpell17, 6500, parameters)
    addEvent(onCastSpell18, 6900, parameters)
    addEvent(onCastSpell19, 7300, parameters)
    addEvent(onCastSpell20, 7700, parameters)
    addEvent(onCastSpell21, 8100, parameters)
    addEvent(onCastSpell22, 8500, parameters)
    addEvent(onCastSpell23, 8900, parameters)

    end


    Imagen de mi error:


    Esta en:
    Spells



    Última edición por elchuvas el Sáb Feb 10, 2018 1:11 pm, editado 2 veces (Razón : SOLVED)

    Ver perfil de usuario

    2default Re: Spell Exura tempo sio Halp pls xd el Sáb Feb 10, 2018 12:27 pm

    The_Pain

    avatar
    Miembro
    Miembro
    Código:
    local combats = {}
    for i = 1, 23 do
    local combats[i] = createCombatObject()
    setCombatParam(combats[i], COMBAT_PARAM_TYPE, COMBAT_HEALING)
    setCombatParam(combats[i], COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
    setCombatParam(combats[i], COMBAT_PARAM_AGGRESSIVE, false)
    setCombatParam(combats[i], COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatFormula(combats[i], COMBAT_FORMULA_LEVELMAGIC, 10.6, -0, 10.7, -0)
    end

    arr = {{3}}
    local area = createCombatArea(arr)
    for i = 1, 23 do
    setCombatArea(combats[i], area)
    end

    local _onCastSpell = {}
    for i = 1, 23 do
    _onCastSpell[i] = function(parameters)
      doCombat(parameters.cid, parameters.combat, parameters.var)
    end

    function onCastSpell(cid, var)
    for i = 1, 23 do
    local parameters = {}
    parameters.cid = cid
    parameters.var = var
    parameters.combat = combats[i]
    addEvent(_onCastSpell[i], (100 + (500 * i)), parameters)
    end
    return true
    end



    Si necesitas hospedaje para tu servidor usa este enlace y mira las buenos planes de Windows y Linux:

    SevuOT Online, Version:10 and Custom.
    Ver perfil de usuario

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).