MapleRoyals HP Washing Calculator

Discussion in 'Help & Advice' started by Suricates, Nov 23, 2015.

  1. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    Hi all,

    Just going to plug an update I made to my HP washing calculator. I updated the calculator to use all known values for MapleRoyals (believe it or not, this is not standardized across all private servers...).

    The data I used is directly from the code, with the exception of the job advancement gains, which I have not found posted code for. Ergo, for job advancement gains, I am using the old code known from a different private server. @Matt or someone want to confirm its correctness? :)

    Sources
    Level up AP / raw AP: http://royals.ms/forum/threads/double-hp-wash.1456/#post-5573
    Reset AP: http://royals.ms/forum/threads/fully-revised-hp-washing-guide.8286/#post-43414
    Job advancement: Unknown ...

    The calculator's biggest known flaw is that it assumes the Brawler Improve Max HP skill is maxed from level 30, although that is technically impossible. Therefore, if you are a Buccaneer, know that the results you see are a slight overestimate (probably by about 50 HP).

    In order to use the calculator, download it [redacted]. Extract the files, then drag the "hp-washing-standalone.html" file into your browser.

    It's kind of ugly and I don't have it hosted anywhere currently. If anyone wants to make it prettier/host it somewhere, feel free, all the code is [redcated]
     
    Last edited: Aug 8, 2023
    exults93, Platypi and Plenty like this.
  2. exults93
    Offline

    exults93 Member

    Joined:
    Jan 15, 2016
    Messages:
    22
    Likes Received:
    2
    Gender:
    Male
    Country Flag:
    nothing happens when i press "calculate washing requirements" :/
     
  3. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    What browser are you using? I've had a couple people tell me nothing is happening when they do it, but I can't reproduce the problem.

    You have all of the files, including the js file, correct? You cannot just download the HTML. You need all the files. Also, make sure you are using the HTML titled "hp-washing-standalone.html". The other one won't work, as it is designed to be hosted on a web site. The standalone is for using locally.

    Another thing you can do is do an "Inspect" (right click > inspect OR F12, usually). Then go to the "Sources" tab and ensure there is a file there called "hp-washing.js". If there's not, it means the javascript isn't being loaded (so it can't calculate it).
     
  4. exults93
    Offline

    exults93 Member

    Joined:
    Jan 15, 2016
    Messages:
    22
    Likes Received:
    2
    Gender:
    Male
    Country Flag:
    Yeah okay I did that , it seems the problem lies with the pirate code.

    " Uncaught ReferenceError: PIRATE_RESET is not defined - hp-washing.js:168 "

    I can run all the other classes with no problem.
     
  5. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    Thanks! It's been fixed and updated. Turns out I forgot to push that bug fix a while back, which is why it was working for me locally. It should work now.
     
  6. exults93
    Offline

    exults93 Member

    Joined:
    Jan 15, 2016
    Messages:
    22
    Likes Received:
    2
    Gender:
    Male
    Country Flag:
    Redownloaded and it works now, ty for a great tool and thanks for fixing it ^^
     
    Suricates likes this.
  7. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    No problem. Thanks for helping me find the bug!
     
  8. Gossamer
    Offline

    Gossamer Donator

    Joined:
    Apr 15, 2014
    Messages:
    433
    Likes Received:
    449
    Gender:
    Male
    I've been gathering some field data, since the "Leaked MapleRoyals" code doesn't seem to add up with the client's results.

    So far these are my results:

    Job Advancements:

    *1st Jobs*
    Warrior: 225 / 0 (Tested Correct)
    Magician: 0 / 125 (Tested Correct)
    Thief: 162.5 / 0 (Tested Correct)
    Archer: 162.5 / 0
    Pirate: 162.5 / 0

    *2nd Job*
    Spearman: 0/125 (Tested Correct)
    Fighter: 325/0 (Tested Correct)
    Magician: 0 / 475 (Tested Correct)
    Thief: 325 / 175 (Tested Correct)
    Archer: 325 / 175
    Pirate: 325 / 175

    *3rd Job*
    Page: 325/0 (Tested Correct)

    Still have a lot of data to gather, especially on Pirates, but hopefully this helps.

    Or... Check Here
     
    Last edited by a moderator: Aug 9, 2023
  9. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    Thanks for taking the time to check, @Gossamer :) I checked some myself, and they seemed consistent with the code. What did you find different?
     
  10. Gossamer
    Offline

    Gossamer Donator

    Joined:
    Apr 15, 2014
    Messages:
    433
    Likes Received:
    449
    Gender:
    Male
    The code claims that all warriors get 325/0 from 2nd-4th job advancement, but, from testing, Spearmen receive 0/125 on the actual client.
    I've also noticed some other discrepancies, but it could just be inaccurate data from players who don't know how to do math :3

    The spearman issue is legit, tho
     
    Last edited: Jan 25, 2016
  11. Suricates
    Offline

    Suricates Well-Known Member

    Joined:
    May 21, 2015
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    Location:
    Vancouver, British Columbia
    Country Flag:
    IGN:
    Suricates
    Level:
    12x
    Guild:
    Ascension
    meep i'm a meerkat
     
    Last edited: Aug 8, 2023
  12. Gossamer
    Offline

    Gossamer Donator

    Joined:
    Apr 15, 2014
    Messages:
    433
    Likes Received:
    449
    Gender:
    Male
    ah yes. that was the issue with it all. I remember when I read through the "Leaked MapleRoyals Source Code", and Pages and Spearmen were different.

    The code you're working from lists spearmen as getting 0/125 and Pages as 0/125
    The "Leaked MapleRoyals Code" lists all warriors as 325/0.

    From my findings, it seems that Spearmen get 0/125 and Pages get 325/0.

    So the difference with your findings is that Pages get 325/0.

    And the difference with my findings is that Spearmen get 0/125.

    I'll try to collect data from more pages. My current data is from one single page. and who knows. Maybe they thought they were a Page, but they were really a Fighter.

    Fighters get 325/0.

    Check out this thread: http://www.royals.ms/forum/threads/can-we-get-the-source-code-for-job-advacement-hp-mp-gains.45623/
     
    Last edited by a moderator: Aug 9, 2023
  13. Gossamer
    Offline

    Gossamer Donator

    Joined:
    Apr 15, 2014
    Messages:
    433
    Likes Received:
    449
    Gender:
    Male
    I'm finding that Gains are unique to each job advancement, for Wariors at least.

    Spearmen gain 0HP/125MP for 2nd job advance, and 325HP/0MP for 3rd advance.

    Pages gain both HP and MP for 2nd job (not sure how much yet), and gain 325HP/0MP for 3rd job.
     
    Last edited by a moderator: Aug 9, 2023

Share This Page