Hey i cant find any good manarune scripts on the forum!
Can any one make one that is like this one?
using 0.4
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: