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

Manarune script?

Azcarer

HEJJJJ!! :D
Joined
Nov 3, 2008
Messages
871
Reaction score
3
Location
r u Pedobear
I'm making a server 8.4 and I need a manarune to it, i
need one with 2000 + mana!
If someone knows it please tell me, I would be glad.^_^
 
Add on any rune


PHP:
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)
        doCreatureAddMana(cid, math.random(2000, 2500))
        return doCombat(cid, combat, var)
end
 
if U want to it give always 2000 mana
PHP:
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)
        doCreatureAddMana(cid, 2000)
        return doCombat(cid, combat, var)
end
 
ehm , i think that he understood the two first posts.

The posts werent there when I saw the thread and clicked "Post Reply". I had the tab open while posting on another thread so they wrote before I started writing mine, so I couldnt see them. If we had a "delete post" button, I would've used it no problem, but we dont.

Im just trying to help not like Im charging anything for it, there's no need/point to bash me for that.

Cheers~
 
Do someone knows how to script so every vocation can use manarune??
Sorry for doubleposting.

You probably have something like this on your spells.xml:

PHP:
<rune name="manarune" id="2298" allowfaruse="1" charges="20" lvl="24" maglv="30" exhaustion="1000" blocktype="solid" aggressive="0" event="script" value="custom/manarune.lua"> 
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>

If not, now's the time to add it :D.

And you should have the manarune.lua script on the folder called custom, inside the spells > scripts folder. Or you can have it anywhere but then you'd need to change the field
Code:
value="[B]custom[/B]/manarune.lua"
to your file directory's path.

So, in there, to make it usable by any voc the only things you need to change are:

Code:
maglv="30"
field to
Code:
maglv="0"
(or any magic level you think is fair and obtainable by the vocs you want)

Then delete this:

Code:
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>

And at the end of the line where it says:

Code:
~blah blah event="script" value="custom/manarune.lua">

Put a "/" like this:

Code:
~blah blah event="script" value="custom/manarune.lua"[B]/[/B]>

That should do.

You can change the other fields for lvl req, exhaustion, itemID of the rune, etc.

Cheers~
 
Back
Top