Chaos ruler
New Member
Hello!
First of all.. I'm creating a custom server and i am full of ideas.. But! There is a problem with one of the spells that i tried to create. The spell is called " Blind-Stun ". It's a spell that stun-locks a target. With a stun lock i mean " Can't be moved, use spells or attack/heal. Now this sounds interesting but I'm afraid that I won't be able to script it on my own.
I've already been looking on (**-fans and otland ) but there aren't really specific scripts for this.
The problem is It stuns myself instead of the target.
I would like to Stun my target for 4 seconds with a cooldown of 1 minute.
Now this is what i have..
I know the spell isn't tagged etcetera.. I first wanted to get this spell done.
So i would really appreciate your help!
Reputation for the one that tries to help me!
Thanks in advance,
Ch@os~
PS: i might messed up the scripts a little bit, since i changed it 1000000 times.
First of all.. I'm creating a custom server and i am full of ideas.. But! There is a problem with one of the spells that i tried to create. The spell is called " Blind-Stun ". It's a spell that stun-locks a target. With a stun lock i mean " Can't be moved, use spells or attack/heal. Now this sounds interesting but I'm afraid that I won't be able to script it on my own.
I've already been looking on (**-fans and otland ) but there aren't really specific scripts for this.
The problem is It stuns myself instead of the target.
I would like to Stun my target for 4 seconds with a cooldown of 1 minute.
Now this is what i have..
Code:
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)
doTargetCombatCondition(0, target, exhausted, CONST_ME_MAGIC_RED)
local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS,4000)
doCreatureSetNoMove(cid, true)
addEvent(doCreatureSetNoMove, 4000, cid, false)
return doCombat(cid, combat, var)
end
I know the spell isn't tagged etcetera.. I first wanted to get this spell done.
So i would really appreciate your help!
Reputation for the one that tries to help me!
Thanks in advance,
Ch@os~
PS: i might messed up the scripts a little bit, since i changed it 1000000 times.