• 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!

[LUA] Destroy

Status
Not open for further replies.

Slider

New Member
Joined
Jun 4, 2007
Messages
57
Reaction score
0
with the original destroy.lua script you can destroy Quests Chest!

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
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!
 
Status
Not open for further replies.
Back
Top