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

paralyze axe

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

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
anyone have something for this?
 
LUA:
function onAttack(cid, target)

function onStatsChange(cid, attacker, type, combat, value)
 
should i change all this. :

Code:
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

to this?
Code:
function onAttack(cid, target)
 
function onStatsChange(cid, attacker, type, combat, value)
 
Last edited:
I don't know if this will work, but you can try it.

creaturescripts

Code:
<event type="statschange" name="[COLOR="red"]EVENT_NAME[/COLOR]" event="script" value="[COLOR="red"]SCRIPT_NAME[/COLOR].lua"/>

LUA:
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)

function onStatsChange(cid, attacker, type, combat, value)
	if isPlayer(cid) and isPlayer(attacker) then
		if type == STATSCHANGE_HEALTHLOSS then
			if getPlayerLevel(attacker) >= 350 then
				if value >= 1 then
					doAddCondition(cid, condition)
				end
			end
		end
	end
	
	return true
end
 
Back
Top