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

[c++] Item limit in container

Scooty

Enemia.EU
Joined
Jul 24, 2010
Messages
564
Reaction score
14
Location
Kraków
hi,i need something what will be limiting items in container.

Can someone write it down?

Thanks,
Scooty
 
There is containers size set for every container. Or do you mean recursive calculation including subcontainers?(that would slow down server he you set too high limit and someone wants to cause that loop)
 
yes, i want to limit subcontainers.

ex. in 1 backpack can be max 100 items.

i think its good idea to edit this in container.cpp

PHP:
ReturnValue Container::__queryAdd(int32_t index, const Thing* thing, uint32_t count, uint32_t flags) const
...
...
 
Last edited:
I'm not sure if this will work at all, but try it incase it does :P. This is my first time trying to make a C++ script for tibia.
Code:
#include <iostream> 
using namespace std;

int main()
{
int a, b;
int result;

backpack1 = 20
backpack2 = 80
result = backpack1 + backpack2

cout << result;

return 0;
}

also if people know what I did wrong, if it is wrong, please tell me so i can get better :D/
 
Back
Top