It keeps saying "You can not use this object."
Scripts:
In the lib/actions.lua:
I can't seem to find an error. I thought that if I remove the "_REMOVE" right after JUNGLE_GRASS in the script it might have worked but I have no idea!
Scripts:
Code:
function onUse(cid, item, frompos, item2, topos)
if (isInArray(JUNGLE_GRASS_REMOVE, item2.itemid) == TRUE) then
doRemoveItem(item2.uid)
return TRUE
elseif (isInArray(JUNGLE_GRASS_TRANSFORM, item2.itemid) == TRUE) then
doTransformItem(item2.uid, item2.itemid - 1)
doDecayItem(item2.uid)
return TRUE
elseif (isInArray(SPIDER_WEB, item2.itemid) == TRUE) then
doTransformItem(item2.uid, item2.itemid + 6)
doDecayItem(item2.uid)
return TRUE
end
return FALSE
end
Code:
<action itemid="2420" script="machete.lua"/>
<action itemid="2442" script="machete.lua"/>
In the lib/actions.lua:
Code:
JUNGLE_GRASS = 2782
I can't seem to find an error. I thought that if I remove the "_REMOVE" right after JUNGLE_GRASS in the script it might have worked but I have no idea!