Thread: Client Torch Flames?

Results 1 to 8 of 8
  1. #1 Client Torch Flames? 
    Registered Member

    Join Date
    May 2015
    Posts
    154
    Thanks given
    94
    Thanks received
    41
    Rep Power
    107
    Hi there,

    I'm currently creating a 414 server with older RS2 elements. I've re-made a background image for the client, but the torch flames need to move down so that they align. I'm wondering how to fix this, as well as a graphical glitch that happens when the client is on the main screen.

    Here're some pictures:






    The source can be found here: 414 RS2

    Thanks, & much appreciated! =)
    Reply With Quote  
     

  2. #2  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Age
    25
    Posts
    2,980
    Thanks given
    96
    Thanks received
    1,710
    Discord
    View profile
    Rep Power
    5000
    Looks like it's offset because of your toolbar at the top or something.

    The flames are coded in the client just change the location of them.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    May 2015
    Posts
    154
    Thanks given
    94
    Thanks received
    41
    Rep Power
    107
    Quote Originally Posted by _jordan View Post
    Looks like it's offset because of your toolbar at the top or something.

    The flames are coded in the client just change the location of them.
    Thanks for your reply =)
    Ive tried changing the values of where the flames should be in the client, but without avail. I looked up wherever 'flame' appeared in the client.

    Ive tried searching around too, however the posts are about removing the flames entirely instead of moving them.
    Reply With Quote  
     

  4. #4  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Age
    25
    Posts
    2,980
    Thanks given
    96
    Thanks received
    1,710
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by SnowEssence View Post
    Thanks for your reply =)
    Ive tried changing the values of where the flames should be in the client, but without avail. I looked up wherever 'flame' appeared in the client.

    Ive tried searching around too, however the posts are about removing the flames entirely instead of moving them.

    This is osrs client but you should have something similar. You can see where they set the x and y position of the flames on the screen.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    May 2015
    Posts
    154
    Thanks given
    94
    Thanks received
    41
    Rep Power
    107
    Quote Originally Posted by _jordan View Post
    This is osrs client but you should have something similar. You can see where they set the x and y position of the flames on the screen.
    I think I found where your referencing, but there doesnt seem to be an x & y value that I can alter.

    Here is the code:

    Spoiler for Game State:
    Code:
    	static final void processLoginScreenInput() {
    		Client.drawRunes();
    		if (Client.gameState == 10) {
    			int clickMode = Client.lastMouseAction;
    		    int x = Client.lastClickX - 202;
    		    int y = Client.lastClickY - 171;
    		    if (Client.loginScreenState == 0) {
    		    	int yOffset = 120;
    		    	int xOffset = 100;
    		    	if (clickMode == 1 && x >= xOffset - 75 && xOffset + 75 >= x && y >= yOffset - 20 && yOffset + 20 >= y) {
    		    		Client.loginScreenState = 3;
    		    		Client.loginScreenCursorPos = 0;
    		    	}
    		    	xOffset = 260;
    		    	if (clickMode == 1 && xOffset - 75 <= x && xOffset + 75 >= x && y >= yOffset - 20 && yOffset + 20 >= y) {
    		    		Client.loginScreenState = 2;
    		    		Client.loginScreenCursorPos = 0;
    		    		Client.titleboxLine3 = Client.nothing;
    		    		Client.titleboxLine2 = Client.enterYourUsernamePassowrd;
    		    		Client.titleboxLine1 = Client.nothing;
    		    	}
    		    } else if (Client.loginScreenState == 2) {
    		    	int offsetX = 100;
    		    	int offsetY = 60;
    		    	int offsetY2 = 150;
    		    	offsetY += 30;
    		    	if (clickMode == 1 && y >= offsetY - 15 && y < offsetY)
    		    		Client.loginScreenCursorPos = 0;
    		    	offsetY += 15;
    		    	if (clickMode == 1 && offsetY - 15 <= y && y < offsetY)
    		    		Client.loginScreenCursorPos = 1;
    		    	offsetY += 15;
    		    	if (clickMode == 1 && x >= offsetX - 75 && offsetX + 75 >= x && y >= offsetY2 - 20 && y <= offsetY2 + 20) {
    		    		Client.name = Client.name.method916().upperCase();
    		    		Client.setTitleboxText(Client.nothing, Client.connectingToServer, Client.nothing);
    		    		Client.setGameState(20);
    		    	} else {
    		    		offsetX = 260;
    		    		if (clickMode == 1 && x >= offsetX - 75 && x <= offsetX + 75 && offsetY2 - 20 <= y && offsetY2 + 20 >= y) {
    		    			Client.loginScreenState = 0;
    		    			Client.name = Client.nothing;
    		    			Client.password = Client.nothing;
    		    		}
    		    		while (Client.method725()) {
    		    			boolean valid = false;
    		    			for (int i_12_ = 0; Client.validCharacters.length() > i_12_; i_12_++) {
    		    				if (Client.keyChar == Client.validCharacters.charAt(i_12_)) {
    		    					valid = true;
    		    					break;
    						    }
    						}
    		    			if (Client.loginScreenCursorPos == 0) {
    		    				if (keyCode == 85 && Client.name.length() > 0)
    		    					Client.name = Client.name.substring(0, Client.name.length() - 1);
    		    				if (keyCode == 84 || keyCode == 80)
    		    					Client.loginScreenCursorPos = 1;
    		    				if (valid && Client.name.length() < 12)
    								Client.name = Client.name.add(Client.keyChar);
    		    			} else if (Client.loginScreenCursorPos == 1) {
    		    				if (keyCode == 85 && Client.password.length() > 0)
    		    					Client.password = Client.password.substring(0,(Client.password.length() - 1));
    		    				if (keyCode == 84 || keyCode == 80)
    		    					Client.loginScreenCursorPos = 0;
    		    				if (valid && Client.password.length() < 20)
    		    					Client.password = Client.password.add(Client.keyChar);
    		    			}
    		    		}
    		    	}
    		    } else if (Client.loginScreenState == 3) {
    		    	int height = 150;
    		    	int width = 180;
    		    	if (clickMode == 1 && x >= width - 75 && width + 75 >= x && height - 20 <= y && y <= height + 20)
    		    		Client.loginScreenState = 0;
    		    }  
    		}
    	}


    Spoiler for Draw Runes:
    Code:
    static final void drawRunes() {
    
    	    int i_9_ = 256;
    	    for (int i_10_ = 10; i_10_ < 117; i_10_++) {
    			int i_11_ = (int) (Math.random() * 100.0);
    			if (i_11_ < 50)
    			    anIntArray1238[i_10_ + (i_9_ - 2 << 7)] = 255;
    	    }
    	    for (int i_12_ = 0; i_12_ < 100; i_12_++) {
    			int i_13_ = (int) (Math.random() * 128.0) + 128;
    			int i_14_ = (int) (Math.random() * 124.0) + 2;
    			int i_15_ = i_14_ + (i_13_ << 7);
    			anIntArray1238[i_15_] = 192;
    	    }
    	    for (int i_16_ = 1; i_9_ - 1 > i_16_; i_16_++) {
    			for (int i_17_ = 1; i_17_ < 127; i_17_++) {
    			    int i_18_ = (i_16_ << 7) + i_17_;
    			    Client.anIntArray2160[i_18_]
    				= (anIntArray1238[i_18_ + 1]
    				   + anIntArray1238[i_18_ - 1]
    				   - (-anIntArray1238[i_18_ - 128]
    				      - anIntArray1238[i_18_ + 128])) / 4;
    			}
    	    }
    	    Client.anInt1353 += 128;
    	    if (Client.anInt1353 > Client.anIntArray9.length) {
    	    	int i_19_ = (int) (Math.random() * 12.0);
    	    	Client.anInt1353 -= Client.anIntArray9.length;
    			drawRune(Client.runes[i_19_]);
    	    }
    	    for (int i_20_ = 1; i_9_ - 1 > i_20_; i_20_++) {
    	    	for (int i_21_ = 1; i_21_ < 127; i_21_++) {
    			    int i_22_ = i_21_ + (i_20_ << 7);
    			    int i_23_ = ((Client.anIntArray2160[i_22_ + 128]) - (Client.anIntArray9[(Client.anIntArray9.length - 1 & i_22_ + Client.anInt1353)]) / 5);
    			    if (i_23_ < 0)
    			    	i_23_ = 0;
    			    anIntArray1238[i_22_] = i_23_;
    	    	}
    	    }
    	    for (int i_24_ = 0; i_24_ < i_9_ - 1; i_24_++)
    	    	Client.anIntArray331[i_24_] = Client.anIntArray331[i_24_ + 1];
    	    Client.anIntArray331[i_9_ - 1] = (int) ((Math.sin((double) Client.loopCycle / 14.0)
    	    		* 16.0) + (Math.sin((double) Client.loopCycle / 15.0)
    			    * 14.0) + (Math.sin((double) Client.loopCycle / 16.0) * 12.0));
    	    if (Client.anInt1251 > 0)
    	    	Client.anInt1251 -= 4;
    	    if (Client.anInt1331 > 0)
    	    	Client.anInt1331 -= 4;
    	    if (Client.anInt1251 == 0 && Client.anInt1331 == 0) {
    	    	int i_25_ = (int) (Math.random() * 2000.0);
    	    	if (i_25_ == 1)
    	    		Client.anInt1331 = 1024;
    	    	if (i_25_ == 0)
    	    		Client.anInt1251 = 1024;
    	    }
    	}


    There is one line that seems to change the height of the flames, though not that well: int i_9_ = 256; It only goes up but not down, & with pixelization.
    Reply With Quote  
     

  6. #6  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Age
    25
    Posts
    2,980
    Thanks given
    96
    Thanks received
    1,710
    Discord
    View profile
    Rep Power
    5000
    Yeah might just be a matter of debugging the values and seeing what changes what exactly.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    May 2015
    Posts
    154
    Thanks given
    94
    Thanks received
    41
    Rep Power
    107
    Quote Originally Posted by _jordan View Post
    Yeah might just be a matter of debugging the values and seeing what changes what exactly.
    I tried that, but no values seem to do what I want. .-. Only that one line which doesn't make the flames go down, it just crashes the client.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    May 2015
    Posts
    154
    Thanks given
    94
    Thanks received
    41
    Rep Power
    107
    Quote Originally Posted by _jordan View Post
    Yeah might just be a matter of debugging the values and seeing what changes what exactly.
    Which client is the one you showed in the picture? I've looked around, but I can't find an OSRS client that matches.

    Thanks
    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. Removing Flames in Client
    By Guthan in forum Tutorials
    Replies: 15
    Last Post: 07-24-2009, 10:42 PM
  2. Bringing back client flames
    By Riedell in forum Tutorials
    Replies: 17
    Last Post: 05-18-2009, 05:48 AM
  3. Client flames
    By Sucho in forum Requests
    Replies: 4
    Last Post: 09-13-2008, 08:07 PM
  4. Removing flames in a renamed client (correct way)
    By Shamon King in forum Tutorials
    Replies: 7
    Last Post: 06-25-2008, 09:46 AM
  5. client flames
    By oblivorato in forum Tutorials
    Replies: 10
    Last Post: 06-25-2008, 02:54 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
  •