Thread: [RUSE] Wanting to learn how to add charges to a item

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11  
    Donator

    Join Date
    Apr 2016
    Posts
    143
    Thanks given
    23
    Thanks received
    13
    Rep Power
    33
    Quote Originally Posted by oSurge View Post
    iv made a lot of progress because of you added both uncharged and charged variants, has the scythe deduct charges when used, return charges upon unloading, i tied it into the CrawsBow how its done on Ruse but now im stuck with this issue
    trying to get charges to save for scythe, if i logout
    ItemCharges
    52550=0:59,
    chargeend
    15000=0:100,
    chargeend

    this is from player file after i logout, if i change this to

    ItemCharges
    52550=0:59,
    15000=0:100,
    chargeend

    it saves here is a snip from SaveCharges.java for it https://gyazo.com/b2c8f8b935ae0928002189659b73c9a8

    what am i doing wrong? currently if i add charges to the scythe and log out when i log back in the charges are gone, unless i edit that in player file so its a issue with saving. butt i dont see what is wrong.

    also the 52550 = craws bow charges which saves when i log out and back in, its the fact that its doing crawsbow charges then chargend is making it not save.
    I'm glad your making some improvement. It seems you "may" have edited the boolean save method which is checked before auto saving is ran each time. You will need to remove that from public boolean save and move that into playerSaving.java. Should have some methods that you should already know. Example characters bank and friends list.

    Remove what you added inside save method and move that into playerSaving.java.
    Spoiler for Looking for a Unique 317?:

    Attached image
    Reply With Quote  
     

  2. #12  
    Registered Member
    Join Date
    May 2020
    Posts
    37
    Thanks given
    10
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Six Echo View Post
    I'm glad your making some improvement. It seems you "may" have edited the boolean save method which is checked before auto saving is ran each time. You will need to remove that from public boolean save and move that into playerSaving.java. Should have some methods that you should already know. Example characters bank and friends list.

    Remove what you added inside save method and move that into playerSaving.java.
    got it working by just changing the order of how SaveCharges.java saved them, i changed it so the end of the line was before the return and not in the loop
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. Want to learn how to code RSPS
    By lemon ammi in forum Help
    Replies: 2
    Last Post: 02-13-2019, 10:30 PM
  2. Replies: 13
    Last Post: 12-14-2017, 04:53 PM
  3. Want to learn how to program
    By Elitepete in forum Help
    Replies: 2
    Last Post: 07-03-2013, 02:51 PM
  4. Replies: 0
    Last Post: 01-26-2012, 11:00 PM
  5. Replies: 2
    Last Post: 05-17-2009, 06:57 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
  •