• 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:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 100000) 
doCreatureSay(cid,"Infinite X-Great Manarune",19)
return doCombat(cid, combat, var)
end
try this
 
Why not configure a dual-stack rune that has both a spell and an action assigned to it? You can pull off neat tricks with such things...

You know what? I guess I'm feeling nice. Here's my rewrite of some script that was on a server I used to manage:

--removed--
 
Last edited:
doggynab Becouse it cases debugg in the 0.4 it work in the other trunk i had!
lessaire i will try ti thanks!
 
doggynab Becouse it cases debugg in the 0.4 it work in the other trunk i had!
lessaire i will try ti thanks!

All you had to do in the first script was change this to TALTKYPE_ORANGE_1
Code:
doCreatureSay(itemEx.uid,"Infinite X-Great Manarune",[B][COLOR="red"]19[/COLOR][/B])
 
cykotian it was updated still debuggs when im using doCreatureSay(itemEx.uid,"X-Large ManaHeal!!",TALTKYPE_ORANGE_1)
 
then try to change TALTKYPE_ORANGE_1 to 13
confused_smile.gif
 
Back
Top