Hey guys!
When I initially got the morytania source, I straight away went about adding my own point systems. After I was done I moved on to more important content thinking my job was complete. HOWEVER, after going back and investigating it would appear the two point systems I created work but when a player purchases an item, it resets their points to the negative equivalent of the item they purchased. So if they purchased bandos tassets for 200 points they now have -200 points.
SMFH right?
So I went about reading about how the working point systems work within the source. For some reason some of the point systems load through PointsHandler, and some directly through the Player file. I paid GOON to fix my prestige points, however this problem remains.
Why is this happening? Currently the points in question are loading through the player class, and I checked all the classpaths in playerloading, playersaving, and shop.java and they are all loading through the player file and not the pointshandler file. When I tried using the pointshandler file to load these points Eclipse was telling me that the int was being used improperly, even though it was matching the working existing point systems.
Any advice or explanation of how to add points properly is welcome! Thanks for reading
PS. I suppose I should clarify in my player saving class it uses json
this is whats in my player loading class:
Code:
if (reader.has("rift-points")) {
player.setRiftPoints(reader.get("rift-points").getAsInt());
}
and this is in my player saving:
Code:
object.addProperty("rift-points", new Integer(player.getRiftPoints()));
Im fairly certain the issue does not reside within my shop class but if you want those posted I will