haxborn
server dominando, cry is free
Hi there, I'm putting up a server and got a small problem, since I'm not a good scripter I just want a small help.
I'm using a mana rune since my server is 8.50 and using tfs 0.2.2
It works perfectly, though the mana rune disapears when used, I want it to stay.
Could you help me out?
Here's the script:
btw looking for scripter if someone is intrested, will make a deal then.
I'm using a mana rune since my server is 8.50 and using tfs 0.2.2
It works perfectly, though the mana rune disapears when used, I want it to stay.
Could you help me out?
Here's the script:
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)
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) + (mlevel * 3) - 50
local mana_maximum = (level * 4) + (mlevel * 3)
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doSendMagicEffect(pos,28)
doPlayerAddMana(cid, mana_add)
doSendAnimatedText(pos, mana_add, TEXTCOLOR_LIGHTBLUE)
doCreatureSay(cid, "_+_MaNa PoWeR_+_", TALKTYPE_ORANGE_1)
return doCombat(cid, combat, var)
end
btw looking for scripter if someone is intrested, will make a deal then.
Last edited: