Darad
New Member
- Joined
- Jun 23, 2009
- Messages
- 119
- Reaction score
- 1
Hey guys,
need some help here. Have a mod that does some stuff, and then lowers the charges on the item. But this lowering does not work properly. Here's the code that does it.
This results in
Halp!?
need some help here. Have a mod that does some stuff, and then lowers the charges on the item. But this lowering does not work properly. Here's the code that does it.
Code:
<action itemid="XXXX" allowfaruse="0" event="buffer">
Lua:
-- Set charges.
if config.useCharges == 1 then
doTransformItem(item.uid, item.itemid, item.type - 1)
end
This results in
Code:
[07/09/2009 16:51:43] Lua Script Error: [Action Interface]
[07/09/2009 16:51:43] buffer
[07/09/2009 16:51:43] luaDoTransformItem(). Item not found
Halp!?