Zaweq
Member
- Joined
- Apr 1, 2017
- Messages
- 48
- Reaction score
- 15
Any can help me with manarune ?
I want someone to do so to give a permanent 500-600 of mana?
I want someone to do so to give a permanent 500-600 of mana?
Lua:
local runeTest = Spell(SPELL_RUNE)
function runeTest.onCastSpell(creature, variant)
local target = Tile(variant:getPosition()):getTopVisibleCreature(creature)
if not target or not target:isPlayer() then
creature:getPosition():sendMagicEffect(CONST_ME_POFF)
return false
end
local maxMana = creature:getMaxMana() / 100
target:addMana(math.random(maxMana * 10, maxMana * 15))
target:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
target:say("MR Aaahh!")
return true
end
runeTest:name("ManaRune#1")
runeTest:isAggressive(false)
runeTest:runeId(2307)
runeTest:blockWalls(true)
runeTest:magicLevel(1)
runeTest:level(8)
runeTest:group("support")
runeTest:id(24)
runeTest:cooldown(1 * 1000)
runeTest:groupCooldown(1 * 1000)
runeTest:isPremium(true)
runeTest:register()