• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spell that hurts you

Dangnoob

Member
Joined
Jun 8, 2008
Messages
105
Solutions
2
Reaction score
12
Is it at all possible to create a spell that hurts u and does damage?
 
You could add doPlayerAddHealth(cid, -100) in function onCastSpell(cid, var).
or do you want the actual spell to hit the player? I guess source edit would be needed then.
 
No that actually would work. Thx.

actually though, is there a way to take a percent? Can i just like create a variable doing .15*health? and throw that into the "-100"?
 
Thx. would give +rep if i could :p

- - - Updated - - -

comes back as this
Code:
[22/10/2012 15:49:00] [Error - Spell Interface] 
[22/10/2012 15:49:00] data/spells/scripts/Taste for Blood.lua:onCastSpell
[22/10/2012 15:49:00] Description: 
[22/10/2012 15:49:00] data/spells/scripts/Taste for Blood.lua:46: attempt to call global 'doPlayerAddHealth' (a nil value)
[22/10/2012 15:49:00] stack traceback:
[22/10/2012 15:49:00] 	data/spells/scripts/Taste for Blood.lua:46: in function <data/spells/scripts/Taste for Blood.lua:45>
 
So far none of these suggestions have worked. I need the spell to deal damage to the caster whenever he casters his spells. like he is using his health instead of mana.
 

Similar threads

Back
Top