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

doPlayerRemoveMana(cid,mana)

Markey

Ashandra War Scripter
Joined
Feb 7, 2008
Messages
114
Reaction score
1
Location
Austria
Hi!
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
 
I use the same thing for my spell..
but.. id like to change the doplayerRemoveMana so it doesnt shows an animation..
 
Back
Top