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

Rexanilator

New Member
Joined
Oct 3, 2009
Messages
297
Reaction score
2
Basically I am looking for opinions on how much potions should heal and how much mana gain they should give. The following is basically what comes as default in may of the distributions:

Code:
local POTIONS = {
[8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
[7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
[7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion
[7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion
[8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion

[7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion
[7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
[7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion

[8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion
}

However - the sorcs and druids are screaming that they don't get enough mana gain and that it's not fair that the knights can gain like 1000 with the ultimate health potion.

I've used search and I could not seem to find a topic that addressed this issue. What are your thoughts about how to balance out the potions so that a good balance of hutning and PVP can take place.

Rep given to those who help!:thumbup:
 
I'm personally using formula:
Code:
orginal_formula + math.ceil(level / 2)

So 200 ms gains 300-400 from GMP. It's kinda fair I think.
 
I'm personally using formula:
Code:
orginal_formula + math.ceil(level / 2)

So 200 ms gains 300-400 from GMP. It's kinda fair I think.

I thought I had something in my script to do this - but apparently I don't have it...can you show me how to write this into my script? (rep given)
 
Last edited:
Code:
	local mana = potion.mana
	if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier) + math.ceil(getPlayerLevel(cid) / 2))) then
		return false
	end
 
Back
Top