Items & Slots
Posted: Sun Oct 05, 2008 1:06 pm
LE,
Can you (or anyone who's played with this) give us a quick refresher course on how "slots" work? I am trying to build starting_items for testing, and when I put your Bottomless Bag of Envy in slot 0, most of the time it does not show up on the character. The only way I get it to appear is to /summonitem 1 and then I can see it. When comparing the before/after slot configs, my starting_items slot setup is exactly what is expected, yet the item only shows visible in my inventory if I summon it in-game.
I have been able to get food/water to show up on a new character, but most of the time if I set it to slot 1 and 2 (since slot 0 should be the bag?), the food and water show up INSIDE the bag, at slot 1 and 2 of the bag. Noticing again after summon and placing in my inventory, there is something weird about the field character_items.bag_slot = 255 for items appearing in my normal 0-5 inventory slots. Seems the only way to get something to show up OUTSIDE a bag is to make it's bag_slot = the max + 1 slots inside the bag.
Horribly confusing. Can you give me a simplified description of how these should work?
TIA,
-J
Code says:
I have been assuming that in order to get something to appear in slot 2 of my 6-slot inventory, it's slot needs to be set to 50. otherwise, it'll show up inside some bag slot in slot1 - which if this is not a bag, puts it into some mysterious void from which there is no return. But this does not jive with /summonitem item placement. ~confused~
Can you (or anyone who's played with this) give us a quick refresher course on how "slots" work? I am trying to build starting_items for testing, and when I put your Bottomless Bag of Envy in slot 0, most of the time it does not show up on the character. The only way I get it to appear is to /summonitem 1 and then I can see it. When comparing the before/after slot configs, my starting_items slot setup is exactly what is expected, yet the item only shows visible in my inventory if I summon it in-game.
I have been able to get food/water to show up on a new character, but most of the time if I set it to slot 1 and 2 (since slot 0 should be the bag?), the food and water show up INSIDE the bag, at slot 1 and 2 of the bag. Noticing again after summon and placing in my inventory, there is something weird about the field character_items.bag_slot = 255 for items appearing in my normal 0-5 inventory slots. Seems the only way to get something to show up OUTSIDE a bag is to make it's bag_slot = the max + 1 slots inside the bag.
Horribly confusing. Can you give me a simplified description of how these should work?
TIA,
-J
Code says:
Code: Select all
#define NUM_INV_SLOTS 6
#define INV_SLOT1 0
#define INV_SLOT2 50
#define INV_SLOT3 100
#define INV_SLOT4 150
#define INV_SLOT5 200
#define INV_SLOT6 250