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

Mana rune

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,683
Solutions
36
Reaction score
388
Hello otoland i want script for mana runes heal by level and magic level and show player how much that heal tibia 8.60
 
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
 function onUse(cid, item, fromPosition, itemEx, toPosition)
 local level = getPlayerLevel(cid)
 local mlevel = getPlayerMagLevel(cid)
 local mana_minimum = (level * 1) + (mlevel * 1) - 50
 local mana_maximum = (level * 1.2) + (mlevel * 1)
 local mana_add = math.random(mana_minimum, mana_maximum)
 doPlayerAddMana(cid, mana_add)
 doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
 doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
 doRemoveitem(item.uid)
 return true
end


2- how much it heal.that can be done through config
 
Back
Top