Okay, so there's this bug..When you drop manarunes on the floor..You can't pick it up... Only way to get rid of them, is doing /r...
Also, I have made a copy of some sword, and made them better..How can I get them into Remeres map editor? Like if i want to place them somewhere..
Manarune LUA
Also, I have made a copy of some sword, and made them better..How can I get them into Remeres map editor? Like if i want to place them somewhere..
Manarune LUA
Code:
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)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local pos = getPlayerPosition(cid)
-- Mana Formula Settings --
-- You can use "level" and "mlevel" --
local mana_minimum = (level * 3.5) + (mlevel * 1.6) - 50
local mana_maximum = (level * 4.1) + (mlevel * 2.5)
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
doSendAnimatedText(pos, mana_add, TEXTCOLOR_PURPLE)
return doCombat(cid, combat, var)
end
Last edited: