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

Please Need Help Inmmunity Spell

JueJua

New Member
Joined
Jan 27, 2009
Messages
23
Reaction score
0
I need a spell that when I put it last me 2 seconds and protect me from everything. but that does not heal, just to protect all damages
Type : Buff
Time Cooldown : Normal
Time Buff : 2 seconds
Effect Number :22
Thanks.!
 
Remove the end above return true (that doesn't close anything) and the local config table (not used?).
But ye, you could do it like that, although it might be more fun to have some magic effects like spells usually have so people see something happening.
the problem is i dont know how to do what you are telling me to do xDDD something like this??
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 108)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
exhaustion.set(cid, 11989, 2)
for i = 0, 9 do
addEvent(function()
if isCreature(cid) then
doSendMagicEffect(getCreaturePosition(cid), 108)
end
end, 1 + (1000 * i))
end    return doCombat(cid, combat, var)
end
 
Remove the end above return true (that doesn't close anything) and the local config table (not used?).
But ye, you could do it like that, although it might be more fun to have some magic effects like spells usually have so people see something happening.
Code:
localcombat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33 * 1000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
exhaustion.set(cid, 11989, 2)
    return doCombat(cid, combat, var)
end
?
 
Yes, now it will make the player immortal and faster for 33 seconds.
If you don't want the condition you can remove that.
 
exhaustion.set(cid, 11989, 2)
~~
This means 2 seconds immortal, if it should be more you can make the number higher.
Exhaustion of the spell can be changes in spells.xml.
 
Back
Top