HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Inventory slot dummy icon?

12-14-2008, 05:06 AM#1
bowzerbro
Hi, I've been searching for about 2 to 3 hours for ONE thing. How to make sure a certain item always ends up in slot 6. I read somewhere that there is no way to place an item with triggers in a specific slot and you have to use dummy items to simulate empty item slots.
I've searched the forums several times and came up with nothing to the point more than people discussing there being a dummy icon somewhere but no mention of the name of it.
I've browsed through wc3 and wc3x mpq for the icon but found none.
I've googled a few times but google now days mostly comes up with anything but what you looked for.
I give up, my last hope is asking for it.
I do not want an alternative inventory system, not yet at least. I've only just started making my map and since I'm quite stubborn with design stuff I refuse to let the problem with item not being place in the proper slot go.
Thanks in advance to anyone who has an answer for me.
7:06 am ... -_-
12-14-2008, 06:35 AM#2
Ammorth
The only approach I could think of is to remove the item and then add the item to the unit with UnitAddItemToSlotById(whichUnit, ItemID, whichSlot) where whichUnit is the unit, ItemID is the integer ID of the item (ex: 'I000') and whichSlot is the slot in question (I believe 1-6, if not, then 0-5).

There is no GUI equivalence to this, so if you use GUI, you are going to have stick this in a custom script.
12-14-2008, 07:59 AM#3
bowzerbro
Would gui-jass addon work? Not sure if there still is or was one, I've not mapped in like 2 years :x Thanks for the info.
I'll probably have to learn jass anyway, a lot of guy stuff seem to have too much hassle. I know how much simpler scripting can be so.. I guess I have no choice if I want my miner map to work properly.
Now I have to sleep :)
10 AM :P
UPDATE: Holy monkey dust man, it worked and I love not having to use huge GUI scripts for a simple thing as inv location position. Thank you, now I have to find more problems which I can request assistance with ;D

Stats STR,AGI and INT are used in HP regeneration speed and amount when resting in mining hut, mining chance to find gold, gold amount mined, movement speed, carry weight, gear requirements(for better pickaxes, hard hats and such) and.. thats it.
Suggestions calculations for these using stats with a initial value of 1,1,1 and maximum value of 100 or 250 would be helpful.
I'll have some sort of stats system later but right now I mostly have to get basics working ;p
Thanks again, and special extra thanks for any suggestions on calculations.
- bow