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

TFS 1.X+ downgrade loot monster

antonio664

Member
Joined
Jan 9, 2013
Messages
129
Reaction score
5
Any ideas on how to filter the monsters' loot?
example.

If the batch is larger than ID 8000, ignore it.

I don't want to have to downgrade one by one, because there are thousands!
 
I am not good with codes. Please help me.

Lua:
if item.itemId >= 8000 then
return false

end

is close to work?


Yes change the code here otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/data/lib/core/container.lua#L5-L48)

Instead of return false, do return true

See how it goes :D

ONCE That's done you can change it so if its a container you will want to replace it with alternative container to allow any items inside that are below 8k ID to be dropped. I think there are bags/backpacks with ids of 10k or something, inside you might want to get items which are below 8k. That's why you need to replace any containers with standard bags/backpacks or w/e
 
Back
Top