Casper1996
New Member
- Joined
- Mar 15, 2012
- Messages
- 9
- Reaction score
- 0
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
local health_minimum = 1200
local health_maximum = 1750
local health_add = math.random(health_minimum, health_maximum)
doPlayerAddMana(cid, health_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_GREEN)
doCreatureSay(cid,"Second healing!",19)
return TRUE
end
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
local health_minimum = 1200
local health_maximum = 1750
local health_add = math.random(health_minimum, health_maximum)
doPlayerAddMana(cid, health_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_GREEN)
doCreatureSay(cid,"Second healing!",19)
return TRUE
end