Adding a custom class is pretty simple. In the left main tree view of the JPEXS Decompiler just Right Mouse Button click "scripts" than choose Add Class. Put a name of that class. Than let we say it will be named: MyCustomClass.
MyCustomClass - will be kept by the editor under main tree. And at that moment you don't do anything with that other than editing, means coding now... At the editing part you need to specify later after "package" where it would be placed. Editor will read that and place it in the correct tree view for you (drag & drop doesn't work).
If you start to edit MyCustomClass and let we say you want to add a custom Armor - so take a look and see at the editing:
Code:
package classes.Items.Armor
as all other armor-like items are being kept under scripts > classes > Items > Armor , right? And when you will hit SAVE button JPEXS editor placed it in that tree view location.
Well, if you want to change now the name of your class edit your MyCustomClass and change that name from editing window to "ACustomClass":
Code:
public class ACustomClass
And delete any left over old class name which may left. I can tell that there is just one name used per class, just by looking into other items scripts....
Now if you for example decide that ACustomClass is not gonna be an Armor but a one of the Guns, than edit that class again and change to the:
Code:
package classes.Items.Guns
And notice that JPEXS editor just moved the class script inside tree view into correct "folder" automatically for you. (from Armor to Guns)
You can also copy paste text while being inside editor window. Somehow importing scripts haven't worked for me also.
And what considers sellers list - i was wondering about it - but i haven't gone that far. So i won't even tell you which one class you should edit to actually change that sellers list. I simply had no need to find that out. But i think you need to locate that class first to be able to edit it for adding a totally new item.
Using Minerva is kinda pain in the a$$. And i think that modifying any seller list by adding item to buy would be a better option here. Or create new npc trader/seller. And if you are gonna go that far - maybe you will make a mod for a shop with a custom items. Who knows, right?
Screenshots:
View attachment 1279695
View attachment 1279696
View attachment 1279697
View attachment 1279698
View attachment 1279699
View attachment 1279700
View attachment 1279701
View attachment 1279702
View attachment 1279704
View attachment 1279705
View attachment 1279706
View attachment 1279707
View attachment 1279708
View attachment 1279709