• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Strong Body

jestemPolakiem

New Member
Joined
Oct 17, 2009
Messages
48
Reaction score
2
Location
Poland
Strong Body
by jestemPolakiem

script has been tested on The Forgotten Server 0.3.6pl1 and worked

mapamu.png


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
 
oww it adds 5 minutes of exhaust for all healing and support spells ?? =^_^=
 
Hello, can you make this for 0.2+, mystic spirit, so that working? ;) thx and rep ;)
 
Back
Top