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

Solved TFS 1.0 "GetCreatureMaxMana"

Status
Not open for further replies.

Tovar

Brak V
Joined
Jul 26, 2008
Messages
347
Reaction score
8
attemp to call global 'getCreatureMaxMana' (a nil value) error in console, this function has changed?

TFS 1.0 Latest sources.
 
This is the script.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
    doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
    doCreatureSay(cid, "You feel very refreshed and relaxed.", TALKTYPE_ORANGE_1)
    return true
end

BUMP
 
Code:
doPlayerAddMana(cid, getPlayerMaxMana(cid) - getPlayerMana(cid))
 
Nope, they are fine. You can find available functions in compat.lua/luascripts.cpp.
 
Thanks, fixed with
Code:
doPlayerAddMana(cid, getPlayerMaxMana(cid) - getPlayerMana(cid))
mod can close it.
 
Status
Not open for further replies.
Back
Top