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

mana+hp

Here it is
but don't forget to rep++ me :p
PHP:
local config = {
					Add_Mana = true, 		--- enable mana adding
 
					Add_Health=true,		--- enable health
 
					USE_Fomula = false,		-- enable formula usage , false if not
 
					formula_mana = function (cid,lvl,mlvl) -- so i think you know what you would edit here
										local add = { 
														min = ( mlvl * 2000 ) + ( lvl / 2000 ) ,
														max = ( mlvl * 30000 ) + ( lvl / 50000 ) 
													}
										return math.random(add.min,add.max)
									end,
 
					formula_heal = function (cid,lvl,mlvl)
										local add = { 
														min = ( mlvl * 2000 ) + ( lvl / 2000 ) ,
														max = ( mlvl * 30000 ) + ( lvl / 50000 ) 
													}
										return math.random(add.min,add.max)
									end	,		
 
 
					--[[ USE_Fomula = false ]]--
 
					mana = {min = 50000000, max = 60000000 },		
 
					health = {min = 70000000, max = 80000000 },
 
					remove_charges = false,
 
					exhaust = 0 -- in seconds , sure u know how to make it less than that, set this to 0 and  reduce timeBetweenExaction in config.lua 
 
				}
 
local storage = 238829 -- empty storage
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if 	exhaustion.get(cid, storage) then
		doPlayerSendCancel(cid,"You are exhausted.")
		return true
	end
	exhaustion.set(cid, storage, config.exhaust)	
	if config.Add_Mana then
		doCreatureAddMana(cid, ( config.USE_Fomula and config.formula_mana(cid,getPlayerLevel(cid),getPlayerMagLevel(cid)) or math.random(config.mana.min,config.mana.max) ) )
	end
	if config.Add_Health then
		doCreatureAddHealth(cid, ( config.USE_Fomula and config.formula_heal(cid,getPlayerLevel(cid),getPlayerMagLevel(cid)) or math.random(config.health.min,config.health.max) ) )
	end
 
return config.remove_charges and doRemoveItem(item.uid,1)
end
 
It's easy to configure something like that. You can edit the healing and mana amount when using the rune.
 
Back
Top