Solnes 2 Posted February 25, 2018 Report Share Posted February 25, 2018 (edited) NOTE: This has been released on several other sites, but I decided to post my own version. This is also my first snippet / tutorial, I hope I helped you in any way Source: PI Files: Playersave.java, Player.java, npcHandler.java Difficulity: 1/10 CHANGE WHERE I PUT ASDF TO YOUR CUSTOM POINT. Step 1: open Playersave.java (src/server/model/players) Search for this - } else if (token.equals("character-rights")) { Then you will see this - } else if (token.equals("character-rights")) { p.playerRights = Integer.parseInt(token2); Under that somewhere add this - } else if (token.equals("ASDF")) { p.ASDFPoints = Integer.parseInt(token2); In the same file search for this - characterfile.write("character-rights = ", 0, 19); Then you will see this - characterfile.newLine(); characterfile.write("character-rights = ", 0, 19); characterfile.write(Integer.toString(p.playerRights), 0, Integer.toString(p.playerRights).length()); Under that somewhere add this - characterfile.newLine(); characterfile.write("ASDF = ", 0, 9); characterfile.write(Integer.toString(p.ASDF), 0, Integer.toString(p.ASDF).length()); SAVE AND CLOSE Step 2: open Player.save (src/server/model/players) Search for - public int Keep searching until you see something like this - public int safeTimer = 0, degradeTime, KC, DC, bond, untbond, recoil = 0, kingQuest = 0, rMQ = 0, bMQ = 0, Then add this - public int safeTimer = 0, degradeTime, KC, DC, bond, untbond, recoil = 0, kingQuest = 0, rMQ = 0, bMQ = 0, ASDF, //<this is where your custom points go SAVE AND CLOSE That is it for that part of adding points to your character files. STEP 3: open npcHandler.java (src/server/model/npcs) Search for this - public void dropItems(int i) { Under that put this - if (npcs[i].npcType == NPCID) {// npc that you kill to give you the points c.ASDF += 1; c.sendMessage("You currently have "+ c.ASDF + " ASDF Points."); } SAVE AND COMPILE AND YOUR DONE. Edited February 25, 2018 by Solnes 1 Link to comment Share on other sites More sharing options...
darkk98 1 Posted August 27, 2019 Report Share Posted August 27, 2019 Simple but will help a lot of people Link to comment Share on other sites More sharing options...
Mr Extremez 1 Posted November 9, 2019 Report Share Posted November 9, 2019 Should hopefully help some newer people Link to comment Share on other sites More sharing options...
DragonicTrench 1 Posted December 15, 2019 Report Share Posted December 15, 2019 sounds legit Link to comment Share on other sites More sharing options...
 iresiqn 3 Posted December 16, 2019 Report Share Posted December 16, 2019 thanks Link to comment Share on other sites More sharing options...
sad 1 Posted March 14, 2020 Report Share Posted March 14, 2020 Nice man love your work ! 10 / 10. Link to comment Share on other sites More sharing options...
Darkblazt 1 Posted March 27, 2020 Report Share Posted March 27, 2020 Omg, thanks sir I need this. Link to comment Share on other sites More sharing options...
needaccountlike 0 Posted April 7, 2020 Report Share Posted April 7, 2020 Your tutorials are so fucking good I need this too Link to comment Share on other sites More sharing options...
aloneintyo 0 Posted April 13, 2020 Report Share Posted April 13, 2020 looks like this is easy to do not too hard to follow ty Link to comment Share on other sites More sharing options...
nondairy 0 Posted April 25, 2020 Report Share Posted April 25, 2020 Nice looking and informative guide you have made. Nice work. Link to comment Share on other sites More sharing options...
RSPSToplist 1 Posted April 25, 2020 Report Share Posted April 25, 2020 Thank you for this! Will use for sure. Link to comment Share on other sites More sharing options...
linksrs 0 Posted June 10, 2020 Report Share Posted June 10, 2020 this is gonna help me alot thank you, im new to all this haha Link to comment Share on other sites More sharing options...
bennehh 0 Posted July 8, 2020 Report Share Posted July 8, 2020 Loving all of the great guides on here, thanks Link to comment Share on other sites More sharing options...
dangercroc 0 Posted October 10, 2021 Report Share Posted October 10, 2021 Thanks would help Link to comment Share on other sites More sharing options...
TestySauce 1 Posted December 2, 2021 Report Share Posted December 2, 2021 appreciate this brother Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now