Thread: Need Help on Point system !

Results 1 to 5 of 5
  1. #1 Need Help on Point system ! 
    Registered Member
    Join Date
    Aug 2013
    Posts
    48
    Thanks given
    18
    Thanks received
    0
    Rep Power
    11
    I already added a skillpoint system and :killpoints to know how many skill points you have.
    but i have problems when relogging.
    Example: I have 150 SkillPoints But i Relogged and it became 0.
    Thats the problem. I can't fix it I need ur help guys. Thanks.

    My Skype:akosikuyakevz
    Reply With Quote  
     

  2. #2  
    Typical Swede


    Join Date
    Jul 2008
    Posts
    1,162
    Thanks given
    204
    Thanks received
    154
    Rep Power
    217
    Make it save in PlayerSave.java

    'Strange things did happen here no stranger would it be'
    ______________________________________________
    Reply With Quote  
     

  3. #3  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Exactly what he said. To do this however you need to make sure that when the file is being read, it's reading a line in the file to which you want the variable store such as so.

    Code:
    if(string.equals("point-system"))
       player.setPointSystem(Integer.parseInt(concatenatedString);
    To write to the file you would use something like this.

    Code:
    file.write("point-system = "+p.getPointSystem());
    file.newLine();
    Wrote this on here, don't hate on me for conventional use.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2013
    Posts
    48
    Thanks given
    18
    Thanks received
    0
    Rep Power
    11
    On my playerassistant.java. I added this code under "public void levelUp(int skill) {"
    Code:
    c.skillPoints += getLevelForXP(c.playerXP[skill]);
    		c.sendMessage("You gained " + getLevelForXP(c.playerXP[skill]) + " skill points.");
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2013
    Posts
    48
    Thanks given
    18
    Thanks received
    0
    Rep Power
    11
    BUMP. I'm back from coding and this is still my problem
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need Help on Point system !
    By KevPh in forum Guides
    Replies: 0
    Last Post: 08-09-2013, 01:37 AM
  2. [Req] Need help on swats system[req]
    By Evan H in forum Requests
    Replies: 0
    Last Post: 12-04-2009, 08:04 PM
  3. Replies: 8
    Last Post: 01-25-2008, 02:46 AM
  4. i need help on assassins creed.
    By Cloke in forum Console
    Replies: 3
    Last Post: 01-08-2008, 02:12 PM
  5. Need help on renamed client... lol
    By newservermaker in forum RS2 Client
    Replies: 4
    Last Post: 01-07-2008, 08:04 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •