Item Pack script error

I'm using Dekita's Item Pack script. I've set up a pack, I used all the numbers, but only 1 item (The item that is in the "Items" category) works. The rest, which are Armor, don't work. They just show up like this, and give me an empty weapon instead:

 [IMG]http://i.imgur.com/7uM9qtB.png[/IMG]

As you can see, it's just an empty item. On top of that, it's not even an armor, it's a weapon, even though I don't have any weapons in the pack. :I

Here's my configuration for the pack:

[IMG]http://i.imgur.com/22Iz8t0.png[/IMG]
One mistake I see here is in the last line - Dekita specifically said that all numbers have to be present in the array, and you dropped the 999.


I don't know how the script works, but that might be enough to break the randomizer.


If that's not that, then post screenshots of the common event to see if you made a mistake there.
Hmm, I did try adding in the 999, but it's still not working...

Here's the event: 

[IMG]http://i.imgur.com/ZpaYJAs.png[/IMG]
I checked that script a very long time ago, but I remember that it got a wrong copy/paste line in the code itself. Some item category is messed up and instead of $data_weapons or $data_armors, it still uses $data_items, or something similar. Changing that line should fix the issue you are having, unless Dekita already fixed that typo in his script.


...


Yeah, just checked, still got the typo bug...


Search for this line in the script:

newi = $data_weapons[item[1]]There are two lines like this in the script.
Change the second one to this:

Code:
newi = $data_armors[item[1]]
This should fix the issue, I guess.

Original thread: https://forums.rpgmakerweb.com/threads/item-pack-script-error.39977/