Hello, I have tried to make a manarune by using the ultimate healing rune script, but I have realized that it has this puff, but I don't want it, how do I remove it?
Also, how do I make it so that I can use both the spell exura and the manarune at the same time, still having the cooldown for the spell itself and the rune itself but seperately?
Spells.xml
Code:
<rune group="healing" spellid="121" name="Peon MR Rune" id="2275" allowfaruse="1" charges="1" level="1" magiclevel="0" cooldown="1000" groupcooldown="1500" aggressive="0" needtarget="1" blocktype="solid" script="Manarune.lua" />
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) -- I want to keep this effect
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(player, level, magicLevel)
doTargetCombatMana(0, player, (40), (60), CONST_ME_MAGIC_BLUE)
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
I also tried using one as actions.xml but I got my char to lvl 20, but it doesn't heal or anything
Lua:
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, 1000)
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if type(target) == "userdata" and not target:isPlayer() then
return false
end
if player:getCondition(CONDITION_EXHAUST_HEAL) then
player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED))
return true
end
if item:getId() == 2275 and player:getLevel() >= 20 then
doTargetCombatMana(0, player, (40), (60), CONST_ME_SOUND_PURPLE)
doTargetCombatHealth(0, player, (20), (50), CONST_ME_SOUND_PURPLE)
item:remove(1)
elseif player:getLevel() <= 20 then
player:say("You need to be level 20 or above!", TALKTYPE_MONSTER_SAY)
return false
end
return true
end
Last edited: