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?
can anyone experienced write for me it?
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
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.")
doCreatureAddMana(cid, getCreatureMaxMana(cid))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
function onLogin(cid)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
return true
end