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

manarune script..

Fady

Anderion.net
Joined
Aug 13, 2009
Messages
572
Reaction score
17
Location
Egypt
I'm making a server 8.54 TFS 0.3.6 and I need a manarune, i
need infinite manarune, no exhust and Heal 100k mana..........Please help me :)
 
data/actions/actions.xml
Code:
<action itemid="2294" event="script" value="manarune.lua"/>

data/actions/scripts/manarune.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddMana(itemEx.uid, 100000) and doSendAnimatedText(getThingPos(cid), "MANARUNE!", TEXTCOLOR_RED)
end
 
can u make it faster?, i want it no exhust .....

Code:
local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 900))

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if hasCondition(cid, CONDITION_EXHAUST_HEAL) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
	end
	
	return doPlayerAddMana(itemEx.uid, 100000) and doAddCondition(cid, exhausted) and doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) and doSendAnimatedText(getThingPos(cid), "MANARUNE!", TEXTCOLOR_RED)
end
 
Well we could make it seem faster:
LUA:
local function addMana(cid)
    doPlayerAddMana(itemEx.uid, 100000)
    doSendAnimatedText(getThingPos(cid), "MANARUNE!", TEXTCOLOR_RED)
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
        addMana(cid)
	return addEvent(addMana, 100, cid)
end
 
Last edited:
[29/11/2011 05:09:33] Warning: [Event::checkScript] Can not load script. /scripts/manarune.lua
[29/11/2011 05:09:33] cannot open data/spells/scripts/manarune.lua: No such file or directory
[29/11/2011 05:09:33] Warning: [Event::checkScript] Can not load script. /scripts/custom/drunk.lua
[29/11/2011 05:09:33] cannot open data/spells/scripts/custom/drunk.lua: No such file or directory



PLEASE HELP!
 
It is telling you that the file manarune.lua does not exists in data/spells/scripts/
same with drunk.lua in data/spells/scripts/custom/
 
Back
Top