Ir para conteúdo

Ajuda Eu Aqui Pf


Jeffee90

Posts Recomendados

Olá, Desculpe Nao Sei Se Esta Na Area Correta.

Quero Colocar Essas Magias So Pra Players VIP Usarem. [ Por Storage ]

 

Healing :

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 8, 8, 13, 15)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

Attack :

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

 

function onGetFormulaValues(cid, level, skill, attack, factor)

return -(((skill + 50) / 6) + (level / 10)), -((skill + 50) + (level / 10))

end

 

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

 

A Storage Usada No Meu OT é 13540.

 

Agradecerei Imemsamente Quem Puder Me Ajudar !

Link para o comentário
Compartilhar em outros sites


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 8, 8, 13, 15)

function onCastSpell(cid, var) 
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doPlayerSendCancel(cid, "Desculpe,Só jogadores vips usam está magia.")  
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) 
else  
return doCombat(cid, combat, var)  
end     
return TRUE   
end

 

 


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 50) / 6) + (level / 10)), -((skill + 50) + (level / 10))
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onCastSpell(cid, var) 
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doPlayerSendCancel(cid, "Desculpe,Só jogadores vips usam está magia.")  
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) 
else  
return doCombat(cid, combat, var)  
end     
return TRUE   
end

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...