• TibiaFace

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

    .
    demo menumenu

    Afiliados



    Votar:

    Spell Buff Con Newtype

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

    1default Spell Buff Con Newtype el Vie 15 Sep 2017, 4:50 am

    Franco0409

    avatar
    Nuevo Miembro
    Nuevo Miembro
    necesito un spells que pueda dar buff y al usarlo le cambie el newtype al personaje y ya xD

    Ver perfil de usuario

    2default Re: Spell Buff Con Newtype el Vie 15 Sep 2017, 11:42 am

    [Admin] God Maya

    avatar
    Administrador
    Administrador
    no colocaste version de consola ni protocolo de servidor  osea nadie respondera un tema asi



    Ver perfil de usuario http://www.tibiaface.com

    3default Re: Spell Buff Con Newtype el Vie 15 Sep 2017, 12:46 pm

    The_Pain

    avatar
    Miembro
    Miembro
    da las espesificaciones de tu server we asi quien coño va saber, no somos adivinos ;D



    Ver perfil de usuario

    4default Re: Spell Buff Con Newtype el Vie 15 Sep 2017, 8:09 pm

    Franco0409

    avatar
    Nuevo Miembro
    Nuevo Miembro
    Version 8.60 - OTX Server 2.X.S - 2

    Ver perfil de usuario

    5default Re: Spell Buff Con Newtype el Vie 15 Sep 2017, 9:14 pm

    [Admin] God Maya

    avatar
    Administrador
    Administrador
    buff para recuperar mana

    Código:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
    setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)


    local config = {
    tempo = 15, --- tempo que vai ficar recuperando mana (tempo total)
    mana = 15, -- quanto de mana ganha a cada intervalo
    intervalo = 1  --- intervalo que leva pra recuperar X de mana,
    }


    local condition = createConditionObject(CONDITION_FOOD)
    setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000)
    setConditionParam(condition, CONDITION_PARAM_BUFF, true)
    setConditionParam(condition, CONDITION_PARAM_MANAGAIN, config.mana)
    setConditionParam(condition, CONDITION_PARAM_MANATICKS, config.intervalo*1000)
    setCombatCondition(combat, condition)
    local x = {lookType = 25}



    function onCastSpell(cid, var)
    doSetCreatureOutfit(cid, x, config.tempo*1000)
    return doCombat(cid, combat, var)
    end



    buff de % de todas habilidades que gana el player


    Código:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
    setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)


    local config = {
    tempo = 60, --- tempo que vai durar a spell
    percent = 20 -- quanto % vai aumentar
    }


    local condition = createConditionObject(CONDITION_ATTRIBUTES)
    setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000)
    setConditionParam(condition, CONDITION_PARAM_BUFF, true)
    setConditionParam(condition, CONDITION_PARAM_SKILL_CLUBPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_SWORDPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_AXEPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_MAGICPOINTSPERCENT, 100+config.percent)
    setCombatCondition(combat, condition)
    local x = {lookType = 25}



    function onCastSpell(cid, var)
    doSetCreatureOutfit(cid, x, config.tempo*1000)
    return doCombat(cid, combat, var)
    end

    buff que gana shield

    Código:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
    setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

    local config = {
    tempo = 60, --- tempo que vai durar a spell
    percent = 25 -- quanto % vai aumentar
    }

    local condition = createConditionObject(CONDITION_ATTRIBUTES)
    setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000)
    setConditionParam(condition, CONDITION_PARAM_BUFF, true)
    setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 100+config.percent)
    setCombatCondition(combat, condition)
    local x = {lookType = 25}


    function onCastSpell(cid, var)
    doSetCreatureOutfit(cid, x, config.tempo*1000)
       return doCombat(cid, combat, var)
    end

    buff que gana hitpoint %

    Código:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
    setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

    local config = {
    tempo = 60, --- tempo que vai durar a spell
    percent = 25 -- quanto % vai aumentar
    }

    local condition = createConditionObject(CONDITION_ATTRIBUTES)
    setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000)
    setConditionParam(condition, CONDITION_PARAM_BUFF, true)
    setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 100+config.percent)
    setCombatCondition(combat, condition)
    local x = {lookType = 25}

    function onCastSpell(cid, var)
    doSetCreatureOutfit(cid, x, config.tempo*1000)
       return doCombat(cid, combat, var)
    end


    listo ahora tu puedes elegir tag que quieres que vaya en tu spells.xml



    Ver perfil de usuario http://www.tibiaface.com

    6default Re: Spell Buff Con Newtype el Sáb 16 Sep 2017, 12:28 am

    [Admin] God Maya

    avatar
    Administrador
    Administrador
    corregido bug que da skill %

    Código:
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
    setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)


    local config = {
    tempo = 60, --- tempo que vai durar a spell
    percent = 20 -- quanto % vai aumentar
    }


    local condition = createConditionObject(CONDITION_ATTRIBUTES)
    setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000)
    setConditionParam(condition, CONDITION_PARAM_BUFF, true)
    setConditionParam(condition, CONDITION_PARAM_SKILL_CLUBPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_SWORDPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_AXEPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 100+config.percent)
    setConditionParam(condition, CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, 100+config.percent)
    setCombatCondition(combat, condition)
    local x = {lookType = 25}



    function onCastSpell(cid, var)
    doSetCreatureOutfit(cid, x, config.tempo*1000)
    return doCombat(cid, combat, var)
    end



    Ver perfil de usuario http://www.tibiaface.com

    Contenido patrocinado


    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).