I Want to Share with you Guys my utamo vita. i think it isn't released before as a spell
I Won't Take so Long to Keep it Clean And Short
First Go To Data/spells/support/magic shield And Replace the code with this
The Code 75% isn't mine i redited a little parts and added the Mana Shield On
Second Version
I Won't Take so Long to Keep it Clean And Short
First Go To Data/spells/support/magic shield And Replace the code with this
The Code 75% isn't mine i redited a little parts and added the Mana Shield On
Second Version
Code:
local shield = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(shield, CONDITION_PARAM_TICKS, 200000)
function onCastSpell(cid, var)
local pos = getPlayerPosition(cid)
if hasCondition(cid, CONDITION_MANASHIELD) == false then
doAddCondition(cid,shield)
doSendMagicEffect(getThingPos(cid),12)
doCreatureSay(cid, "Mana Shield On!", TALKTYPE_ORANGE_1)
else
doRemoveCondition(cid,CONDITION_MANASHIELD)
doCreatureSay(cid, "Mana Shield Off!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(cid), 12)
end
return true
end
Add This in Spells.xml
Code:
<instant name="Magic Shield" words="utamo vita" lvl="14" mana="50" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/magic shield.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="9"/>
<vocation id="10"/>
</instant>
Attachments
-
Capture1.jpg22.7 KB · Views: 348 · VirusTotal
-
Capture.jpg24.7 KB · Views: 305 · VirusTotal
Last edited: