• 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!

spell need help

tnecniiv

scripter to be
Joined
Jan 6, 2012
Messages
294
Solutions
3
Reaction score
23
i was wondering if it is possible to make a spell for knight to slow the target down 50% of the players speed so knights have some kill potential in the game
i am using tfs 0.2.14
 
You have it here: data/spells/scripts/support/paralyze_rune.lua :D

Same script but with damage, slow formula based on WoW's Hamstring.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)    -- if you want w/o dmg, remove it
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)                 -- if you want w/o dmg, remove it
setCombatParam(combat, COMBAT_PARAM_USECHARGES, TRUE)                -- if you want w/o dmg, remove it
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.4, 0, 0.8, 0)        -- if you want w/o dmg, remove it

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 15 * 1000)
setConditionFormula(condition, -0.5, 0, -0.5, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
   doSendAnimatedText(getCreaturePosition(getCreatureTarget(cid)), "SLOWED", 86) -- for fun :), hope you like it
doCombat(cid, combat, var)
return true
end
 
Last edited:
Back
Top