Thread: [Necrotic/Ruse2] Skilltab 10x hp and prayer

Results 1 to 6 of 6
  1. #1 [Necrotic/Ruse2] Skilltab 10x hp and prayer 
    Donator
    Morphus's Avatar
    Join Date
    Nov 2019
    Posts
    20
    Thanks given
    3
    Thanks received
    12
    Rep Power
    67
    Hello,

    I have been trying for days to remove the 10x hp and 10x prayer in the skill tab because it looks weird.
    But i just cant find the solution or the way to do it. I have looked at Skillmanager.java and even at client side Skill files. But i just cant find the line that sends the current level data/text to the skill tab.

    I want to that he divides the current level of prayer/hp by 10 so its shows the normal level in the skill tab.

    Anyone have suggestions how to do it?


    Reply With Quote  
     

  2. #2  
    Alyx RSPS - SOON

    TeJay's Avatar
    Join Date
    Jul 2017
    Posts
    543
    Thanks given
    143
    Thanks received
    200
    Discord
    TJ#5762
    Rep Power
    972
    Currently it multiplies the normal value by 10. I saw this code yesterday while doing some stuff but cant remember exactly what file. You'd best of start looking at the skilltab file where it shows all the skills data (level, xp etc.)
    Spoiler for Services:
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Donator
    Morphus's Avatar
    Join Date
    Nov 2019
    Posts
    20
    Thanks given
    3
    Thanks received
    12
    Rep Power
    67
    I have removed the 10x multiply of prayer/hp skill at Skillmanager.java
    It nows levels until 99 instead of 990 just like the other skills.
    But this makes stuff like damage from monsters broken or for example the the hp orb and hp bars,
    Because all the files are based on 10x hp and prayer. I could ofcourse change all the files but i dont wanna remove the 10x Prayer/ Health Bar/ Damage option for players.

    So i hoped to find solution that i could just change the 'Level Text' at the skill tab.
    Reply With Quote  
     

  4. #4  
    no


    Join Date
    Aug 2016
    Posts
    595
    Thanks given
    103
    Thanks received
    86
    Discord
    Goody#1937
    Rep Power
    242
    I wouldn't touch anything server side unless you want to deal with changing a looooot of stuff. On ruse v2 it's handled in the extractInterfaceValues method inside of Client.java. At the top of your method it should look something like this

    Code:
    if (j1 == 1) {
       k1 = currentStats[ai[l++]];
    }
    if (j1 == 2) {
        k1 = maxStats[ai[l++]];
    }
    You'll have to change it up a little bit, but i had success using this
    Code:
    if (j1 == 1) {
       int val = ai[l++];
       if(val == 3 || val == 5) {
          k1 = currentStats[val] / 10;
       } else {
          k1 = currentStats[val];
       }
    }

    Best excuse for scamming i've gotten yet



    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Donator
    Morphus's Avatar
    Join Date
    Nov 2019
    Posts
    20
    Thanks given
    3
    Thanks received
    12
    Rep Power
    67
    Quote Originally Posted by Goody View Post
    I wouldn't touch anything server side unless you want to deal with changing a looooot of stuff. On ruse v2 it's handled in the extractInterfaceValues method inside of Client.java. At the top of your method it should look something like this

    Code:
    if (j1 == 1) {
       k1 = currentStats[ai[l++]];
    }
    if (j1 == 2) {
        k1 = maxStats[ai[l++]];
    }
    You'll have to change it up a little bit, but i had success using this
    Code:
    if (j1 == 1) {
       int val = ai[l++];
       if(val == 3 || val == 5) {
          k1 = currentStats[val] / 10;
       } else {
          k1 = currentStats[val];
       }
    }

    You are my hero it worked!! thanks alot. Now i know where to look next time
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Nov 2014
    Posts
    99
    Thanks given
    12
    Thanks received
    40
    Rep Power
    36
    Little update which u can also use for max stats:

    if (j1 == 1) {
    k1 = currentStats[ai[l]];
    if (ai[l] == 3 || ai[l] == 5) {
    k1 /= 10;
    }
    l++;
    }
    if (j1 == 2) {
    k1 = maxStats[ai[l]];
    if (ai[l] == 3 || ai[l] == 5) {
    k1 /= 10;
    }
    l++;
    }
    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. [Pi] Hp and prayer orbs
    By EricFtw in forum Help
    Replies: 0
    Last Post: 11-04-2011, 05:40 PM
  2. Replies: 11
    Last Post: 10-06-2011, 10:40 PM
  3. New hp and prayer "orbs"
    By Eyfia in forum Show-off
    Replies: 6
    Last Post: 07-23-2011, 06:50 AM
  4. [PI] HP and Prayer Orbs
    By Mark in forum Help
    Replies: 5
    Last Post: 06-07-2011, 09:31 PM
  5. Shoes's Hp And Prayer Orb Help
    By Golden Hero in forum Help
    Replies: 0
    Last Post: 03-19-2011, 09:38 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
  •