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

paralyze rune

shawntio

Member
Joined
Apr 14, 2008
Messages
737
Reaction score
5
Location
sweden
hi my paralyze rune takes 4000 mana but it should take 1400 and it is on 1400 still take 4000
Code:
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) >= 0 and isInArray({6, 10}, getPlayerVocation(cid)) then
		return doPlayerAddMana(cid, -1400, false) and doPlayerAddSoul(cid, -0) and doCombat(cid, combat, var)
	else
		doPlayerSendCancel(cid, getPlayerMana(cid) < 1400 and "You don't have enough mana." or getPlayerSoul(cid) < 0 and "You don't have enough soul points." or "Your vocation cannot use this rune.")
	end
end
please reply Thanks!
 
it's 1400 ;S and up i posted my paralyze.lua
Code:
<rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" mana="1400" needtarget="1" blocktype="solid" event="script" value="support/paralyze rune.lua">
 
Try this:
Code:
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, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

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