Ir para conteúdo

[Spell] Utito Trans Wolf


helinholima

Posts Recomendados

Fala Galera....

Vim trazer um spell bem legal feito pelo Shawak, o spell é o "utito trans wolf".

Ele o transforma em wolf, adiciona skills de shield e adiciona velocidade para seu personagem. (Tudo isso apenas por alguns segundos)

Vamos para o script

- data/spells/scripts/wolf.lua

  --[[
       Spell by Shawak
       Wolf transform
]]--

local time = 120 * 1000        -- 120 * 1000 = 2 min
local addShielding = 20        -- how much shielding should be added


local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, time)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, addShielding)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

local speed = createConditionObject(CONDITION_HASTE)
setConditionParam(speed, CONDITION_PARAM_TICKS, time)
setConditionFormula(speed, 0.7, -56, 0.7, -56)
setCombatCondition(combat, speed)

local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, time)
addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)
setCombatCondition(combat, outfit)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, time)
setCombatCondition(combat, exhaust)

function onCastSpell(cid, var)
       return doCombat(cid, combat, var)
end

 

- data/spells/spells.xml

        <instant name="Wolf Transform" words="utito trans wolf" lvl="40" mana="400" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="wolf.lua">
               <vocation name="Druid"/>
               <vocation name="Elder Druid"/>
       </instant>

 

Foto

nfoaj6.png

 

Créditos

Shawak

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 4 weeks later...
×
×
  • Criar Novo...