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

Action uh charges

Hbraveq

Active Member
Joined
Nov 11, 2012
Messages
167
Reaction score
40
Hello
I'm using action for uh

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000

function onUse(cid, item, fromPosition, itemEx, toPosition)

local hpmax, manamax = getCreatureMaxHealth(cid), getPlayerMaxMana(cid)
local minhp, maxhp = 60, 65 -- this means 60% minimum hp healing and 65% maximum hp healing
local minmana, maxmana = 0, 0 -- this means 3% minimum mana healing and 5% maximum mana healing
local hp_add, mana_add = math.random((hpmax * (minhp/100)), (hpmax * (maxhp/100))), math.random((manamax * (minmana/100)), (manamax * (maxmana/100)))

if(hasCondition(cid, CONDITION_EXHAUST)) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted")
return true
end
doCreatureAddHealth(cid, hp_add)
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doSendAnimatedText(getPlayerPosition(cid),"+"..hp_add.."", TEXTCOLOR_GREEN)
doAddCondition(cid, exhaust)
return true
end
is it possible to remove charges? 100. 99, 98~~

00:41 You see a super uh. It's an ""-spell (100x).
It weighs 1.20 oz.
 
Last edited:
This is basically the same question as your other thread..

 

Similar threads

Back
Top