• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Paralize sword

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
hiii, i have a weapon that i would like to make the target to get paralize, how do i do that? D: i already have a sword that makes that but i can't find the option anywhere like to copy it and paste it to the new sword >.<
 
Do you mean something like a chance to paralyze? Then you can do it like this.
LUA:
 local combat = createCombatObject()
    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)
 
    local condition = createConditionObject(CONDITION_PARALYZE)
    setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
    setConditionParam(condition, CONDITION_PARAM_SPEED, -150)
    setCombatCondition(combat, condition)
 
    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 1)
    setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1)
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
 
function onUseWeapon(cid, var)
	local chance = math.random(1,10)

   	if chance == 1 then
        	doCombat(cid, combat, var)
        else
        	doCombat(cid, combat2, var)
        end
	return true
end
Or you can post your other sword script for which part to use.
 
Last edited:
i mean like every hit makes the target paralize, if the target use utani hur, instantly at the next hit he will get paralize again (not a chance to get paralize) >.<

- - - Updated - - -

and i can't find the other sword script :/
 
Last edited:
If you want it to paralyze with every hit, then you can just remove the chance.
Like this
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
 
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -150)
setCombatCondition(combat, condition)
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
Add it to weapons.xml.
Example.
XML:
<melee id="7385" level="20" unproperly="1" event="script" value="weapon.lua"/>
 
Back
Top