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

Lua Update ML value on player:addOfflineTrainingTries()

guiismiti

Well-Known Member
Joined
May 19, 2014
Messages
313
Solutions
3
Reaction score
67
Hi,

I'm using player:addOfflineTrainingTries(SKILL_MAGLEVEL, trainingTime * (manaGain / manaTicks))

However, the player has to logout and login again so the value of the magic level is updated in the skill list - or it will still show the old value.

How can I update the value? I know addManaSpent can do the job, but I need to use offline training in this case.

Thanks in advance.
 
Back
Top