-> [C]: in function 'player'
-> sys/lua/cs2dtibia/hooks.lua:343: in function <sys/lua/cs2dtibia/hooks.lua:311>
for _, id in ipairs(player(id, 'table')) do
if PLAYERS[id] and PLAYERS[id].tmp then
mana = 100 + ( PLAYERS[id].Level / 5 )
mana = mana / 100
mana = mana * 91
mana = round(mana)
mana = PLAYERS[id].Level / 5
mana = manaa + 100
mana = round(mana)
mana = round( ( (100 + (PLAYERS[id].Level/5) ) / 100) * 90)
mana = mana + 100
mana = mana / 100
mana = mana * 90
mana = round(mana)
if PLAYERS[id]['Mana'] < mana then
mana = PLAYERS[id].Level / 50
mana = mana + 10 + PLAYERS[id]['Mana']
mana = round(mana)
PLAYERS[id]['Mana'] = mana
elseif PLAYERS[id]['Mana'] < mana and PLAYERS[id]['Mana'] > mana then
PLAYERS[id]['Mana'] = 100+round(PLAYERS[id].Level / 5)
end
updateHUD(id)
end
end