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

C++ Item limit in a backpack

Lurk

Active Member
Joined
Dec 4, 2017
Messages
336
Reaction score
48
I want to set a limit to subcontainers inside a container (backpack) so a player can't carry more than lets say 3000 items
I have an 999x server and everyone have a loot of cap so the wight is not a solution I suppose..

I'm using tfs 0.4 rev 3777
 
Last edited:
I think its client related thing too.

if this is true then I'm kinda fucked... well, everyone tbh
when a player has 6000+ items inside his backpack the server lags probably 'cause its tryin' to find empty slots inside a loot of backpacks
 
Which server are you using?
Try some LUA with:
Code:
player:getItemCount(itemId[, subType = -1])

Then I think it is possible to block item grabability

OTHERWISE

I think it's client-side.
 
Which server are you using?
Try some LUA with:
Code:
player:getItemCount(itemId[, subType = -1])

Then I think it is possible to block item grabability

OTHERWISE

I think it's client-side.

I know almost nothing about lua, can you give me some help? I'm using tfs 0.4 rev 3777
 
Last edited:
another way to see what I'm trying to accomplish is: I want to set a limit to subcontainers inside a container (backpack)
so, for example: I have 1 backpack (on my backpack slot) and inside this backpack my limit is 30 containers (this way I could set a limit to how many items I can have in a backpack/subcontainers)
 
Back
Top