GoD Mexicansoul Aportador
Mensajes : 72 Puntos : 157 Reputación : 25 Fecha de inscripción : 27/04/2011
| Tema: [Spell]Winter Wolf Mar Mayo 03, 2011 10:15 pm | |
| Bueno Les traigo este Spell q los convierte en lobo y te sube Velocidad y shield Version: TFS.3.5pl1 0 Anda a data/spells/scripts y crea un archivo llamado wolf.lua, borra todo lo que tiene adentro y pega esto. - Código:
-
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 Después andate a data/spells/spells.xml y pon esto: - Código:
-
<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> Creditos: Creditos para Shawak! XxStroksxX por traducirlo GoD MexicanSoul por traerlo al foro si te sirvio o te gusto dame rep | |
|