Gkatt
New Member
- Joined
- Mar 24, 2009
- Messages
- 413
- Reaction score
- 4
Heres my script
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1500) ---- how much it heal .
return doCombat(cid, combat, var)
end
It works fine but if a player have 0 mana and try to heal himself it says that he dont have enough mana he needs atleast 1 mana to heal :s!
By the way i need a Super uh Script to that heals 3k
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1500) ---- how much it heal .
return doCombat(cid, combat, var)
end
It works fine but if a player have 0 mana and try to heal himself it says that he dont have enough mana he needs atleast 1 mana to heal :s!
By the way i need a Super uh Script to that heals 3k