Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 500) ---- how much it heal .
doRemoveItem(uid, 2300, 1)
return doCombat(cid, combat, var)
end
Code:
doRemoveItem(cid, item, 2300)
try not working
doRemoveItem(cid, item.uid, 1)
try not working
doRemoveItem(item.uid, 1)
try not working
doRemoveItem(cid, 2300, 1)
try and dont working :S
doRemoveItem(2300, 1)
my problem was on rune, if i use it, the rune dont remove!
helppp i give rep+
bug:
Code:
[17/09/2009 02:34:22] Lua Script Error: [Spell Interface]
[17/09/2009 02:34:22] data/spells/scripts/custom/manarunedonator.lua:onCastSpell
[17/09/2009 02:34:22] luaDoRemoveItem(). Item not found
Last edited: