Thread: How would I go about making my HP into 10x?

Results 1 to 2 of 2
  1. #1 How would I go about making my HP into 10x? 
    Registered Member

    Join Date
    Sep 2011
    Posts
    5,121
    Thanks given
    1,333
    Thanks received
    1,795
    Rep Power
    1731
    Here's my DrawHpOrb method.

    Please don't give me the one where the hp is 990/990 in the stats tab.

    Code:
    		public void drawHPOrb() {
    		String OrbDirectory = signlink.findcachedir() + "Sprites/GameFrame/Orbs/";
           		String s1 = RSInterface.interfaceCache[4016].message;
            	s1 = s1.replaceAll("%", "");
            	int j = Integer.parseInt(s1);
            	String s2 = RSInterface.interfaceCache[4017].message;
    		int health;
            	s2 = s2.replaceAll("%", "");
            	int k = Integer.parseInt(s2);
            	int i = (int)(((double)j / (double)k) * 100D);
    		String cHP = RSInterface.interfaceCache[4016].message;
    			int currentHP = Integer.parseInt(cHP);
    		String mHP = RSInterface.interfaceCache[4017].message;
    			int maxHP2 = Integer.parseInt(mHP);
    		health = (int)(((double)currentHP / (double)maxHP2) * 100D);
    		int x = isFullScreen ? 363+extraWidth : 0;
    		int y = isFullScreen ? +32 : 0;
    
    		int xPos = isFullScreen ? 387+extraWidth : 0;
    		int xPosTXT = isFullScreen ? 335+extraWidth : 0;
    		int yPos = isFullScreen ? +32 : 0;
    		if(isFullScreen) {
    		emptyOrb = new Sprite("GameFrame/Orbs/ORBS 12");
    			} else {
    		emptyOrb = new Sprite("GameFrame/Orbs/emptyorb");
    		}
    		orbFill = new Sprite(OrbDirectory + "Orb 2.PNG", 27, getOrbFill(health));
    		/* Draws empty orb */
    		emptyOrb.drawSprite(170+x, 13+y);
    		/* Draws current HP text */
    		if(health <= 100 && health >= 75) {
    			smallText.method382(65280, 213+xPosTXT, cHP, 39+yPos, true);
    		}
    		else if(health <= 74 && health >= 50) {
    			smallText.method382(0xffff00, 213+xPosTXT, cHP, 39+yPos, true);
    		}
    		else if(health <= 49 && health >= 25) {
    			smallText.method382(0xfca607, 213+xPosTXT, cHP, 39+yPos, true);
    		}
    		else if(health <= 24 && health >= 0) {
    			smallText.method382(0xf50d0d, 213+xPosTXT, cHP, 39+yPos, true);
    		} else {
    			smallText.method382(65280, 213+xPosTXT, cHP, 39+yPos, true);
    		}
    		hitPointsFill.drawSprite(173+xPos, 16+yPos);
    		orbFill.drawSprite(173+xPos, 16+yPos);
    		/* Draws inside orb sprites */
    		if(i <= 20){
    			if(loopCycle % 20 < 10){
    		hitPointsIcon.drawSprite(179+xPos, 24+yPos);
    		}
    		} else {
    		hitPointsIcon.drawSprite(179+xPos, 24+yPos);
    		}
    	}
    Retired from RSPS. Please don't message me for services, sales or help. Apologies.
    Reply With Quote  
     

  2. #2  
    Donator

    Tringan's Avatar
    Join Date
    Feb 2011
    Age
    27
    Posts
    2,101
    Thanks given
    381
    Thanks received
    334
    Rep Power
    297
    smallText.method382(65280, 213+xPosTXT, cHP*10, 39+yPos, true);
    ?
    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] Constitution x10 Correctly
    By I'm A Jerk in forum Snippets
    Replies: 22
    Last Post: 08-07-2011, 10:10 PM
  2. Real Constitution.
    By TheRedArmy in forum Show-off
    Replies: 16
    Last Post: 07-25-2011, 07:45 AM
  3. (PI) Buying Constitution.
    By FusionFrenzi in forum Buying
    Replies: 3
    Last Post: 07-16-2011, 02:46 AM
  4. Constitution Orb
    By Red Hot in forum Configuration
    Replies: 14
    Last Post: 04-30-2010, 10:21 PM
  5. [601]Constitution Orb.
    By Dynamite in forum Show-off
    Replies: 13
    Last Post: 04-29-2010, 11:20 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
  •