Sorry, I wasn't trying to suggest that a Bashido training script was better than your script.
Certainly a script that is not designed around controlling stats doesn't have parameters to specify and reach specific stats, but if you adjusted your script to include a Bashido training method, it would offer the best of both worlds. A new account with no money could easily max their stats with a script such as that. If it wasn't clear, Bushido rapidly increases all three stats, so it would be a great skill to utilize in swapping from warrior to mage, especially coupled with the ability to establish desired parameters that you already have.
Have you tried using Bashido as the skill of choice to manipulate stats? If not, you may be surprised by the effectiveness. I can't try your script, because don't have access to soulstones and I'm not sure the best way to get them honestly. If it's something that requires gold or an older account, then I'm out of luck.