tuduras
Member
- Joined
- Jun 4, 2017
- Messages
- 76
- Solutions
- 1
- Reaction score
- 11
Hello,
my 5548level DRUID has more healing than 6006 SORCERER .
Can someone know what's wrong ?
Post my mr scirpt:
in Vocations.xml all is the same


my 5548level DRUID has more healing than 6006 SORCERER .
Can someone know what's wrong ?
Post my mr scirpt:
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 100) -- time in seconds x1000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local manamax = getPlayerMaxMana(cid)
local min = 22.0 -- this means 3% minimum healing
local max = 22.0 -- this means 5% maximum healing
local mana_add = math.random((manamax * (min/100)), (manamax * (max/100)))
if(hasCondition(cid, CONDITION_EXHAUST)) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return doPlayerSendCancel(cid, "Poczekaj.")
end
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doSendAnimatedText(getPlayerPosition(cid),"+"..mana_add.."", TEXTCOLOR_LIGHTGREEN)
doAddCondition(cid, exhaust)
return true
end


Last edited: