Majesty 1,755 #1 Posted December 4, 2017 [Magia] Utori Frigo Autor: Majesty Função: Adiciona ao monstro/player a condição freezing e retira uma quantidade de vida em um tempo determinado. Servidor: TFS. - Em data/spells/scripts crie um arquivo chamado utori frigo.lua com o seguinte código: local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE) local condition = Condition(CONDITION_FREEZING) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(25, 3000, -45) combat:setCondition(condition) function onCastSpell(creature, var) return combat:execute(creature, var) end condition:addDamage(25, 3000, -45) 25 - turnos 3000 - tempo (em segundos, 1000 = 1s) -45 - dano (quantidade de vida retirada) - Adicione em data/spells/spells.xml a tag: <instant group="attack" spellid="198" name="Utori Frigo" words="utori frigo" lvl="26" mana="30" range="3" aggressive="1" blockwalls="1" needtarget="1" exhaustion="30000" groupcooldown="2000" needlearn="0" script="attack/utori frigo.lua"> <vocation name="Druid" /> <vocation name="Elder Druid" /> 2 1 Elver Maguh, mlmatheus and miuP reacted to this Share this post Link to post