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

Lua Creaturescript Login, mana.

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
what is the function to add player max mana? or set mana

can anyone experienced write for me it?:P
 
Im not a scripter. You cant just do this with creaturescript, you need also edit at source!
But what a heck!

I dont know if this work but i found this scripts!

Code:
function onThink(cid, interval)
if interval == 3 then
	pokemons = (6.20 - (getPlayerFreeCap(cid)))
	if getPlayerMana(cid) == pokemons then
	return true
	end
	doCreatureAddMana(cid, -(getCreatureMana(cid)))
	doCreatureAddMana(cid, pokemons)
end
end

And this to the catch:
Code:
if getPlayerMana(cid) >= 6 then
		doPlayerSendMailByName(getCreatureName(cid), item, 1)
		doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.")

like i said, if you want it too work you need to do source changes!
 
Last edited:
Up

Wtf??

Topic:

LUA:
doCreatureAddMana(cid, getCreatureMaxMana(cid))
LUA:
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))

Edit:
LUA:
function onLogin(cid)
             doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) 
             doCreatureAddMana(cid, getCreatureMaxMana(cid))
     return true
end
 
Like i said, im not a scripter i paste those script from my old pokemon server which including these scripts. So i hope someone could work on these and make it work or smth!
 
If you want set 0 mana just edit on vocations.xml and set mana gain 0 and on database or acc manager their you will see mana too edit it and set value 0
 
Back
Top