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

Need strong paralyze rune

ceoelde

New Member
Joined
Nov 18, 2009
Messages
2
Reaction score
0
Hi, I need help with paralyze rune. I have TFS 0.3.6 Engine
and duration and power of paralyze rune is too low. Can you edit this script for me? Thx



local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 7000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
if getPlayerMana(cid) >= 1400 and getPlayerSoul(cid) >= 3 and isInArray({6, 10}, getPlayerVocation(cid)) then
return doPlayerAddMana(cid, -1400, false) and doPlayerAddSoul(cid, -3) and doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, getPlayerMana(cid) < 1400 and "You don't have enough mana." or getPlayerSoul(cid) < 3 and "You don't have enough soul points." or "Your vocation cannot use this rune.")
end
end
 
Edit
Code:
setConditionParam(condition, CONDITION_PARAM_TICKS, 7000)
Changing the numerical value changes the duration of paralyze. The line below represents the formula for paralyze. The lower number, the stronger condition. With a structure:
Code:
setConditionFormula(condition, -rateMin, constMin, -rateMax, cosntMax)
The general idea is that it's counted like:
min = formula * rateMin + constMin
max = formula * rateMax + costMax
power = random between min and max.
 

Similar threads

Back
Top