• 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 Knights paralyze spell

Djivar

AKA Wickedviruz
Joined
Sep 28, 2009
Messages
1,641
Reaction score
19
Location
Sweden,edsbyn
Here is a pvp spell for knights, so they can do a small paralyze, but the paralyze aint so strong


Wing clip
PHP:
--Made by Divar--

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -800)
setConditionFormula(condition, -0.6, 0, -0.6, 0)
setCombatCondition(combat, condition)

function getSpellDamage(cid, weaponSkill, weaponAttack)
    damage_min = (weaponSkill * weaponAttack / 30) * 0.95
    damage_max = (weaponSkill * weaponAttack / 30) * 1.15

    if(damage_max < damage_min) then
        local tmp = damage_max
	  damage_max = damage_min
	  damage_min = tmp
    end
    return -damage_min, -damage_max
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Spells.xml
PHP:
	<instant name="Wing Clip" words="exori ario" lvl="200" manapercent="50" prem="1" limitRange="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="1" script="attack/Wing Clip.lua">
		<vocation name="Elite Knight" />
	</instant>
 
Last edited:
So this is spell like paralize rune? But for knight ? Good but better Use Runes ;)
 
If you make it paralyze like 2x less, then it's ok..Knights aren't even supposed to paralyze anyone, they're not a PvP class..
 
I can explain it xD it looks like exori hur, but when it hit the target it will be paralyzed :)
 
i know, it paralyze like 2x less
no.

Your script:
Code:
--Made by Divar--

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -600)
[COLOR="Blue"][B]setConditionFormula(condition, -[COLOR="Red"]0.9[/COLOR], 0, -[COLOR="Red"]0.9[/COLOR], 0)[/B][/COLOR]
setCombatCondition(combat, condition)

function getSpellDamage(cid, weaponSkill, weaponAttack)
    damage_min = (weaponSkill * weaponAttack / 30) * 0.95
    damage_max = (weaponSkill * weaponAttack / 30) * 1.15

    if(damage_max < damage_min) then
        local tmp = damage_max
      damage_max = damage_min
      damage_min = tmp
    end
    return -damage_min, -damage_max
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage")

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
paralyze rune.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
[B][COLOR="Blue"]setConditionFormula(condition, -[COLOR="Red"]0.9[/COLOR], 0, -[COLOR="Red"]0.9[/COLOR], 0)[/COLOR][/B]
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Only the paralysis duration is shorter.
 
no.

Your script:
Code:
--Made by Divar--

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -600)
[COLOR="Blue"][B]setConditionFormula(condition, -[COLOR="Red"]0.9[/COLOR], 0, -[COLOR="Red"]0.9[/COLOR], 0)[/B][/COLOR]
setCombatCondition(combat, condition)

function getSpellDamage(cid, weaponSkill, weaponAttack)
    damage_min = (weaponSkill * weaponAttack / 30) * 0.95
    damage_max = (weaponSkill * weaponAttack / 30) * 1.15

    if(damage_max < damage_min) then
        local tmp = damage_max
      damage_max = damage_min
      damage_min = tmp
    end
    return -damage_min, -damage_max
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage")

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
paralyze rune.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
[B][COLOR="Blue"]setConditionFormula(condition, -[COLOR="Red"]0.9[/COLOR], 0, -[COLOR="Red"]0.9[/COLOR], 0)[/COLOR][/B]
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Only the paralysis duration is shorter.
I think it does, since his script has
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -600)
?
 
hey are not so hard on, good job but you should make scripts more useful, because a knight with Paralysed ... not very fair
 
Yea, i will work on other scripts later on, but this paralyze aint strong, and it takes a small damage to the target at the same time, so i will say that the spell dont destroy the pvp so much
 
Back
Top