Right now, the important thing was getting the script to actually work. I'd love to get it off the heartbeat event, if possible. The problem is that while it worked when I unequipped the item, it wouldn't work in combat. Now that I have a working script, I can start trying to cover up the exploits, but as a long time player, I know that players will find exploits, and use them, if they can.
I'm not sure how to go about destroying any items over the max stack yet, without destroying all of them. I only started on this in earnest yesterday though, and it's a generator free script, so working out the apparent bugs will take a little while to figure out. However, for a basic idea, it's ready for use. Improvements will be forthcoming, as I figure out how to go about it. I couldn't get your earlier suggestion to compile, and so went this route to see where I could get.
|