• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell 90% anti-anti paralyze

Cotizado

Member
Joined
May 12, 2008
Messages
320
Reaction score
7
paralyze rune.lua

Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat1, condition)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat2, condition)

local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3}
addEvent(onCastSpell1, 1, parameters) 
addEvent(onCastSpell2, 400, parameters) 
	return doCombat(cid, combat2, var)
end
 
Idiots. It does 'triple paralyze' so basically player will cast 'utani [gran] hur' spell, then he will get paralyze again + he will be exhausted to cast next.
 
Hey chojrak, not everybody knows lua or any other programming language as good as you, so respect them and don't call them 'idiots' because of that.
 
Thanks for this contribution, but I think this could be even better!

Want to try to improve? :huh:
 
sure but it does the job i wanted to, so when a player got paralyzed the anti paralyze will execute the spell and ike 1/2 second later will be paralyzed again so it will be like the time that a person act after getting paralyzed without an anti paralyze. he will can remove the paralyze after like 2 steps or 1 second
 
I have a paralyze system that will paralyze you over 1.5 seconds instead of using exura or utani gran hur or any spell to remove this paralyze... If some one wants it, I can post it.
 
nothing amazingly special but its a cool idea. i didnt test this but shouldnt it work if you just did this
Code:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
 
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat1, condition)
 
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
 
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3}
addEvent(onCastSpell1, 1, parameters) 
addEvent(onCastSpell1, 400, parameters) 
	return doCombat(cid, combat2, var)
end
just call the some oncastspell twice b.c its the same spell no reason/need to make a new 1 thats exactly the same. right?
 
Back
Top