Ir para conteúdo
  • 0

Spell Que Almente Defesa...


juan500

Pergunta

6 respostass a esta questão

Posts Recomendados

  • 0

data\spells\scripts\def.lua


--- configuration by notle
local outfit = getPlayerSex(cid) == PLAYERSEX_FEMALE and {lookType = 78} or {lookType = 99}
local tempo = 20 -- Tempo, nesse caso 1 é = 1 segundo
local skillshield = 30 -- quantos ira aumentar o skill de Shield
local storage = 124520
--- configuration by notle
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 34)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield)
setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_SPEED, 350)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)
setCombatCondition(combat, condition)
local sys = createConditionObject(CONDITION_OUTFIT)
setConditionParam(sys, CONDITION_PARAM_TICKS, tempo*1000)
addOutfitCondition(sys, outfit)
setCombatCondition(combat, sys)
function onCastSpell(cid, var)
setPlayerStorageValue(cid, storage, os.time()+tempo)
return doCombat(cid, combat, var)
end

 

data\spells\spells.xml

<instant name="defensa" words="nome da magia" lvl="10" mana="400" prem="1" exhaustion="1200" needlearn="0" script="def.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
</instant>

 

não entendi

vc quer que aumenta a defensa dos item?

ou skills

SHIELD

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

×
×
  • Criar Novo...