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

Move items to X tile id = not possible

  • Thread starter Thread starter Rozinx
  • Start date Start date
R

Rozinx

Guest
People keep trashing my server up.
Is there any way to deal with that without cleaning it all the time?
If that's possible I'd like to know, like a cancel any kind of item movement to X tile(that would be my temple tile)
 
Hmm Chojrak, thanks for that, but I already tried to do that yesterday.
But I couldn't make a code that makes it for ANY kind of item.
Just one.
Hope you can enlighten me with your knowledge man, that must be easy for you I guess, and I won't forget to rep++ you.
I'm still a noob coder, I only ask for help when I really am out of resources lol.
 
Even if you return false, the item is still going to dropped, ...
so you can either remove it or teleport to another (trashholder?) tile.
 
Code:
function onAddItem(moveitem, tileitem, position, cid)
	doPlayerAddItem(cid, moveitem.itemid, moveitem.type)
	doRemoveItem(moveitem.uid)
	return true
end

?:O
 
Back
Top