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

Solved Set Pagination True

Il Knight

Veteran OT User
Joined
Dec 1, 2014
Messages
676
Solutions
7
Reaction score
350
Location
Spain
Hi, today im trying to make the item 2000 (container) with Pagination true. (infinite backpack)

Container.h

Code:
Container(uint16_t type, uint16_t size, bool unlocked = true, bool pagination = false);

all containers of the game = pagination false as default.

Inbox.cpp and Depotchest.cpp

Code:
Container(type, 32, true, true)

type, 32 slots, unblocked(true), pagination(true)
Good all working.

But how i can set Pagination True to specific items, like item id 2000, or 5000 etc.

in other thread i see this

Code:
if (pid >= 1 && pid <= 11) {
                if (pid == 11) {
                    Container* container = item->getContainer();
                    if (container) {
                        container->setPagination(true);
                    }
                }

where pid is slots.
this is iologindata.cpp

how i can do something like, if container get id = xxxx then set pagination true?

Thanks in advance.

If you need help to set pagination true to your depot or inbox and be able to move items inside of then with the page 2,3,4 etc working only post.
 
1>..\src\container.cpp(37): error C2228: left of '.pagination' must have class/struct/union
1> ..\src\container.cpp(37): note: type is 'Container *const '
1> ..\src\container.cpp(37): note: did you intend to use '->' instead?
1>..\src\container.cpp(38): error C2228: left of '.unlocked' must have class/struct/union
1> ..\src\container.cpp(38): note: type is 'Container *const '
1> ..\src\container.cpp(38): note: did you intend to use '->' instead?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
1>..\src\container.cpp(37): error C2228: left of '.pagination' must have class/struct/union
1> ..\src\container.cpp(37): note: type is 'Container *const '
1> ..\src\container.cpp(37): note: did you intend to use '->' instead?
1>..\src\container.cpp(38): error C2228: left of '.unlocked' must have class/struct/union
1> ..\src\container.cpp(38): note: type is 'Container *const '
1> ..\src\container.cpp(38): note: did you intend to use '->' instead?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Well its saying what is the error right? change the "this." to "this->", my bad doing too much java.

Edited the previous post.
 
Container::Container(uint16_t type, uint16_t size, bool unlocked /*= true*/, bool pagination /*= false*/) :
Item(type),
maxSize(size),
unlocked(unlocked),
pagination(pagination)
{
if (type == 113) {
this->pagination = true;
this->unlocked = true;
}
}


i made a Rebuild and now its done.
compiling
 
Last edited:
1> creature.cpp
1>..\src\container.cpp(37): error C2059: syntax error: '=='
1> creatureevent.cpp
1> cylinder.cpp

{
if (Type == 113) {
this->pagination = true;
}
}
????????? this is not the whole constructor anyway its type not Type.
 
ed86c7bfa067878d51090496c04ea704o.png

Working, Solved
thank you Mkalo
 
Back
Top