Hello OTLanders
Go in data file then action.xml put this there
Then Go in Script and make new file, change name to manarune and put this there
I have seen many search after manarune here you got a good manarune script
Give me a rep <3
Go in data file then action.xml put this there
<action itemid="2270" event="script" value="liquids/manarune.lua"/>
Then Go in Script and make new file, change name to manarune and put this there
local MIN = 500
local MAX = 600
local EMPTY_POTION = 2270
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions' - 2000))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Manarune...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end
I have seen many search after manarune here you got a good manarune script
Give me a rep <3