• 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 Get Magic Level / Get Skill

Arn

Member
Joined
Mar 8, 2010
Messages
282
Reaction score
18
Hello,

On my server, there are some abilities and some items that give magic level percent. For example, your magic level 100, drink mastermind potion, and now your at 120. The problem I have is that getPlayerMagLevel will still return 100, and not 120. Now, I could just check to see if the player is suffering from CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, and then increase by 20. However, the problem with that is that we have multiple stacking buffs. So its actualy possible to cast a spell to buff magic level as well as drink a potion that does the same. If that bonus is greater than 20% then my simple check won't work.

What I need is a either:

1. A way to get the current magic level with buffs.

2. A way to count how many percent the magic level has been buffed.


Any help is appreciated, will +rep. Thanks!

-Arn
 
Back
Top