• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

HELP FIX THE SCRIPT rep+

W33dRoCks

Banned User
Joined
Aug 18, 2009
Messages
475
Reaction score
1
Location
Spain
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
i try change so much this fuction:
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:

Similar threads

Back
Top