Thread: Making The Chatbox Look like runescape's new one (renamed) HELP!

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 Making The Chatbox Look like runescape's new one (renamed) HELP! 
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Well I wanted to fix the chatbox but i couldn't figure it out here's a picture of it:


    Help or at least post something and when i'm finished with my 508-Look-A-Like project ill release it as open source!

    Please Help Will rep++ and it will be helpfull for other people too!
     

  2. #2  
    Community Veteran

    .Zach's Avatar
    Join Date
    Nov 2006
    Age
    29
    Posts
    1,852
    Thanks given
    40
    Thanks received
    50
    Rep Power
    613
    I know Java got me stoned did a tutorial...
     

  3. #3  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Quote Originally Posted by .Zach View Post
    I know Java got me stoned did a tutorial...
    yeah i know he did but it's non-renamed and i'm doing renamed
     

  4. #4  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    some one just help??
     

  5. #5  
    Registered Member
    gamerx's Avatar
    Join Date
    May 2008
    Posts
    310
    Thanks given
    12
    Thanks received
    4
    Rep Power
    355
    Cant you just rename it??
    I arnt sure how to rename it but im guessing its 100% possible, also jaut try looking for an array or whatever that sets the position of the scroolbar, also if you have custom sprites then it must draw the arrows too... so you might have to move them too
    Spoiler for Awesome List:

    • [Only registered and activated users can see links. ], You are kick-ass
    • [Only registered and activated users can see links. ], FTW < just ftw
    • [Only registered and activated users can see links. ], Thanks for sprites
    • [Only registered and activated users can see links. ], im sad you left
    • Avatar Realms, thanks for your help
    • 1337, umm, yeah...
     

  6. #6  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    It's also somewhere else besides there. Coco.
    I have done it without JGMS, want me to help you?


    [Only registered and activated users can see links. ]
     

  7. #7  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Quote Originally Posted by Stewart View Post
    It's also somewhere else besides there. Coco.
    I have done it without JGMS, want me to help you?
    yes please
     

  8. #8  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    It may be hard since I ain't got MSN(won't install on my computer).
    Post your drawChatArea method here. I will fix it.


    [Only registered and activated users can see links. ]
     

  9. #9  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Quote Originally Posted by Stewart View Post
    It may be hard since I ain't got MSN(won't install on my computer).
    Post your drawChatArea method here. I will fix it.
    here you go:
    Code:
    private void drawChatArea()
        {
            aRSImageProducer_1166.initDrawingArea();
            Texture.anIntArray1472 = anIntArray1180;
            chatBack.method346(0, 0);
            if(messagePromptRaised)
            {
                chatTextDrawingArea.drawText(0, aString1121, 40, 239);
                chatTextDrawingArea.drawText(128, promptInput + "*", 60, 239);
            } else
            if(inputDialogState == 1)
            {
                chatTextDrawingArea.drawText(0, "Enter amount:", 40, 239);
                chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 60, 239);
            } else
            if(inputDialogState == 2)
            {
                chatTextDrawingArea.drawText(0, "Enter name:", 40, 239);
                chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 60, 239);
            } else
            if(aString844 != null)
            {
                chatTextDrawingArea.drawText(0, aString844, 40, 239);
                chatTextDrawingArea.drawText(128, "Click to continue", 60, 239);
            } else
            if(backDialogID != -1)
                drawInterface(0, 0, RSInterface.interfaceCache[backDialogID], 0);
            else
            if(dialogID != -1)
            {
                drawInterface(0, 0, RSInterface.interfaceCache[dialogID], 0);
            } else
            {
                TextDrawingArea textDrawingArea = aTextDrawingArea_1271;
                int j = 0;
                DrawingArea.setDrawingArea(100, 0, 463, 0);
                for(int k = 0; k < 100; k++)
                    if(chatMessages[k] != null)
                    {
                        int l = chatTypes[k];
                        int i1 = (90 - j * 14) + anInt1089;
                        String s1 = chatNames[k];
                        byte byte0 = 0;
                        if(s1 != null && s1.startsWith("@[email protected]"))
                        {
                            s1 = s1.substring(5);
                            byte0 = 1;
                        }
                        if(s1 != null && s1.startsWith("@[email protected]"))
                        {
                            s1 = s1.substring(5);
                            byte0 = 2;
                        }
                        if(l == 0)
                        {
                            if(i1 > 0 && i1 < 100)
                                textDrawingArea.method385(0, chatMessages[k], i1, 4);
                            j++;
                        }
                        if((l == 1 || l == 2) && (l == 1 || publicChatMode == 0 || publicChatMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 100)
                            {
                                int j1 = 4;
                                if(byte0 == 1)
                                {
                                    modIcons[0].drawSprite(j1, i1 - 12);
                                    j1 += 14;
                                }
                                if(byte0 == 2)
                                {
                                    modIcons[1].drawSprite(j1, i1 - 12);
                                    j1 += 14;
                                }
                                textDrawingArea.method385(0, s1 + ":", i1, j1);
                                j1 += textDrawingArea.getTextWidth(s1) + 8;
                                textDrawingArea.method385(255, chatMessages[k], i1, j1);
                            }
                            j++;
                        }
                        if((l == 3 || l == 7) && splitPrivateChat == 0 && (l == 7 || privateChatMode == 0 || privateChatMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 100)
                            {
                                int k1 = 4;
                                textDrawingArea.method385(0, "From", i1, k1);
                                k1 += textDrawingArea.getTextWidth("From ");
                                if(byte0 == 1)
                                {
                                    modIcons[0].drawSprite(k1, i1 - 12);
                                    k1 += 14;
                                }
                                if(byte0 == 2)
                                {
                                    modIcons[1].drawSprite(k1, i1 - 12);
                                    k1 += 14;
                                }
                                textDrawingArea.method385(0, s1 + ":", i1, k1);
                                k1 += textDrawingArea.getTextWidth(s1) + 8;
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, k1);
                            }
                            j++;
                        }
                        if(l == 4 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 100)
                                textDrawingArea.method385(0x800080, s1 + " " + chatMessages[k], i1, 4);
                            j++;
                        }
                        if(l == 5 && splitPrivateChat == 0 && privateChatMode < 2)
                        {
                            if(i1 > 0 && i1 < 100)
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, 4);
                            j++;
                        }
                        if(l == 6 && splitPrivateChat == 0 && privateChatMode < 2)
                        {
                            if(i1 > 0 && i1 < 100)
                            {
                                textDrawingArea.method385(0, "To " + s1 + ":", i1, 4);
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, 12 + textDrawingArea.getTextWidth("To " + s1));
                            }
                            j++;
                        }
                        if(l == 8 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 100)
                                textDrawingArea.method385(0x7e3200, s1 + " " + chatMessages[k], i1, 4);
                            j++;
                        }
                    }
    
                DrawingArea.defaultDrawingAreaSize(); // text scrollbar
                anInt1211 = j * 14 + 7;
                if(anInt1211 < 95)
                    anInt1211 = 95;
                method30(97, anInt1211 - anInt1089 - 95, 0, 463, anInt1211);
                String s;
                if(myPlayer != null && myPlayer.name != null)
                    s = myPlayer.name;
                else
                    s = TextClass.fixName(myUsername);
    		int j4 = 4;
                                if(myPrivilege == 1)
                                {
                                    modIcons[0].drawSprite(j4, 99);
                                    j4 += 14;
                                }
                                if(myPrivilege == 2)
                                {
                                    modIcons[1].drawSprite(j4, 99);
                                    j4 += 14;
                                }
                textDrawingArea.method385(0, s + ":", 110, j4);
                textDrawingArea.method385(255, inputString + "*", 110, 2 + j4 + textDrawingArea.getTextWidth(s + ": "));
                DrawingArea.method339(97, 0, 479, 0);//97
            }
            if(menuOpen && menuScreenArea == 2)
                drawMenu();
            aRSImageProducer_1166.drawGraphics(357, super.graphics, 17);
            aRSImageProducer_1165.initDrawingArea();
            Texture.anIntArray1472 = anIntArray1182;
        }
     

  10. #10  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by AKA Carlos View Post
    here you go:
    Code:
    private void drawChatArea()
        {
            aRSImageProducer_1166.initDrawingArea();
            Texture.anIntArray1472 = anIntArray1180;
            chatBack.method346(0, 0);
            if(messagePromptRaised)
            {
                chatTextDrawingArea.drawText(0, aString1121, 56, 260);
                chatTextDrawingArea.drawText(128, promptInput + "*", 75, 260);
            } else
            if(inputDialogState == 1)
            {
                chatTextDrawingArea.drawText(0, "Enter amount:", 56, 260);
                chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 75, 260);
            } else
            if(inputDialogState == 2)
            {
                chatTextDrawingArea.drawText(0, "Enter name:", 56, 260);
                chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 60, 260);
            } else
            if(aString844 != null)
            {
                chatTextDrawingArea.drawText(0, aString844, 56, 260);
                chatTextDrawingArea.drawText(128, "Click to continue", 60, 260);
            } else
            if(backDialogID != -1)
                drawInterface(0, 0, RSInterface.interfaceCache[backDialogID], 0);
            else
            if(dialogID != -1)
            {
                drawInterface(0, 0, RSInterface.interfaceCache[dialogID], 0);
            } else
            {
                TextDrawingArea textDrawingArea = aTextDrawingArea_1271;
                int j = 0;
                DrawingArea.setDrawingArea(113, 0, 486, 0);
                for(int k = 0; k < 100; k++)
                    if(chatMessages[k] != null)
                    {
                        int l = chatTypes[k];
                        int i1 = (109 - j * 14) + anInt1089;
                        String s1 = chatNames[k];
                        byte byte0 = 0;
                        if(s1 != null && s1.startsWith("@[email protected]"))
                        {
                            s1 = s1.substring(5);
                            byte0 = 1;
                        }
                        if(s1 != null && s1.startsWith("@[email protected]"))
                        {
                            s1 = s1.substring(5);
                            byte0 = 2;
                        }
                        if(l == 0)
                        {
                            if(i1 > 0 && i1 < 120)
                                textDrawingArea.method385(0, chatMessages[k], i1, 4);
                            j++;
                        }
                        if((l == 1 || l == 2) && (l == 1 || publicChatMode == 0 || publicChatMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 120)
                            {
                                int j1 = 4;
                                if(byte0 == 1)
                                {
                                    modIcons[0].drawSprite(j1, i1 - 12);
                                    j1 += 14;
                                }
                                if(byte0 == 2)
                                {
                                    modIcons[1].drawSprite(j1, i1 - 12);
                                    j1 += 14;
                                }
                                textDrawingArea.method385(0, s1 + ":", i1, j1);
                                j1 += textDrawingArea.getTextWidth(s1) + 8;
                                textDrawingArea.method385(255, chatMessages[k], i1, j1);
                            }
                            j++;
                        }
                        if((l == 3 || l == 7) && splitPrivateChat == 0 && (l == 7 || privateChatMode == 0 || privateChatMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 120)
                            {
                                int k1 = 4;
                                textDrawingArea.method385(0, "From", i1, k1);
                                k1 += textDrawingArea.getTextWidth("From ");
                                if(byte0 == 1)
                                {
                                    modIcons[0].drawSprite(k1, i1 - 12);
                                    k1 += 14;
                                }
                                if(byte0 == 2)
                                {
                                    modIcons[1].drawSprite(k1, i1 - 12);
                                    k1 += 14;
                                }
                                textDrawingArea.method385(0, s1 + ":", i1, k1);
                                k1 += textDrawingArea.getTextWidth(s1) + 8;
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, k1);
                            }
                            j++;
                        }
                        if(l == 4 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 120)
                                textDrawingArea.method385(0x800080, s1 + " " + chatMessages[k], i1, 4);
                            j++;
                        }
                        if(l == 5 && splitPrivateChat == 0 && privateChatMode < 2)
                        {
                            if(i1 > 0 && i1 < 100)
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, 4);
                            j++;
                        }
                        if(l == 6 && splitPrivateChat == 0 && privateChatMode < 2)
                        {
                            if(i1 > 0 && i1 < 120)
                            {
                                textDrawingArea.method385(0, "To " + s1 + ":", i1, 4);
                                textDrawingArea.method385(0x800000, chatMessages[k], i1, 12 + textDrawingArea.getTextWidth("To " + s1));
                            }
                            j++;
                        }
                        if(l == 8 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
                        {
                            if(i1 > 0 && i1 < 120)
                                textDrawingArea.method385(0x7e3200, s1 + " " + chatMessages[k], i1, 4);
                            j++;
                        }
                    }
    
                DrawingArea.defaultDrawingAreaSize(); // text scrollbar
                anInt1211 = j * 14 + 7;
                if(anInt1211 < 113)
                    anInt1211 = 113;
                method30(112, anInt1211 - anInt1089 - 112, 0, 487, anInt1211);
                String s;
                if(myPlayer != null && myPlayer.name != null)
                    s = myPlayer.name;
                else
                    s = TextClass.fixName(myUsername);
            int j4 = 4;
                                if(myPrivilege == 1)
                                {
                                    modIcons[0].drawSprite(j4, 99);
                                    j4 += 14;
                                }
                                if(myPrivilege == 2)
                                {
                                    modIcons[1].drawSprite(j4, 99);
                                    j4 += 14;
                                }
                textDrawingArea.method385(0, s + ":", 124, j4);
                textDrawingArea.method385(255, inputString + "*", 124, 2 + j4 + textDrawingArea.getTextWidth(s + ": "));
                DrawingArea.method339(112, 0, 509, 0);//97
            }
            if(menuOpen && menuScreenArea == 2)
                drawMenu();
            aRSImageProducer_1166.drawGraphics(343, super.graphics, 8);
            aRSImageProducer_1165.initDrawingArea();
            Texture.anIntArray1472 = anIntArray1182;
        }
    Find this:aClass9_1059.
    Youll see a small bit of code. Replace that with this:
    Code:
                aClass9_1059.scrollPosition = scrollHeight - scrollPos - 77;
                if (super.mouseX > 448 && super.mouseX < 560 && super.mouseY > 332) {
                    method65(481, 112, super.mouseX - 17, super.mouseY - 347, aClass9_1059, 0, false, scrollHeight);
                }
    Tell me how it goes!


    [Only registered and activated users can see links. ]
     

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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •