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

Need good Mana rune script!

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey i cant find any good manarune scripts on the forum!
Can any one make one that is like this one?
using 0.4
LUA:
local function notpossible(fromPosition)
	doSendMagicEffect(fromPosition,CONST_ME_POFF)
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) then
		local mag = getPlayerMagLevel(cid)
		if mag >= 3 then
			doSendMagicEffect(toPosition,CONST_ME_LOSEENERGY)
			doCreatureSay(itemEx.uid,"Infinite X-Great Manarune",19)
			doPlayerAddMana(itemEx.uid, 100000)
			if item.type > 1 then
				doChangeTypeItem(item.uid,item.type-1)
			end
		else
			notpossible(fromPosition)
			doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
		end
	else
		notpossible(fromPosition)
		doPlayerSendCancel(cid,"Sorry, not possible.")
	end
	return true
end
 
Last edited:
Back
Top