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

@Mana rune problem!

Gkatt

New Member
Joined
Mar 24, 2009
Messages
413
Reaction score
4
Heres my script

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, 1500) ---- how much it heal .
return doCombat(cid, combat, var)
end


It works fine but if a player have 0 mana and try to heal himself it says that he dont have enough mana he needs atleast 1 mana to heal :s!

By the way i need a Super uh Script to that heals 3k
 
<rune name="Mana Rune" id="XXXX" allowfaruse="1" charges="1" lvl="10" maglv="0" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" script="Manarune.lua"/>

I am not relly sure but i think its maybe this thing in spell.xml or where u did put it its diffrent on all manarune, if its say mana="1" or somthing thats the problem if not this is the problem i cant help u,

hope i helped.
 
spells.xml
Code:
	<rune name="Mana Rune" id="2300" allowfaruse="1" charges="5" lvl="8" exhaustion="2000" maglv="5" aggressive="0" needtarget="1" blocktype="solid" script="manarune.lua"/>

manarune.lua
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)
	doPlayerAddMana(cid, math.random(1000, 1500))
	return doCombat(cid, combat, var)
end
 
Back
Top