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

I need a Cedrik the Recycler fix

tattoobob

New Member
Joined
Jan 30, 2010
Messages
3
Reaction score
0
Hi, I have added the Cedrik the Recycler script to my server but when a backpack is thrown on top of the coal basin it sparkles, gives me 10gp and the removes the tile under the basin and not the backpack. I need a fix to remove the backpack and not the tile under the basin, can someone help please....I really like this script...
 
/data/movements/scripts/recycler.lua
Code:
local backpacks = {1988, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3940, 5926, 5949, 7342, 9774}
function onAddItem(moveitem, tileitem, pos, cid)
	if isInArray(backpacks, moveitem.itemid) then
		doRemoveItem(moveitem.uid)
		doPlayerAddMoney(cid, 10)
		doSendMagicEffect(pos, CONST_ME_MAGIC_RED)
	end
end
 
Back
Top