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

[SPELL] Spell which reflects damage.

kiritowot

New Member
Joined
Aug 23, 2014
Messages
12
Reaction score
0
Hello i need spell which absorbing magic damage and reflects for example: 10% of him. Can someone help me ?
Greetings! :)
----------
Sorry for bad englando :)
 
i edite this from old time see if this will work with u or no "Mod"
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Reflection" version="1.0" author="otland" contact="otland.net" enabled="yes">
<instant name="Reflection" words="exori reflect" lvl="50" mana="140" prem="1" aggressive="0" selftarget="1" exhaustion="7000" needlearn="0" event="script">
<vocation id="11"/>
<vocation id="12"/>
<vocation id="9"/>
<vocation id="10"/>
<![CDATA[
function onCastSpell(cid, var)
registerCreatureEvent(cid, "Reflection/statschange001")
doCreatureSetStorage(cid, 5539, os.time() + 5)
doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE)
return true
end

]]>
</instant>

<event type="statschange" name="Reflection/statschange001" event="script"><![CDATA[
function onStatsChange(cid, attacker, type, combat, value)
if (getCreatureStorage(cid, 5539) > os.time()) then
if(type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then
doTargetCombatHealth(cid, attacker, type, -value*.80, -value*0.88, CONST_ME_NONE)
local pos = getThingPosition(attacker)
doSendMagicEffect({x=pos.x, y=pos.y-1, z=pos.z}, 57)
doSendMagicEffect(getThingPosition(attacker), CONST_ME_HOLYDAMAGE)
doSendAnimatedText(getThingPosition(cid), "Mirror!", COLOR_GREEN)
doSendAnimatedText(getThingPosition(attacker), absorb, COLOR_RED)
end
end
return true
end
]]></event>
</mod>
 
Nevermind i fixed it, its working, thanks @up REP+ of course :)

@EDIT

Its working cool but can someone do that this mod will also absorb magic damage ? Please :)
 
Last edited:
Back
Top