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

[Spell] Deduct HP

lewy1000

New Member
Joined
May 24, 2010
Messages
29
Reaction score
0
Hey.

I make ultimate spell.
I dont know how to do deduct health

In spells.xml
Code:
healthpercent="100"
Dont work...

how i can do health deduct?
 
by removing the health in spell script:
Code:
if getCreatureHealth(cid) >= HEALTH_NEEDED then
    doPlayerAddHealth(cid, -HEALTH_NEEDED)
end
 
Code:
[07/07/2010 14:16:36] [Error - Spell Interface] 
[07/07/2010 14:16:36] data/spells/scripts/Holy Death.lua:onCastSpell
[07/07/2010 14:16:36] Description: 
[07/07/2010 14:16:36] data/spells/scripts/Holy Death.lua:77: attempt to call global 'doPlayerAddHealth' (a nil value)
[07/07/2010 14:16:36] stack traceback:
[07/07/2010 14:16:36] 	data/spells/scripts/Holy Death.lua:77: in function <data/spells/scripts/Holy Death.lua:74>

Code:
    	doPlayerAddHealth(cid, -getCreatureHealth(cid))
 
Back
Top