Thread: If item amount is above 999 change color to white.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 If item amount is above 999 change color to white. 
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    How can I make my item amount text change from color if it's above 999 and above 999999?
    I have looked everywhere, but I couldn't find it and I don't even know if it's in the client or server, I think in the server.
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    478
    Thanks given
    105
    Thanks received
    42
    Rep Power
    15
    Client side. If I remember I believe the M for million is near the top of client.java. not positive though.
    Attached image
    Quote my post for me to see your reply.
    Discord: tiller#2854

    Reply With Quote  
     

  3. #3  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Client sided.

    drawInterface method

    Search for intToKOrMil

    Should see something like this:


    Code:
    smallText.method385(0xFFFFFF, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    0xFFFFFF is the color

    k10 is the amount of the stacked item

    so you'd probably do like

    Code:
    if (k10 > 999 && k10 < 100000) {
    smallText.method385(some color, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    } else if (k10 > 999999 && k10 < 10000000) {
    smallText.method385(some other color, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    }
    Reply With Quote  
     

  4. #4  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Vesia View Post
    Client sided.

    drawInterface method

    Search for intToKOrMil

    Should see something like this:


    Code:
    smallText.method385(0xFFFFFF, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    0xFFFFFF is the color

    k10 is the amount of the stacked item

    so you'd probably do like

    Code:
    if (k10 > 999 && k10 < 100000) {
    smallText.method385(some color, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    } else if (k10 > 999999 && k10 < 10000000) {
    smallText.method385(some other color, intToKOrMil(k10), j6 + 9 + j7, k5 + k6);
    }
    Thank you for the clear answer, I have one question more though.
    When should it say k: at 1.000, 10.000 or 100.000
    and when should it say m? at 10.000.000 or 100.000.000
    Attached image
    Reply With Quote  
     

  5. #5  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Quote Originally Posted by xX4m4zingXx View Post
    Thank you for the clear answer, I have one question more though.
    When should it say k: at 1.000, 10.000 or 100.000
    and when should it say m? at 10.000.000 or 100.000.000
    K starts when you hit 100k
    M starts when you hit 10m
    Reply With Quote  
     

  6. #6  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Vesia View Post
    K starts when you hit 100k
    M starts when you hit 10m
    Then it's working, thank you.
    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Bump
    Attached image
    Reply With Quote  
     

  8. #8  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Quote Originally Posted by xX4m4zingXx View Post
    Bump
    ....
    Reply With Quote  
     

  9. #9  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Vesia View Post
    ....
    Sorry.
    Attached image
    Reply With Quote  
     

  10. #10  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Quote Originally Posted by xX4m4zingXx View Post
    Sorry.
    You bumped it when I already gave you a clear answer?
    Reply With Quote  
     

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. Replies: 7
    Last Post: 05-29-2013, 09:00 AM
  2. Replies: 11
    Last Post: 04-29-2013, 11:09 AM
  3. Replies: 11
    Last Post: 06-21-2012, 05:41 AM
  4. Claim item if total level is max
    By Cryption in forum Help
    Replies: 1
    Last Post: 01-23-2012, 06:18 PM
  5. Replies: 6
    Last Post: 12-20-2009, 03:00 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
  •