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

Lua Reflect 2 hits from spell (1.3)

jajo1991

New Member
Joined
Sep 30, 2017
Messages
11
Reaction score
0
Hi, could anyone help me to make script for spell reflection or edit that one from 0.3.6 to 1.3?
Lua:
<mod name="Reflection" version="1.0" author="Snake Royal" contact="otland.net" enabled="yes">
<instant name="reflection" words="reflection" lvl="1" maglvl="1" mana="1" prem="0" aggressive="0" selftarget="1" exhaustion="7000" needlearn="0" event="script">
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<![CDATA[ function onCastSpell(cid, var) registerCreatureEvent(cid, "Reflection/statschange001") doCreatureSetStorage(cid, 2000, 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, 2000) > os.time() and type == STATSCHANGE_HEALTHLOSS) then local absorb = math.ceil(value * 0.5) doSendMagicEffect(getThingPosition(attacker), CONST_ME_HOLYDAMAGE) doSendAnimatedText(getThingPosition(attacker), absorb, COLOR_RED) doCreatureAddHealth(attacker, -absorb) doCreatureAddHealth(cid, absorb) end return true end ]]>
</event>
</mod>
 
Back
Top