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

How do I remove mana from a player?

Yodot

Active Member
Joined
Dec 10, 2007
Messages
179
Reaction score
25
Hi guys,

Again, great server ;)

I'm trying to implement an enchant gems script into my server (tfs 2 patch 14) and I can't work out how to remove mana from a player.
Currently doPlayerRemoveMana(cid, 300) is not working.

Am I doing something wrong or is there another command I can use to remove mana.

Cheers.
 
doPlayerAddMana(cid, - number)

or paste this in your global/functions.lua

Code:
function doPlayerRemoveMana(cid, mana)
    return doPlayerAddMana(cid, - mana)
end
 
doPlayerAddMana(cid, - number)

or paste this in your global/functions.lua

Code:
function doPlayerRemoveMana(cid, mana)
    return doPlayerAddMana(cid, - mana)
end

OMG, ty so much...

I must have had plenty of stupid pills before I asked that.

Cheers
 
Back
Top