jestemPolakiem
New Member
Strong Body
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just use a spell.[/B]
I add a spell of 500% percent of your life for 10 seconds, but you can use it once every 5 minutes.
data/spells/spells.xml
PHP:
<instant name="Strong Body" words="flesh strong" event="script" lvl="30" mana="180" exhaustion="300000" selftarget="1" needlearn="0" value="strongbody.lua" >
<vocation id="4"/>
<vocation id="8"/>
</instant>
data/spells/scripts/strongbody.lua
PHP:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_STAT_MAXHEALTHPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 1000)
function onCastSpell(cid, var)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return doAddCondition(cid, condition) and doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
end
Greets
jestemPolakiem