Ir para conteúdo

victorbeico

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    victorbeico deu reputação a Gustavo Ntos em (Resolvido)Spell de pokemon em servidor normal.   
    Testado e funcionando 100% // agora eu entendi pra que serve a função "3" kkk seria a soma 2+1 e serve pra jogar o efeito a frente do personagem
     
    Segue a Script:
     
     
     
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 1)
    setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)
    local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat1, COMBAT_PARAM_EFFECT, 1)
    setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)
    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat2, COMBAT_PARAM_EFFECT, 1)
    setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)

    local combat3 = createCombatObject()
    setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat3, COMBAT_PARAM_EFFECT, 4)
    setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)
    local combat4 = createCombatObject()
    setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat4, COMBAT_PARAM_EFFECT, 4)
    setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)
    local combat5 = createCombatObject()
    setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat5, COMBAT_PARAM_EFFECT, 4)
    setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)

    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, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 1, 2, 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, 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, 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, 0},
    {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 2, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    arr3 = {
    {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, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 2, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    arr5 = {
    {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, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 3, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    arr6 = {
    {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, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 2, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    arr7 = {
    {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, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 2, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }

    local area1 = createCombatArea(arr1)
    local area2 = createCombatArea(arr2)
    local area3 = createCombatArea(arr3)

    local area5 = createCombatArea(arr5)
    local area6 = createCombatArea(arr6)
    local area7 = createCombatArea(arr7)
    setCombatArea(combat, area1)
    setCombatArea(combat1, area2)
    setCombatArea(combat2, area3)

    setCombatArea(combat3, area5)
    setCombatArea(combat4, area6)
    setCombatArea(combat5, area7)
    local function onCastSpell1(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat, parameters.var)
    end
     
    local function onCastSpell2(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
    end
    local function onCastSpell3(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)
    end

    local function onCastSpell4(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var)
    end
    local function onCastSpell5(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat4, parameters.var)
    end
    local function onCastSpell6(parameters)
    return isCreature(parameters.cid) and doCombat(parameters.cid, combat5, parameters.var)
    end

    function onCastSpell(cid, var)
    local parameters = {cid = cid, var = var}
    local waittime = 2 
    local storage = 5868
    if isPlayer(cid) and exhaustion.check(cid, storage) then
    doPlayerSendCancel(cid, "You are exhausted.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return FALSE
    end
    local p = getCreaturePosition(cid)
    addEvent(onCastSpell1, 100, parameters)
    addEvent(onCastSpell2, 400, parameters)
    addEvent(onCastSpell3, 800, parameters)
    addEvent(onCastSpell4, 100, parameters)
    addEvent(onCastSpell5, 400, parameters)
    addEvent(onCastSpell6, 800, parameters)
    exhaustion.set(cid, storage, waittime)
    return TRUE
    end
  2. Gostei
    victorbeico deu reputação a Gustavo Ntos em (Resolvido)Spell de pokemon em servidor normal.   
    teria de criar uma area separada na mesma posição entende?
  3. Gostei
    victorbeico deu reputação a Gustavo Ntos em (Resolvido)Spell de pokemon em servidor normal.   
    Voce teria que ajustar a script.... cria varias areas tipo assim:
     
    arr = {
    {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, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 3, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
     
    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, 0, 0, 3, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
     
    e assim em diante
  4. Gostei
    victorbeico deu reputação a Gustavo Ntos em (Resolvido)Spell de pokemon em servidor normal.   
    Ola teste essa script claro que voce deve arrumar ela....
     
    Essa Spell usa x effect se tiver em determinado posição <> /\ \/
     
     
     
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -45.2, 1, -65.2, 1)
    arr = {
    {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, 1, 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, 0, 0, 3, 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},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    local area = createCombatArea(arr)
    setCombatArea(combat, area)
    function onCastSpell(cid, var)
    local waittime = 2 
    local storage = 5868
    if isPlayer(cid) and exhaustion.check(cid, storage) then
    doPlayerSendCancel(cid, "You are exhausted.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return FALSE
    end
    local p = getCreaturePosition(cid)
    local x = {
    [0] = {x=p.x+1, y=p.y-1, z=p.z},  --- posicao mecha casa esteja no lugar errado
    [1] = {x=p.x+7, y=p.y+1, z=p.z}, --- posicao mecha casa esteja no lugar errado
    [2] = {x=p.x+1, y=p.y+7, z=p.z}, --- posicao mecha casa esteja no lugar errado
    [3] = {x=p.x-1, y=p.y+1, z=p.z}  --- posicao mecha casa esteja no lugar errado
    }
    local y = {
    [0] = 172,  --- numeros dos efeitos
    [1] = 170, --- numeros dos efeitos
    [2] = 173, --- numeros dos efeitos
    [3] = 171 --- numeros dos efeitos
    }
    pos = x[getCreatureLookDirection(cid)]
    eff = y[getCreatureLookDirection(cid)]
    doSendMagicEffect(pos, eff)
    exhaustion.set(cid, storage, waittime)
    doCombat(cid, combat, var)
    return TRUE
    end
  5. Gostei
    victorbeico deu reputação a GiovaniRodrigo em [PEDIDO] Piso restrito por vocação   
    Recopie o código novamente e teste.

Informação Importante

Confirmação de Termo