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

Anti paralyze spell/rune

tobias89

Pikaz Liek Pikaz
Joined
Apr 24, 2010
Messages
110
Reaction score
0
Does anyone have a anti paralyze rune or spell that they might share with me ? :)
il REP you OFC!! ++++
 
hmm..
Just create a new rune (copy a existing like uh) and add this to the combat params:

setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)


Anyway uh rune already removes paralyze as any other healing spell
 
Thanks, but is it possible to make it so You wont get paralyzed for like 30 sec after using the rune? and maybe make it so its not possible to do the rune/spell for 1 min ?
 
Try this one, but mind if it works it will only stop players from paralyzing a protected player. Monsters will still be able to paralyze, this can only be changed with source edit.
Replace your paralyze rune.lua with 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)
	local target = variantToNumber(var)
	if isPlayer(target) then
		if os.time < getPlayerStorageValue(cid, 13151) then
			return doPlayerSendCancel(cid, "This player is protected to paralyze.")
		end
	end
	return doCombat(cid, combat, var)
end

and create your anti paralye spell and add this before return doCombat.. line:
Code:
if os.time() >= getPlayerStorageValue(cid, 13152) then
	setPlayerStorageValue(cid, 13151, os.time()+30)
	setPlayerStorageValue(cid, 13152, os.time()+60)
else
	return doPlayerSendCancel(cid, "You can use this rune once every minute.")
end
 
Back
Top