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

Lua Paralyze Rune need help

Byllan

Member
Joined
Dec 29, 2009
Messages
1,079
Reaction score
12
Location
SWEDEN
I using tfs 0.4

My paralyze rune are f**k't up i want it make so players are paralyzed in 3 sec like helgas..

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 30000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

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

I have try this too and nothing happens still same only 1 sec
PHP:
setConditionParam(condition, CONDITION_PARAM_TICKS, 30000000000)

Kind regards
Byllan
 
Go to this page -> http://otland.net/f82/paralyze-rune-just-like-rl-delay-added-31363/#post316016

Follow this steps (2,4 and 6).

Step 1 is not nessary, Every TFS has already exhaustion.lua

Step 3 Doesn't work (broken link)

Step 5, If you set that on the healing file then it will be delay and it will mess up everytime someones paralyze you (you wont be able to heal on a sertain time)

It will help you :)
Good luck!
Efren.
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 18.5, 25)

function onCastSpell(cid, var)
	if doCombat(cid, combat, var) and exhaustion.check(cid, 30030) then
		doRemoveCondition(cid, CONDITION_PARALYZE)
	end
	return true
end
 
Back
Top