• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Request manarune for 0.3+

Dramix

New Member
Joined
Jun 26, 2009
Messages
289
Reaction score
1
Hello, i have search and search for a working manarune script, i found one, but i need another better.. rep++ for the guy who want's to help me.

Okey, here is my ''idea''
It start at 200 mana, and give 2-3 more mana each level, example, level 100 will heal: 200+200-300 rep++ for helping me.
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
     return doPlayerAddMana(cid, 200 + (math.random(getPlayerLevel(cid) * 2, getPlayerLevel(cid) *3))
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
     return doPlayerAddMana(cid, 200 + (math.random(getPlayerLevel(cid) * 2, getPlayerLevel(cid) *3))
end

thank you but.. it's just take copy of a new lua file, and just paste, where should it be? action script?, or is it just the function "script"? I can nothing about editing scripts, thanks if you could help me.
 
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions') - 100)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(not isPlayer(itemEx.uid)) then doPlayerSendCancel(cid, "You cannot use this object.") end
	if(hasCondition(cid, CONDITION_EXHAUST)) then doPlayerSendCancel(cid, "You are exhausted.") end
 
	local lvl, ml, min, max = getPlayerLevel(cid), getPlayerMagLevel(cid), nil, nil
	min = ((lvl * 1.1) + (ml * 1.0) - 50)
	max = ((lvl * 1.3) + (ml * 1.0))
 
	local mana = math.random(min, max)
	doPlayerAddMana(cid, mana)
	doAddCondition(cid, exhaust)
	doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_MONSTER)
	return doChangeTypeItem(item.uid, item.type - 1)
end
 
Back
Top