FOund a good xcript but there's one problem

If anyone is curious as to which script it is, it's the smithing script by richter_h however I don't exactly get what's wrong, when I attempted to run the test, I got the following error message:

"script 'Smithing' line 313: TypeError occurred.

superclass mismatch for class Weapon"

also I don't know what they meant by the extra bit for calling the smithing scene, with the extra scripting, anyone mind linking a tutorial video or carefully describing what's wrong?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please add a link to the script (preferably to a forum post or blog article where the script is discussed, which contains a link to the actual script).

Original thread: https://forums.rpgmakerweb.com/threads/found-a-good-xcript-but-theres-one-problem.42419/