Hey.
I'm using Tfs 0.2 tha 8.21 version and I got some scripts from my old ot that i want to use but they wont work..
The problem is that you poff every hit :S
I'm using Tfs 0.2 tha 8.21 version and I got some scripts from my old ot that i want to use but they wont work..
PHP:
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, 0, 0)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -250)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
if getPlayerLevel(cid) >= 100 then
doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, 'You need level 100 to use this weapon.')
end
end