Thread: Run Orb Draining Help

Results 1 to 4 of 4
  1. #1 Run Orb Draining Help 
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    My run orb stays at 100 when running any idea how to fix

    Code:
    public boolean runClicked = false;
    	public void drawRunOrb() {
    		Sprite orb = (runClicked ? runOrb2 : runOrb1);
    		Sprite icon = (runClicked ? runIcon2 : runIcon1);
    		int x = isFullScreen ? 358+extraWidth : 0;
    		int y = isFullScreen ? +32 : 0;
    		int x2 = isFullScreen ? extraWidth-160 : 0;
    		int y2 = isFullScreen ? +36 : 0;
    		int xPos = isFullScreen ? 387+extraWidth-5 : 0;
    		int xPosTXT = isFullScreen ? 335+extraWidth-5 : 0;
    		int yPos = isFullScreen ? +32 : 0;
    		if(isFullScreen) {
    			hoveredEmpty = new Sprite("GameFrame/Orbs/1127");
    		} else {
    			hoveredEmpty = new Sprite("GameFrame/Orbs/hoveredempty");
    		}
    			emptyOrb.drawSprite(185+x, 85+y);
    		if (super.mouseX > 713+x2 && super.mouseX < 765+x2 && super.mouseY > 83+y2 && super.mouseY < 118+y2){
    				hoveredEmpty.drawSprite(185+x, 85+y);
    		}
    		orb.drawSprite(188+xPos, 88+yPos);
    		icon.drawSprite(195+xPos, 93+yPos);
    		int colour;
    		colour = 65280;
    		smallText.method382(colour, 229+xPosTXT, "100", 111+yPos, true);
    	}
    Sprite wise i have the orbs just need help on the draining methood :/
    Reply With Quote  
     

  2. #2  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,742
    Thanks given
    64
    Thanks received
    686
    Discord
    View profile
    Rep Power
    1032
    Quote Originally Posted by Zyerah View Post
    My run orb stays at 100 when running any idea how to fix

    Code:
    public boolean runClicked = false;
    	public void drawRunOrb() {
    		Sprite orb = (runClicked ? runOrb2 : runOrb1);
    		Sprite icon = (runClicked ? runIcon2 : runIcon1);
    		int x = isFullScreen ? 358+extraWidth : 0;
    		int y = isFullScreen ? +32 : 0;
    		int x2 = isFullScreen ? extraWidth-160 : 0;
    		int y2 = isFullScreen ? +36 : 0;
    		int xPos = isFullScreen ? 387+extraWidth-5 : 0;
    		int xPosTXT = isFullScreen ? 335+extraWidth-5 : 0;
    		int yPos = isFullScreen ? +32 : 0;
    		if(isFullScreen) {
    			hoveredEmpty = new Sprite("GameFrame/Orbs/1127");
    		} else {
    			hoveredEmpty = new Sprite("GameFrame/Orbs/hoveredempty");
    		}
    			emptyOrb.drawSprite(185+x, 85+y);
    		if (super.mouseX > 713+x2 && super.mouseX < 765+x2 && super.mouseY > 83+y2 && super.mouseY < 118+y2){
    				hoveredEmpty.drawSprite(185+x, 85+y);
    		}
    		orb.drawSprite(188+xPos, 88+yPos);
    		icon.drawSprite(195+xPos, 93+yPos);
    		int colour;
    		colour = 65280;
    		smallText.method382(colour, 229+xPosTXT, "100", 111+yPos, true);
    	}
    Sprite wise i have the orbs just need help on the draining methood :/
    Code:
    smallText.method382(colour, 229+xPosTXT, "100", 111+yPos, true);
    Your orb is displaying a static 'count'.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Zion View Post
    Code:
    smallText.method382(colour, 229+xPosTXT, "100", 111+yPos, true);
    Your orb is displaying a static 'count'.
    How would i go about changing it to display current run energy, if you wouldn't mind helping
    Reply With Quote  
     

  4. #4  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by Zyerah View Post
    How would i go about changing it to display current run energy, if you wouldn't mind helping
    simply change "100" to ur run energy. (""+whatever_the_variable_is_called_on_ur_clien t)
    ...
    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. Replies: 3
    Last Post: 06-15-2018, 12:47 PM
  2. Replies: 0
    Last Post: 09-08-2017, 08:42 PM
  3. Run Orb Help [PI]
    By Bellucheese in forum Help
    Replies: 1
    Last Post: 01-21-2014, 07:34 PM
  4. Orb draining problem please help!
    By D Dox in forum Help
    Replies: 4
    Last Post: 04-29-2011, 07:38 PM
  5. Replies: 1
    Last Post: 09-17-2009, 05:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •