Hugo Patriota
Atzosh.com
- Joined
- Nov 23, 2016
- Messages
- 29
- Solutions
- 1
- Reaction score
- 2
I need help in this script, I need the player to stay 5 seconds stopped after 5 seconds it can walk * TFS 1.3
http://pastebin.com/05RAnvFL
http://pastebin.com/05RAnvFL
Lua:
local config = {
manaCost = 1000,
timeRemoval = 5
}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
function onCastSpell(cid, var)
local target = variantToNumber(var)
local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS,5000)
getPlayerPosition(target, true)
addEvent(getPlayerPosition, config.timeRemoval * 1000, target, false)
return doCombat(cid, combat, var)
end
Last edited by a moderator: