• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Based Mana.

Revou

New Member
Joined
Dec 11, 2010
Messages
22
Reaction score
0
Hello i wanted to change the based value of mana for new player.

I changed this in mysql.sql :

Code:
	`mana` INT NOT NULL DEFAULT 100,
	`manamax` INT NOT NULL DEFAULT 100,

And the starting mana is still 0. Can anyone help me?
 
1. I am using account manager.

2. Where exactly is this? I was searching for like 2h. Can you give me more details?

Thanks!
 
1. I am using account manager.
You have to add some code into your onLogin script then, since the server calculates hp/mana automatically based on level and vocation.

LUA:
if getCreatureStorage(cid, 30001) == -1 then
	setCreatureMaxMana(cid, 100)
	doCreatureAddMana(cid, 100)
	doCreatureSetStorage(cid, 30001, 1)
end
You can also combine it with your first items script, if any.
 
Last edited:
Back
Top