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

Solved Spell "stun" <-- ask

VirrageS

←•†ĿuĀ && ©¤¤•→
Joined
May 30, 2010
Messages
984
Reaction score
63
Location
Poland
Hello everyone!
I have one problem. I want to make spell "stun" (if you ever play WoW you maybe know what I mean) this spell stuning target for e.x for 4sec.
When target is stuned can't move, can't use spell, can't do anything.
And I want ask that it possible that I can do it LUA or I must change something in sources??

P.S. I'm using 0.3.6pl1 sources/TFS

Thanks and Rep++ for help :D
 
Last edited:
You can use condition exausted

Lua:
local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS,4000))
to your target,
Lua:
doTargetCombatCondition(0, target, exhausted, CONST_ME_MAGIC_RED)
 
Back
Top