Ir para conteúdo

[GlobalEvent] Ajuda Com Spell


Grilodauh1

Posts Recomendados

queria colocar pra adicionar 10% de vida com essa magia mais não to conseguindo ou entao 500 de vida

 

Ai vai ela

Não lembro quem fez spell mais é daqui do x tibia ...

 

Utito Trans Wolf

 Spells.xml
<!-- Support Spells -->
      <instant name="Wolf Transform" words="utito trans wolf" lvl="40" mana="170" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="support/wolf.lua">
            <vocation name="Knight"/>
            <vocation name="Elite Knight"/>

 

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

local wolf = {lookType = 3, lookHead = 20, lookBody = 30, lookLegs = 40, lookFeet = 50, 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

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...