.To use it you need to do the following:
Set the cvar war3_buyitems_category to 1. This will enable the category system.
Next categorize all your items in your war3source or server.cfg. Here's a quick example (I don't run any default items on my server so don't blame me if they're not in the right categorys)
war3 ankh_itemcategory "Health"
war3 boot_itemcategory "Buff"
war3 claw_itemcategory "DMG"
war3 cloak_itemcategory "Buff"
war3 mask_itemcategory "Health"
war3 lace_itemcategory "Buff"
war3 orb_itemcategory "Buff"
war3 ring_itemcategory "Health"
war3 Health_itemcategory "Health"
war3 tome_itemcategory "XP"
war3 scroll_itemcategory "Health"
war3 glove_itemcategory "Buff"
war3 mole_itemcategory "Fun"
Now when someone types shopmenu on the server he should get the categorys first and then the items
.The current system is of course still lacking, for example you can't have any translations, but it's good enough for me so if somebody needs something more complex - be my guest. I'm guessing if you wanted proper translatable categorys you would need to add a native to add them like shopitems, change the CreateShopItem native to add the category and so on...
Edit: Something also not possible yet is putting items into multiple categorys. I might add that as soon as I need it






Logged
