<rune name="Manarune" id="2280" charges="1" mana="1" maglv="0" exhaustion="0" blocktype="solid" allowfaruse="1" script="manarune.lua"/>
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
<action itemid="ACTIONIDHERE" event="script" value="other/SCRIPT_NAME.lua" allowfaruse="1"/>
<rune name="Manarune" id="2280" charges="1" mana="1" maglv="0" exhaustion="0" blocktype="solid" allowfaruse="1" script="manarune.lua"/>
<rune name="Mana Rune" id="2280" allowfaruse="1" charges="5" lvl="8" exhaustion="899" maglv="5" aggressive="0" needtarget="1" blocktype="solid" script="manarune.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(600, 750))
return doCombat(cid, combat, var)
end
<rune name="Ultimate Healing Rune" id="2273" allowfaruse="1" charges="1" lvl="24" maglv="4" exhaustion="950" aggressive="0" needtarget="1" blocktype="solid" script="healing/ultimate healing rune.lua"/>
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*0.25 + maglv*3) * 1.8)
local formula_max = ((lv*0.25 + maglv*3) * 1.2)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
a manarune that heals with a green effectsomeone can give mana rune by lvl/magic level ??? a and heals another collor not blue ect.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, math.random(600, 750))
return doCombat(cid, combat, var)
end
\data\talkactions\scripts\aol.luaDo u know aol command to?
I have it but its just take money and dont give aol and its say u dont have mony but i its take money xD
function onSay(cid, words, param, channel)
if (getPlayerItemCount(cid, 2160) * 10000 + getPlayerItemCount(cid, 2152) * 100 + getPlayerItemCount(cid, 2148)) >= 10000 then
doPlayerSendTextMessage(cid,22,"Amulet of loss added to your inventory.")
doPlayerRemoveMoney(cid, 10000)
doPlayerAddItem(cid, 2173, 1)
else
doPlayerSendTextMessage(cid,22,"You don't have enough money.")
end
end
<talkaction words="!aol" event="script" value="aol.lua"/>
Thanks, i will rep u later when i can
But one last question ^^
That uh u gave me its heal littel low maybe u can tell me how i get it to heal like 400-500 ?
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*0.25 + maglv*3) * 1.8)
local formula_max = ((lv*0.25 + maglv*3) * 1.2)
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*0.25 + maglv*3) * 3.5)
local formula_max = ((lv*0.25 + maglv*3) * 3.2)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end