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

Mixed Rune or Spirit rune request

Luciano

Member
Joined
Feb 18, 2010
Messages
998
Reaction score
24
Hi.
I have this script for heal mana:
Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Donated Manarune!!",19)
doPlayerAddMana(cid, 1200)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end

I need a script that heal,for example, 1200 mana and health, and say Mixed Rune. No. Its not forgotten map ;P is real map. AND, Only for paladins :D
-----
Anyone know a good "upgrader" item to do like transform item x in y, i have the script just need a cool item and unused :D
 
LUA:
<rune name="Mixed Rune" id="XXXX" allowfaruse="1" charges="1" lvl="10" maglv="10" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="mixed_rune.lua">
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
	</rune>
LUA:
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)
    doCreatureAddHealth(cid, 1200)
    doCreatureAddMana(cid, 1200)
	doCreatureSay(cid, "Mixed Rune", TALKTYPE_ORANGE_1)
    return doCombat(cid, combat, var)
end

This one should work.
 
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerMagLevel(cid) >= 3 then
if isPaladin(cid) then
doCreatureAddHealth(cid, 1200)
doCreatureAddMana(cid, 1200)
doCreatureSay(cid, "Mixed Rune!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Only Paladins can use this rune!")
end
else
doPlayerSendCancel(cid, "You don't have enough magic level.")
  end
    return true
end
 
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerMagLevel(cid) >= 3 then
if isPaladin(cid) then
doCreatureAddHealth(cid, 1200)
doCreatureAddMana(cid, 1200)
doCreatureSay(cid, "Mixed Rune!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Only Paladins can use this rune!")
end
else
doPlayerSendCancel(cid, "You don't have enough magic level.")
  end
    return true
end

can u make for all voc?
 
LUA:
 function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerMagLevel(cid) >= 3 then
if isPlayer(cid) then
doCreatureAddHealth(cid, 1200)
doCreatureAddMana(cid, 1200)
doCreatureSay(cid, "Mixed Rune!", TALKTYPE_ORANGE_1)
end
  end
    return true
end

if you want it without a required magic level:
LUA:
function onUse (cid, item, fromPosition, itemEx, toPosition)
if isPlayer(cid) then
doCreatureAddHealth(cid, 1200)
doCreatureAddMana(cid, 1200)
doCreatureSay(cid, "Mixed Rune!", TALKTYPE_ORANGE_1)
end
    return true
end
 
Back
Top