Welcome to GameBefore
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Xp interface bug fix

5 posters

Go down

Xp interface bug fix Empty Xp interface bug fix

Post by Jagge Fri Mar 23, 2012 10:11 am

This is mostly for Bink, but you can use this to fix your client too. I can upload client with this added if needed.
Download client.java: http://dl.dropbox.com/u/41816419/client.java
Download client.class: http://dl.dropbox.com/u/41816419/client.class (You don't need this if you know how to change your compile's java path. Very Happy)


On client.java: (no need to add this if you downloaded my client.java or client.class :p


Find:
Code:
else if (class9_1.interfaceType == 8 && (anInt1500 == class9_1.id || anInt1044 == class9_1.id || anInt1129 == class9_1.id) && anInt1501 == 100)

Replace with:
Code:
else if (class9_1.interfaceType == 8 && (anInt1500 == class9_1.id || anInt1044 == class9_1.id || anInt1129 == class9_1.id) && anInt1501 == 100) {
               int boxWidth = 0;
                    int boxHeight = 0;
                    RSFont textDrawingArea_2 = aTextDrawingArea_1271;
                    for (String s1 = class9_1.disabledMessage; s1.length() > 0;) {
                        int l7 = s1.indexOf("\\n");
                        String s4;
                        if (l7 != -1) {
                            s4 = s1.substring(0, l7);
                            s1 = s1.substring(l7 + 2);
                        } else {
                            s4 = s1;
                            s1 = "";
                        }
                        int j10 = textDrawingArea_2.getTextWidth(s4);
                        if (j10 > boxWidth) {
                            boxWidth = j10;
                        }
                        boxHeight += textDrawingArea_2.anInt1497 + 1;
                    }
                    boxWidth += 6;
                    boxHeight += 7;
                    int xPos = (k2 + class9_1.width) - 5 - boxWidth;
                    int yPos = l2 + class9_1.height + 5;
                    if (xPos < k2 + 5) {
                        xPos = k2 + 5;
                    }
                    if (xPos + boxWidth > k + class9.width) {
                        xPos = (k + class9.width) - boxWidth;
                    }
                    if (yPos + boxHeight > l + class9.height) {
                        yPos = (l + class9.height) - boxHeight;
                    }
               if(class9_1.inventoryhover){
                  if(xPos + boxWidth+k > 249){
                     xPos = 251 - boxWidth-k;
                  }
                  if(yPos+boxHeight+l >261 ){
                     yPos = 245 - boxHeight - l;
                  }
               }
               switch (class9_1.id) {
               case 9217:
               case 9220:
               case 9223:
               case 9226:
               case 9229:
               case 9232:
               case 9235:
               case 9238:
                  xPos -= 80;
                  break;
               case 9239:
                  yPos -= 100;
                  break;
               }
                    DrawingArea.method336(boxHeight, yPos, xPos, 0xFFFFA0, boxWidth);
                    DrawingArea.fillPixels(xPos, boxWidth, boxHeight, 0, yPos);
                    String s2 = class9_1.disabledMessage;
                    for (int j11 = yPos + textDrawingArea_2.anInt1497 + 2; s2.length() > 0; j11 += textDrawingArea_2.anInt1497 + 1) {//anInt1497
                        int l11 = s2.indexOf("\\n");
                        String s5;
                        if (l11 != -1) {
                            s5 = s2.substring(0, l11);
                            s2 = s2.substring(l11 + 2);
                        } else {
                            s5 = s2;
                            s2 = "";
                        }
                        textDrawingArea_2.method389(false, xPos + 3, 0, s5, j11);
                    }

Xp interface bug fix 6685f4c2a32e8e771596e82f40e908d4

Compile after. Very Happy


Last edited by Jagge on Sat Mar 24, 2012 1:51 pm; edited 4 times in total

Jagge
Mithril Member
Mithril Member

Posts : 31
Points : 4521
Join date : 2012-03-01

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by ciftci cent Fri Mar 23, 2012 10:14 am

Thank's we appriciate it, and also. bink said on skype "it was sweet of him" haha:-). Good job man Smile

ciftci cent
Server Moderator
Server Moderator

Posts : 14
Points : 4439
Join date : 2012-03-17

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by Deggerz Fri Mar 23, 2012 10:30 am

Ive set this Global Announcement...this is something that everyone needs to see Smile

Maybe also uploading this version...just because for some people it doesnt like to work for them Razz


Last edited by D3GG3RZ on Fri Mar 23, 2012 10:46 am; edited 1 time in total
Deggerz
Deggerz
Forum Owner
Ingame Moderator
Forum OwnerIngame Moderator

Posts : 240
Points : 4961
Join date : 2012-01-14
Age : 30
Location : Gates of hell

http://gbfvote.tk

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by Jagge Fri Mar 23, 2012 10:45 am

D3GG3RZ wrote:Set as Global Announcement...this is something that everyone needs to see Smile

Maybe also uploading this version...just because for some people it doesnt like to work for them Razz

I can upload client with this added, but I want to see Bink's permission to do it first. Smile

Jagge
Mithril Member
Mithril Member

Posts : 31
Points : 4521
Join date : 2012-03-01

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by Rocky Balboa Fri Mar 23, 2012 3:39 pm

Very nice! I hate that exp bug ..
Rocky Balboa
Rocky Balboa
Dragon Member
Dragon Member

Posts : 126
Points : 4733
Join date : 2012-01-15
Age : 30
Location : Brazil

http://www.gamebefore.net

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by Bink Sat Mar 24, 2012 11:58 am

fixed it:) thanks!
Bink
Bink
Server Owner
Server Owner

Posts : 185
Points : 4770
Join date : 2012-01-14
Age : 112
Location : Netherlands

http://Www.gamebefore.net

Back to top Go down

Xp interface bug fix Empty Re: Xp interface bug fix

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum