Hi!
I've got a little problem...
I made up a function "doPlayerRemoveMana(cid,mana)"
Here the Code:
The problem is, that the command doPlayerAddMana is "too good"^^
There is a message you will get: "You lose 20 mana." and the "damage" is made with "doSendAnimatedText(position,text,color)".
The point is that i made a spell with 5 waves, so it will make you loose mana 5 times, but I don't want to have the message "you lose ... mana" everytime when you use the spell.
Can I make the player lose mana in a different way?
Yours,
MaRkeY
I've got a little problem...
I made up a function "doPlayerRemoveMana(cid,mana)"
Here the Code:
Code:
function doPlayerRemoveMana(cid,mana)
if getPlayerMana(cid) >= mana then
doPlayerAddMana(cid,-mana)
return TRUE
else
return FALSE
end
end
The problem is, that the command doPlayerAddMana is "too good"^^
There is a message you will get: "You lose 20 mana." and the "damage" is made with "doSendAnimatedText(position,text,color)".
The point is that i made a spell with 5 waves, so it will make you loose mana 5 times, but I don't want to have the message "you lose ... mana" everytime when you use the spell.
Can I make the player lose mana in a different way?
Yours,
MaRkeY