should not just additem(), enter the code
Of course. I know it. I wrote it so just for shorting. There is a bug (or not) after using additem(x,y) many times it becomes not working. That what I said about.
So.
1. Im not sure, but it seems additem(x,y) works fine if you are using "x" incremently. For example, once you used additem(100,1) do not use "x" value less than 100 on next time. I.e. use 101 and higher. So, prepare all of items you need and input codes in increment order. Again, not sure but it seems so.
2. At other location the code works again. But few (5-7) times again.
P.S. All item ID's can be found in
scripts.aod, just search the name of item (use wiki). For example, search "Sniper Rifle". Search while you'll find the construction like
<Name>Sniper Rifle</Name> and look the ID before the name
<Item ID="909">. etc...