Maten
New Member
- Joined
- Mar 16, 2009
- Messages
- 219
- Reaction score
- 2
it seems hopeless now. nothing on my server wants to work, but any how.
I want an axe to hit paralyze every time it hits a player
i found this script on this website but it didnt work
anyone have something for this?
I want an axe to hit paralyze every time it hits a player
i found this script on this website but it didnt work
Code:
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, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -800)
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)
if getPlayerLevel(cid) >= 350 then
local chance = math.random(1,10)
if chance == 3 then
doCombat(cid, combat, var)
else
doCombat(cid, combat2, var)
end
else
doPlayerSendCancel(cid, 'You need level 350 to use this weapon.')
end
end