tuduras
Member
- Joined
- Jun 4, 2017
- Messages
- 76
- Solutions
- 1
- Reaction score
- 11
Helloo,
how can I make forever super uh ?
Here my script:
how can I make forever super uh ?
Here my script:
LUA:
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 health_minimum = (level * 7.3) + (mlevel * 7.0) * 1.75
local health_maximum = (level * 7.85) + (mlevel * 10.0) * 1.75
local health_add = math.random(health_minimum, health_maximum)
doCreatureAddHealth(cid, health_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
return TRUE
end