local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EXPLOSION)
local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 20000)
condition:setFormula(-0.70, 0, -0.85, 0)
combat:addCondition(condition)
local spell = Spell("instant")
function spell.onCastSpell(creature, var)
local storageSpell = 284501
if creature:getStorageValue(storageSpell) == 1 then --- Mirar si tiene la spell obtenida por item
return combat:execute(creature, var)
else
creature:sendTextMessage("You cannot use this spell", TALKTYPE_MONSTER_SAY)
end
spell:name("Nombre Spell")
spell:words("Nombre que decir para hacer la spell")
spell:group("support")
spell:vocation("priest;true", "elite priest;true") -- vocation
spell:id(128)
spell:cooldown(2 * 1000)
spell:groupCooldown(2 * 1000)
spell:level(32) --- nivel
spell:mana(120) --- mana
spell:isSelfTarget(true) --- selfTarget (usar en si mismo, en caso quita la linea)
spell:isAggressive(false)
spell:isPremium(true) --- Premium
spell:needLearn(false) --- Si hay que aprenderla..
spell:register()