jestemPolakiem
New Member
Wand of Life
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just you only need to set up his wand and start attacking - - wand will automatically heal you[/B]
data/weapons/weapons.xml - add before </weapons>
PHP:
<wand id="8920" override="yes" mana="6" event="buffer" value="return doCreatureAddHealth(cid, 200 + getPlayerMagLevel(cid) * getPlayerLevel(cid) * 0.05) and doSendAnimatedText(getCreaturePosition(cid), '+'..(200 + getPlayerMagLevel(cid) * getPlayerLevel(cid) * 0.05), COLOR_GREEN)">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</wand>
data/items/items.xml - add before </items>
PHP:
<item id="8920" article="a" name="wand of life">
<attribute key="description" value="Magic wand that adds the quality of life during the attack." />
<attribute key="weight" value="3050" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="energy" />
<attribute key="range" value="4"/>
</item>
Greets
jestemPolakiem