Thread: Note on max cash

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Note on max cash 
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    This is manually a basic thread to just explain some stuff, This is common sense for the most of you, but might be informative for the others.

    So, some people were asking(I noticed I seen several threads asking) if you could change the max amount of cash. simply said: No you can't.

    Explaining why you can't do it: The max integer value java supports is 2,147,483,647. As you can see that's the max cash on RuneScape/anything related to it.

    Conclusion: A int will not go < -2,147,483,647 or > 2,147,483,647. (Once it's > 2,147,483,647 it will simply return in -2,147,483,647(-value).

    BESIDES:

    using the long primitive data type to load your items. But that would be a waste really.
     

  2. #2  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    30
    Posts
    4,860
    Thanks given
    3,715
    Thanks received
    2,228
    Rep Power
    5000
    Common Sense for anyone that's played rs or rsps.
     

  3. Thankful user:


  4. #3  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by The Rock View Post
    Common Sense for anyone that's played rs or rsps.
    The reason was not.
     

  5. #4  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    True, but like you said, the only way to go above (2^31)-1 [max int value] would be to go to a long data type. Which gives you 9,223,372,036,854,775,807 as a max amount. But I don't see anyone being able to use that much lol. So, if I were you, I would simply keep the int, then use a command or have a person who would trade tickets (or some other form of currency) for 1 billion coins. I've seen this used on a few servers. Thank you for providing the information, I'm surprised it hasn't been posted on here yet, unless it has?


    EDIT: I have a question, you know how our character saves use ints, could we use bytes for certain ones? Like player rights? I believe it would save memory, wouldn't it? Or would it not make much of a difference? Or could you not use this approach?

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
     

  6. #5  
    GANGNAM STYLE!

    Ohad's Avatar
    Join Date
    Aug 2011
    Posts
    3,179
    Thanks given
    152
    Thanks received
    352
    Rep Power
    1671
    well what if we change all the "int" to "long" then the max will be higher
     

  7. #6  
    Donator


    Join Date
    Jul 2009
    Posts
    1,875
    Thanks given
    119
    Thanks received
    233
    Rep Power
    408
    Or you can make it support multiple stacks of cash. Already been done.
     

  8. #7  
    Registered Member White Wolf's Avatar
    Join Date
    Apr 2012
    Posts
    66
    Thanks given
    0
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by iQuality View Post
    A int will not go < -2,147,483,647
    I think you mean "an int", and "will not go < -2,147,483,648".

    Quote Originally Posted by iQuality View Post
    So, some people were asking(I noticed I seen several threads asking) if you could change the max amount of cash. simply said: No you can't.
    Yes you can, you even said so right at the end of your post. The "simply said" is "yes you can, with a little bit of effort."

    P.S. - Welcome to Lesson 2 of the Java tutorials. Nobody reads these anymore?
    叡智
     

  9. #8  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    If you really need to go over max cash stack (which means your overall economy is horrible),
    just implement the money pouch with long value and get rid of "item" type coins.
     

  10. #9  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by White Wolf View Post
    I think you mean "an int", and "will not go < -2,147,483,648".


    Yes you can, you even said so right at the end of your post. The "simply said" is "yes you can, with a little bit of effort."

    P.S. - Welcome to Lesson 2 of the Java tutorials. Nobody reads these anymore?
    I guess you can't read it correctly cause your talking about a long..
     

  11. #10  
    Renown Programmer

    Join Date
    Dec 2010
    Posts
    2,876
    Thanks given
    508
    Thanks received
    1,898
    Rep Power
    5000
    Quote Originally Posted by iQuality View Post
    I guess you can't read it correctly cause your talking about a long..
    what... he's right
    never talk to me or my wife's son ever again
     

Page 1 of 2 12 LastLast

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. Max cash glitch
    By d0ddsy in forum Help
    Replies: 9
    Last Post: 07-11-2013, 01:00 PM
  2. [PI] Bypassing Max Cash
    By SodomizedU in forum Snippets
    Replies: 11
    Last Post: 09-05-2012, 09:31 PM
  3. Replies: 0
    Last Post: 09-18-2011, 08:17 AM
  4. How to Change Max Cash?
    By jukey in forum Help
    Replies: 5
    Last Post: 10-22-2010, 08:31 PM
  5. max cash
    By harmy in forum Help
    Replies: 3
    Last Post: 03-14-2009, 12:07 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •