Newbie Spellweaver
- Joined
- Jun 30, 2013
- Messages
- 43
- Reaction score
- 3
How to change to one item?
Code:
case WeaponConfig::ITEMID_BOXSET1:
{ const int maxItems = 6; int itemsArray[maxItems] = { 800100, 100995, 189958, 180025, 180023, 180020 }; int quantityArray[maxItems] = { 1, 1, 1, 1, 1, 1 }; // Quantity = [index] Items //add items to backpack wiInventoryItem wi; for (int i = 0; i < maxItems; i++) { wi.itemID = itemsArray[i]; wi.quantity = quantityArray[i]; BackpackAddItem(wi); }}break;