• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Manarune 8.54

Rawkar

New Member
Joined
Apr 13, 2008
Messages
11
Reaction score
0
Here is My manarune

ot\data\spells
PHP:
	<rune name="Manarune" id="2280" charges="1" mana="1" maglv="0" exhaustion="0" blocktype="solid" allowfaruse="1" script="manarune.lua"/>

data\spells\scripts

PHP:
 local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 1000) ---- how much it heal .
return doCombat(cid, combat, var)
end
 
doPlayerAddMana(cid, 1000) ---- how much it heal .

heal? This function add Mana...

And you must write about How add item. We have script yes? And how we add this rune to ots? You must write it.
 
And if I want to use this to heal hitpoints? Instead of "doPlayerAddMana" is "doPlayerAdd....."?
 
i know this is a old thread, but i need help... i have the same code like top.
and it will heal my mana but the rune called Spell rune :( why?

how i can change it?
 
Back
Top