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

Paralyze arrow

cover

New Member
Joined
Aug 31, 2007
Messages
6
Reaction score
0
Can someone please tell me what's wrong with my paralyze arrow script .
how can i change proc chance..


'
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PSYICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000)
setConditionFormula(condition, -1.0, 0, -1.0, 0)
setCombatCondition(combat, condition)


function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

i need it to do psyhical damage
and have like 10 % to paralyze


And maybe someone can convert it to drunken arrow script



Still didnt get any help can someone please fix it ..


Got the damage working but still dont know how to edit proc chance
 
Last edited:
this
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, [COLOR=red]COMBAT_PSYICALDAMAGE[/COLOR])
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000)
setConditionFormula(condition, -1.0, 0, -1.0, 0)
setCombatCondition(combat, condition)


function onUseWeapon(cid, var)
    return doCombat(cid, combat, var)
end
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000)
setConditionFormula(condition, -1.0, 0, -1.0, 0)

function onUseWeapon(cid, var)
	doCombat(cid, combat, var)
	local target = variantToNumber(var) 
	if isCreature(target) and math.random(10) == 1 then
		doAddCondition(target, condition)
	end
	return true
end
 
Back
Top