Thread: Client Offset

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Client Offset 
    Extreme Donator Client Offset Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Well the client message area is kind of screwed.






    Need a fix for this.

    HINT: Look at space between type area and sent message.
    Reply With Quote  
     

  2. #2  
    Extreme Donator Client Offset Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Bump.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Dogreen's Avatar
    Join Date
    Jan 2014
    Posts
    600
    Thanks given
    55
    Thanks received
    142
    Rep Power
    105
    ?????????????????????????????????????????????????? ????????????????????????????????????????
    Reply With Quote  
     

  4. #4  
    Extreme Donator Client Offset Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Quote Originally Posted by Blasterjax View Post
    ?????????????????????????????????????????????????? ????????????????????????????????????????


    ....
    Reply With Quote  
     

  5. #5  
    Boolean


    Join Date
    Feb 2014
    Posts
    733
    Thanks given
    91
    Thanks received
    22
    Rep Power
    253
    Quote Originally Posted by abyssal_whip View Post


    ....
    Change the x and y. in the drawchatarea.
    Reply With Quote  
     

  6. #6  
    Client God

    Join Date
    Aug 2009
    Posts
    3,127
    Thanks given
    3
    Thanks received
    617
    Rep Power
    907
    Reduce the x position by about 1 (maybe 2) in drawChatArea
    Reply With Quote  
     

  7. #7  
    Boolean


    Join Date
    Feb 2014
    Posts
    733
    Thanks given
    91
    Thanks received
    22
    Rep Power
    253
    Quote Originally Posted by K4rn4ge View Post
    Reduce the x position by about 1 (maybe 2) in drawChatArea
    His Y positions are off to look at it once more.
    Reply With Quote  
     

  8. #8  
    Extreme Donator Client Offset Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Quote Originally Posted by K4rn4ge View Post
    Reduce the x position by about 1 (maybe 2) in drawChatArea
    Where in this heap of shit...
    Code:
    	private void drawChatArea() {
    		int offsetY = (screenMode == 0 ? 0 : frameHeight - 165);
    		int chat_shadow = (screenMode == 0 ? -1 : 0);
    		if(screenMode == 0)
    			chatAreaProducer.initDrawingArea();
    		Rasterizer.lineOffsets = chatImage;
    		if(screenMode == 0 || (screenMode > 0 && needsPrompt())) {
    			chatBackground[0].drawSpriteWithOpacity((screenMode == 0 ? 7 : 0), (screenMode == 0 ? 7 : offsetY), (screenMode == 0 ? 256 : chatbox_transparency));
    			drawChatFrame();
    		} else {
    			DrawingArea.drawAlphaGradient2(7, 7 + offsetY, 506, 130, 0, 0, 70);
    		}
    		if (needsPrompt()) {
    			drawChatInterfaces();
    		} else {
    			int messageCount = 0;
    			DrawingArea.setDrawingArea(119 + offsetY, 8, 497, 8 + offsetY);
    			for (int index = 0; index < 500; index++)
    				if (chatMessages[index] != null) {
    					int chatType = chatTypes[index];
    					int privilege = chatPrivileges[index];
    					int yPos = (70 - messageCount * 14) + chatScroll + 45;
    					String name = chatNames[index];
    					
    					/**
    					 * Filtering
    					 */
    					
    					if (channelState[1] != 0 && privilege != 3 && privilege != 4) {
    						if (channelState[1] == 1 && chatType != 0 || channelState[1] == 1 && chatMessages[index].startsWith("[")
    								|| channelState[1] == 2 && chatType != 2
    								|| channelState[1] == 3 && chatType != 5 && chatType != 6
    								|| channelState[1] == 4 && !chatMessages[index].startsWith("[")) {
    							continue;
    						}
    					}
    					
    					/*if(Configuration.profanity_filter && chatMessages[index].startsWith("[")) {
    						chatMessages[index] = Censor.doCensor(chatMessages[index]);
    					}*/
    					
    					if (chatType == 0) {
    						if (yPos > 0 && yPos < 210)
    							newRegularFont.drawString(chatMessages[index], 11,
    									yPos + offsetY, getHexColor(0), chat_shadow);
    						messageCount++;
    					}
    					if ((chatType == 1 || chatType == 2)
    							&& (chatType == 1 || publicChatMode == 0 || publicChatMode == 1
    									&& isFriendOrSelf(name))) {
    						if (yPos > 0 && yPos < 210) {
    							int xPos = 11;
    							if (privilege > 0 && getRankIcon(privilege) != -1) {
    								chatIcon[getRankIcon(privilege)]
    										.drawSprite(xPos, yPos - chatIcon[getRankIcon(privilege)].myHeight + offsetY);
    								xPos += chatIcon[getRankIcon(privilege)].myWidth;
    							}
    							newRegularFont.drawString(name + ":", xPos, yPos + offsetY,
    									getHexColor(0), chat_shadow);
    							xPos += newRegularFont.getTextWidth(name) + 7;
    							newRegularFont.drawString(chatMessages[index],
    									xPos, yPos + offsetY, getHexColor(1), chat_shadow);
    						}
    						messageCount++;
    					}
    					if ((chatType == 3 || chatType == 7)
    							&& splitPrivateChat == 0
    							&& (chatType == 7 || privateChatMode == 0 || privateChatMode == 1
    									&& isFriendOrSelf(name))) {
    						if (yPos > 0 && yPos < 210) {
    							int xPos = 11;
    							newRegularFont
    									.drawString("From", xPos, yPos + offsetY, getHexColor(0), chat_shadow);
    							xPos += newRegularFont.getTextWidth("From ");
    							if (privilege > 0 && getRankIcon(privilege) != -1) {
    								chatIcon[getRankIcon(privilege)]
    										.drawSprite(xPos, yPos - chatIcon[getRankIcon(privilege)].myHeight + offsetY);
    								xPos += chatIcon[getRankIcon(privilege)].myWidth;
    							}
    							newRegularFont.drawString(name + ":", xPos, yPos + offsetY,
    									getHexColor(0), chat_shadow);
    							xPos += newRegularFont.getTextWidth(name) + 7;
    							newRegularFont.drawString(chatMessages[index],
    									xPos, yPos + offsetY, getHexColor(2), chat_shadow);
    						}
    						messageCount++;
    					}
    					if (chatType == 4
    							&& (tradeMode == 0 || tradeMode == 1
    									&& isFriendOrSelf(name))) {
    						if (yPos > 0 && yPos < 210)
    							newRegularFont.drawString(name + " "
    									+ chatMessages[index], 11, yPos + offsetY, getHexColor(3),
    									chat_shadow);
    						messageCount++;
    					}
    					if (chatType == 5 && splitPrivateChat == 0
    							&& privateChatMode < 2) {
    						if (yPos > 0 && yPos < 210)
    							newRegularFont.drawString(chatMessages[index], 11,
    									yPos + offsetY, getHexColor(1), chat_shadow);
    						messageCount++;
    					}
    					if (chatType == 6 && splitPrivateChat == 0
    							&& privateChatMode < 2) {
    						if (yPos > 0 && yPos < 210) {
    							newRegularFont.drawString("To " + name + ":", 11,
    									yPos + offsetY, getHexColor(0), chat_shadow);
    							newRegularFont.drawString(
    									chatMessages[index],
    									20 + newRegularFont.getTextWidth("To "
    											+ name), yPos + offsetY, getHexColor(2), chat_shadow);
    						}
    						messageCount++;
    					}
    					if (chatType == 8
    							&& (tradeMode == 0 || tradeMode == 1
    									&& isFriendOrSelf(name))) {
    						if (yPos > 0 && yPos < 210)
    							newRegularFont.drawString(name + " "
    									+ chatMessages[index], 11, yPos + offsetY, getHexColor(4),
    									chat_shadow);
    						messageCount++;
    					}
    				}
    			DrawingArea.defaultDrawingAreaSize();
    			if(screenMode == 0) {
    				DrawingArea.drawLine(121, 0x807660, 492, 7);
    			} else {
    				DrawingArea.drawLine(121 + offsetY, 0x6d6a57, 505, 7);
    				DrawingArea474.drawAlphaHorizontalLine2(7, 6 + offsetY, 405, 0x6d6a57, 256);
    			}
    			String playerName = myPlayer != null && myPlayer.name != null ? myPlayer.name
    					: TextClass.fixName(usernameInput);
    			int xPosOffset = playerRights > 0 ? 14 : 0;
    			
    			DrawingArea.setDrawingArea(140 + offsetY, 8, 509, 120 + offsetY);
    			if (playerRights > 0 && getRankIcon(playerRights) != -1)
    				chatIcon[getRankIcon(playerRights)].drawSprite(12, 122 + offsetY);
    			newRegularFont.drawString(playerName, 11 + xPosOffset, 133 + offsetY, getHexColor(0), chat_shadow);
    			newRegularFont.drawString(":",
    					newRegularFont.getTextWidth(playerName) + 24 + xPosOffset,
    					133 + offsetY, getHexColor(0), chat_shadow);
    			newRegularFont.drawString(inputString, 29 + xPosOffset
    					+ newRegularFont.getTextWidth(playerName), 133 + offsetY, getHexColor(1), chat_shadow);
    			newRegularFont.drawString(loopCycle % 40 < 20 ? "|" : "",
    					29 + xPosOffset + newRegularFont.getTextWidth(playerName)
    							+ newRegularFont.getTextWidth(inputString), 134 + offsetY,
    					(newRegularFont.getTextWidth(inputString) > 345 ? 0xFF0000
    							: getHexColor(1)), chat_shadow);
    			chatFrame[11].drawSprite(newRegularFont.getTextWidth(playerName)
    					+ 11 + xPosOffset, 123 + offsetY);
    			DrawingArea.defaultDrawingAreaSize();
    			
    			if(hoverPos[0] == 1)
    				emoticon[0].drawSpriteWithOpacity(497, 121 + offsetY, 128);
    			else
    				emoticon[0].drawSprite(497, 121 + offsetY);
    			
    			if(displayEmoticonBox) {
    				drawEmoticonBox();
    			}
    
    			chatScrollPos = messageCount * 14 + 7 + 5;
    			if (chatScrollPos < 111)
    				chatScrollPos = 111;
    			if(screenMode == 0)
    				drawScrollBar(114, chatScrollPos - chatScroll - 113, 7 + offsetY, 497, chatScrollPos);
    			else
    				drawTransparentScrollBar(114, chatScrollPos - chatScroll - 113, 7 + offsetY, 497, chatScrollPos);
    		}
    		if(screenMode == 0) {
    			chatAreaProducer.drawGraphics(338, super.graphics, 0);
    			gameScreenProducer.initDrawingArea();
    		}
    		Rasterizer.lineOffsets = gameScreen;
    	}
    Reply With Quote  
     

  9. #9  
    Extreme Donator Client Offset Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Nvm, close please. Got it.
    Reply With Quote  
     

  10. #10  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    Even though you have resolved this "bug" I still don't see how the offset is off, it looks fine too me? o.o
    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. Server & Client Download list
    By Link in forum Downloads
    Replies: 64
    Last Post: 01-28-2012, 08:32 PM
  2. Replies: 11
    Last Post: 06-24-2010, 09:26 PM
  3. Replies: 19
    Last Post: 01-10-2008, 10:15 PM
  4. Been editing my client for a few hours...
    By Sam Server in forum RS2 Client
    Replies: 26
    Last Post: 05-12-2007, 08:53 AM
  5. 377 client :D
    By Llama in forum RS2 Client
    Replies: 15
    Last Post: 05-07-2007, 12:38 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
  •