R3ignlasting
Well-Known Member
- Joined
- Nov 20, 2008
- Messages
- 1,293
- Reaction score
- 82
Okay, I know I'm not the best scripter and maybe not even one of the best... But I made a simple Manarune script.
Ok, use this rune : 2275 (You can change the ID if you want for this rune)
Add that into Data/Actions/Scripts as Manarune.lua
Now, remember you can change the ID's for the rune that you want to use the manarune for... Just change the <Action itemid="2275" to <Action itemid="(You ID here)"
Any found bugs on this manarune, please report it to me.
Ok, use this rune : 2275 (You can change the ID if you want for this rune)
Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Mana....",16)
doPlayerAddMana(cid, 1000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
Add that into Data/Actions/Scripts as Manarune.lua
Code:
<action itemid="2275" script="quests/quests.lua"/>
Now, remember you can change the ID's for the rune that you want to use the manarune for... Just change the <Action itemid="2275" to <Action itemid="(You ID here)"
Any found bugs on this manarune, please report it to me.