How to change this script :
I wanted these manarune to be used at the same time as "utani hur" exori vis, exori. But not when runes, healing like uh.
what should a well-written lua look like?
I wanted these manarune to be used at the same time as "utani hur" exori vis, exori. But not when runes, healing like uh.
what should a well-written lua look like?
Lua:
local combat = Combat()
if player:getStorageValue(55555) >= os.time() then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You are exhausted")
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = ((level / 5) + 130)
max = ((level / 5) + 130)
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
if target:isPlayer() then
player:setStorageValue(55555, os.time() + 0)
return combat:execute(creature, var)
end
Last edited: