• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Block players thrown items on ground

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Hello,

I remeber there was a attribute key to add on items.xml but i couldnt find it. I want to make itemid 460, not be trashable.


Rep!
 
Hm, ye i got tile 460, 11675, 11676, 11677. Thanks :)
 
Last edited:
What do you mean :P?

I have those tiles to fly, but since people are trashing them. Which cause fly bug :/
 
Yeah, that's what I've been using for some situations.

LUA:
function onAddItem(moveitem, tileitem, position)
	doRemoveItem(moveitem.uid)
	return false
end
 
This doesnt work :/
Code:
<movevent type="OnMove" itemid="460" event="script" value="block.lua"/>

LUA:
function onMoveItem(cid, item, fromPosition, toPosition, fromItem, toItem, fromGround, toGround, status)
return false
end
 
should be like this I guess:
Code:
<movevent type="AddItem" itemid="460" tileitem="1" event="script" value="block.lua"/>

also change onMoveItem to onAddItem and get the correct parameters.
Also return false won't work, but
doRemoveItem(moveItem.uid)
 
Last edited:
Thanks summ :P, But i thougt i could just block the ground tile from throwing items ^^
 
Back
Top