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

OTClient Saved position of containers

Crystals

Member
Joined
Sep 28, 2024
Messages
58
Reaction score
10
Hello :) I'm trying to find where or how to set it so that open backpacks are saved after logging out. It's a small thing, but it makes me happy :D

Theforgottenserver 1.4.2
otclientv8
 
i mean the function i marked in protocolgame.cpp
Oh i see

but i sadly dont understand what you want me to take out of this.

I understand thats the function that is responsible for the empty bag that i get when logging in but im assuming its not suposed to be like that. i should be able to login open bags log out and then log in again and have the same bags open. Thats not whats happening, the bags are getting closed onLogin and the placeholder is coming back.
 
Oh i see

but i sadly dont understand what you want me to take out of this.

I understand thats the function that is responsible for the empty bag that i get when logging in but im assuming its not suposed to be like that. i should be able to login open bags log out and then log in again and have the same bags open. Thats not whats happening, the bags are getting closed onLogin and the placeholder is coming back.
Remove this function and all its calls.
 
Remove this function and all its calls.
Amazing!

that worked!

no Errors in otcv8 and the backpacks open perfectly in order even.

Sadly they only open the first row of the backpack curious if there is a way to make the containers open at full size or the size you had when logging out? (but that might be complicated)

non the less thank you brother!
 
Any ideas?
Problem is probably in ProtocolGame::sendEmptyContainer. It sends some bytes that tries to replicate adding container to player. Bytes you copied from this commit ( df20cb58c5064dbe4cd607485b232598f961649d ) are for Tibia 12.72 ( forgottenserver/src/definitions.h at df20cb58c5064dbe4cd607485b232598f961649d · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/df20cb58c5064dbe4cd607485b232598f961649d/src/definitions.h#L29) ).
To make it work on 10.98, you must check ProtocolGame::sendContainer in 10.98 engine (including changes in NetworkMessage's addItem and addString):
and rewrite ProtocolGame::sendEmptyContainer to make it simulate sending of empty container using 10.98 protocol.
 

Similar threads

Back
Top