Ir para conteúdo
  • 0

Magias Que Requer Resets


lugk123

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

so ir no script da spell e adicionar

 

local reset_storage = 2310 -- coloque o storage do seu sistema de reset
local quant_reset = 2 -- quantidade de resets para poder passar
if (getPlayerStorageValue(cid, reset_storage) < quant_reset) then
return true
end

Link para o comentário
Compartilhar em outros sites

  • 0

----Spell Made By Therenanzinhuu----

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 29)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -100, -200, -390, -200)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 30)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -100, -200, -390, -200)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 53)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -100, -200, -390, -200)

 

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, 1, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 1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 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}

 

 

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, combat3, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 600, parameters)

addEvent(onCastSpell3, 800, parameters)

 

local reset_storage = 2310 -- coloque o storage do seu sistema de reset

local quant_reset = 2 -- quantidade de resets para poder passar

if (getPlayerStorageValue(cid, reset_storage) < quant_reset) then

return true

end

 

return TRUE

end

-----------------------------------

Aí fica assim ?

Editado por lugk123
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...