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

Prevent item from drop

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hey,

I need some help on how to prevent player from dropping a certain item, in this case itemid 102.

I tried things like this

LUA:
function onDeEquip(cid, item, slot)
	if getPlayerSlotItem(cid,CONST_SLOT_RING).uid == 102 then
		doPlayerSendCancel(cid,'You can\'t move this item.')
		return false
	end
	return true
end

but it didn't work.

Help is appreciated,
unknown666
 
If you use custom client maybe creating a new item that has the same properties as this item. Just get off the property of "Movable" ?

Just an idea, xD
 
Back
Top