• 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 to set mana in TFS 0.2.15

8674011

New Member
Joined
Jun 21, 2010
Messages
160
Reaction score
3
Location
The House
Is there any way to give some a said amount of mana, I have it set so once you do a quest it sets your mana to 100, or adds 100 mana (cause people start out with 0) is there anyways going about this?

I looked through the lua functions and couldn't find anything to support it,
thanks in advanced!
 
There is no function for that in TFS 0.2, you can use a query, but then the player needs to be kicked.
Code:
local guid = getPlayerGUID(cid)
doRemoveCreature(cid)
db.query("UPDATE `players` SET `manamax` = `manamax` + 100 WHERE `id` = " .. guid .. "")
 
Back
Top