• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua "Chill Out - exevo infir frigo hur"

Kownikuzyt

Member
Joined
Feb 11, 2020
Messages
170
Solutions
1
Reaction score
8
Hello, someone has a script for the spell "Chill Out - exevo infir frigo hur"
I'm looking for other TFS and can't find it.

(I am using TFS version 1.1)

13561.jpg


"Chill Out - exevo infir frigo hur"
Spell group: "attack"
Damage type: "ice"

Description: Shoots a cone of ice in the direction the player is pointing.
 
Solution
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
combat:setArea(createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4))

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 0.3) + 2
    local max = (level / 5) + (maglevel * 0.6) + 4
    return -min, -max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var)
    return combat:execute(creature, var)
end


XML:
    <instant group="attack" spellid="173" name="Chill Out" words="exevo infir frigo hur" lvl="1" mana="8" direction="1" exhaustion="2000" groupcooldown="2000" needlearn="0"...
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
combat:setArea(createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4))

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 0.3) + 2
    local max = (level / 5) + (maglevel * 0.6) + 4
    return -min, -max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var)
    return combat:execute(creature, var)
end


XML:
    <instant group="attack" spellid="173" name="Chill Out" words="exevo infir frigo hur" lvl="1" mana="8" direction="1" exhaustion="2000" groupcooldown="2000" needlearn="0" script="attack/chill out.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>
 
Solution
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
combat:setArea(createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4))

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 0.3) + 2
    local max = (level / 5) + (maglevel * 0.6) + 4
    return -min, -max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var)
    return combat:execute(creature, var)
end


XML:
    <instant group="attack" spellid="173" name="Chill Out" words="exevo infir frigo hur" lvl="1" mana="8" direction="1" exhaustion="2000" groupcooldown="2000" needlearn="0" script="attack/chill out.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" />
    </instant>

Thank you :)
 
Back
Top