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

Purse/StoreInbox items not working with Hotkey

sururuts

Active Member
Joined
Sep 14, 2010
Messages
77
Reaction score
44
Im trying to use Items(runes) inside the Purse (StoreInbox) with Hotkey but nothing happens. (Im using TFS 1.4 and OTCv8)

The hotkey works if I move the item from the StoreInbox into a normal backpack.

giphy.gif


Anyone can help me on how to make the game recognize items inside the StoreInbox and let the player use them with hotkeys?
 

Need add function in server source to send information about items in "storeinbox" to Otclient
Need update functions of hotkeys in otclient source
 

Need add function in server source to send information about items in "storeinbox" to Otclient
Need update functions of hotkeys in otclient source
I Already have the function on TFS, do you know where should I look into otcv8 sources?

Or do you think it would be easier to just undo all this commit from TFS, and turn the storeInbox back into a normal container?
 
Yes you have the function in your TFS... I am just showing to you and saying:
Otclient doesn't recognize items inside the purse(storeitems) because the server doesn't send information to the client, and even if it did, the client would need to be modified to receive and read the information.
 
Yes you have the function in your TFS... I am just showing to you and saying:
Otclient doesn't recognize items inside the purse(storeitems) because the server doesn't send information to the client, and even if it did, the client would need to be modified to receive and read the information.
I Searched on otcv8 source, all I found was this on itemtype.h:

1682472323364.png
There is no other mentions on other files about ItemTypeAttr or any of the individual itemTypes there.
Do you think simply adding the itemType storeInbox there would solve? i really don't know anything on otc src structure
Also there is something strange, i don't think that's the right direction since you can move items to the StoreInbox and then remove their attribute "storeItem"

But even without the attribute otc won't let you use it with hotkey if its inside the Inbox
 
Yes you have the function in your TFS... I am just showing to you and saying:
Otclient doesn't recognize items inside the purse(storeitems) because the server doesn't send information to the client, and even if it did, the client would need to be modified to receive and read the information.
thats not how this works, using item by hotkey is handled by the server, so server is responsible for finding the item
So, do you know if reverting this whole #3186 commit would make the purse work with hotkey?

From my understanding on that commit the purse slot was changed from a normal container to a virtual one or something like this
great idea, we should start doing this in every repo, so instead of fixing the code we will revert it each time

fix:

CONST_SLOT_LAST = CONST_SLOT_STORE_INBOX,

or if you for any reasons dont want to change this globally (I did not check if that affects anything)
Game::findItemOfType is the right method to change that
 
great idea, we should start doing this in every repo, so instead of fixing the code we will revert it each time

fix:

CONST_SLOT_LAST = CONST_SLOT_STORE_INBOX,

or if you for any reasons dont want to change this globally (I did not check if that affects anything)
Game::findItemOfType is the right method to change that

Lmao, I thought of it because on my case i won't use the purse for anything,
I plan to use it just as an invisible container to hold hidden items/runes


I looked into the code you sent, and if I understand correctly what you mean is that CONST_SLOT_STORE_INBOX is left out of the slots since the last one is set as CONST_SLOT_AMMO that come before INBOX.



But on my case i have some extra slots, and I think the CONST_SLOT_STORE_INBOX is already included inside the slots, since it isn't the last anymore.

C++:
enum slots_t : uint8_t {
    CONST_SLOT_WHEREEVER = 0,
    CONST_SLOT_HEAD = 1,
    CONST_SLOT_NECKLACE = 2,
    CONST_SLOT_BACKPACK = 3,
    CONST_SLOT_ARMOR = 4,
    CONST_SLOT_RIGHT = 5,
    CONST_SLOT_LEFT = 6,
    CONST_SLOT_LEGS = 7,
    CONST_SLOT_FEET = 8,
    CONST_SLOT_RING = 9,
    CONST_SLOT_AMMO = 10,
    CONST_SLOT_STORE_INBOX = 11,
    CONST_SLOT_SKIN = 12,
    CONST_SLOT_SKIN2 = 13,
    CONST_SLOT_WING = 14,

    CONST_SLOT_FIRST = CONST_SLOT_HEAD,
    CONST_SLOT_LAST = CONST_SLOT_WING,
};
shouldn't my purse slot be working then?

Should I Assume fix is needed in the function you mentioned? (Game::findItemOfType)
 
Last edited:
anyone else with possible solutions?

Since changing CONST_SLOT_LAST apparently didn't work
Im now thinking that maybe the only possible solution to me would be reverting that whole #3186 commit store Inbox commit
 
Back
Top