local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS, 1000)
function onSay(cid, words, param)
local level = getPlayerLevel(cid)
local maglevel = getPlayerMagLevel(cid)
local minDmg = (level * 2 + maglevel * 3) * 2.1
local maxDmg = (level * 2 + maglevel * 3) * 2.5
if getPlayerItemCount(cid, 2273) > 0 then
if getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
else
if doPlayerRemoveItem(cid, 2273, 1) then
doCreatureAddHealth(cid, math.random(minDmg, maxDmg))
doTargetCombatDispel(cid, cid, CONDITION_PARALYZE, CONST_ME_MAGIC_BLUE)
doAddCondition(cid, exhausted)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have uh runes.")
end
return 1
end