with the original destroy.lua script you can destroy Quests Chest!
I need help for fixing it!
Original Script:
My Solution:
Can someone fix this for me Please that he checks if is the item 1740 (chest) or other number and than he destroy or not!
I need help for fixing it!
Original Script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return destroyItem(cid, itemEx, toPosition)
end
My Solution:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1740 then
MSG YOU CANT DESTROY THIS ITEM!
else
return destroyItem(cid, itemEx, toPosition)
end