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

Potions that scale with lvl + mlv

zcorpy

New Member
Joined
Sep 12, 2017
Messages
85
Reaction score
4
I need help with a potions script! What I want is for them to scale with lvl + mlvl something similar to the collapser script
Please someone help me?
 
First think how you want them to scale, now think about a formula that will behave in the way that you want.

Now use two functions, one to get the ml (getPlayerMagicLevel(cid) or player:getMagicLevel() depending on your tfs) and other to get level (just remove the Magic from the previous functions). Now write your formula in a variable and make small changes to use your value.

like this:

local lvl = getPlayerLevel(cid)
local ml = getPlayerMagicLevel(cid)

local value = lvl + ml * 2

let's suppose the script use this to add hp:
->doCreatureAddHealth(cid, 50)
change the value to your new value:

doCreatureAddHealth(cid, value).


Now try it yourself and let me know if you have any trouble.
 
Back
Top