Alles anzeigenI have a problem with Special Inventory cel K:
Bitte melden Sie sich an, um diesen Link zu sehen.
The problem is as follows, I managed to move items from the Normal Inventory to the special one, but adding items to Switchbot Sanii no longer works correctly.
I will leave info, pictures below:
The whole thing is from: def SelectItemSlot(self, itemSlotIndex):
So when the functions are like this here:
Bitte melden Sie sich an, um diesen Link zu sehen.
It works like this:
Bitte melden Sie sich an, um diesen Link zu sehen.
I mean, I can move from normal Inv to Special (the other way around doesn't matter)
But if I leave the functions like this: (it no longer works to move from normal Inv to special inventory, but in switchbot it works perfectly)
Bitte melden Sie sich an, um diesen Link zu sehen.
Implicit in the text is:
(only with this line can I add to the switchbot, but not from the normal inventory in particular)
Alles anzeigenCode
- # self.inventoryType = type
- # if self.inventoryType == 0:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_SKILL_BOOK_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
- # elif self.inventoryType == 2:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_STONE_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
- # elif self.inventoryType == 3:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_BOX_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
- # elif self.inventoryType == 4:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_EFSUN_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
- # elif self.inventoryType == 5:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_CICEK_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
- # else:
- # mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_UPGRADE_ITEMS_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
So it doesn't work to add in switcbot, but from the normal inventory, especially yes
I tried to make a new inventorytype with SLOT_TYPE_INVENTORY, I put it on 0 but also on 6 or after else, it doesn't want to either.
Someone who knows the code very well, please help me.
+======================================+
I noticed that in def SelectItemSlot(self, itemSlotIndex):
where is it
mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
If there from the player.SLOT_TYPE_INVENTORY if I exchange for example with anything else, SLOT_TYPE_SKILL_BOOK_INVENTORY anything, then I can put items from the normal inventory into the special one.
But the problem occurs with Switchbot, you can no longer add items to it (switchbot breasts)
If I leave classic, that is
mouseModule.mouseController.AttachObject(self, player.SLOT_TYPE_INVENTORY, itemSlotIndex, selectedItemVNum, itemCount)
It comes back the other way around, I can put it in switcbot but not in special inventory
I really don't understand what they both have to do...
Please someone who knows and wants to help me.
u try to add items from special inventory to switchbot? or am i missing something? i have no issues to add items from normal inventory to switchbot with my code above..