Thread: Need help / 525 Gameframe - Offset minimap clicking / npcs/players/icons

Results 1 to 2 of 2
  1. #1 Need help / 525 Gameframe - Offset minimap clicking / npcs/players/icons 
    Donator


    Join Date
    May 2011
    Posts
    554
    Thanks given
    319
    Thanks received
    86
    Rep Power
    214
    Hello so my 525 minimap gameframe is offset on the minimap etc. -

    Imgur: The most awesome images on the Internet

    So when i click on the minimap my mouse clicks are super offset and when i turn around the npcs/players/icons follows with it.

    I've spend alot of hours trying to figure out what causes this and have minimized the npcs/players/icons following around but it's still there and the mouse clicking on minimap is still a problem too.

    If anyone got answers to this it would be awesome.


    Drawminimap method-

    Code:
        private void drawMinimap() {
            int xPosOffset = Configuration.clientSize == 0 ? 0 : Configuration.clientWidth - 246;
            if (Configuration.clientSize == 0) {
                mapAreaIP.initDrawingArea();
            }
            if (anInt1021 == 2) {
                if (Configuration.clientSize == 0) {
                    cacheSprite[19].drawSprite((Configuration.clientSize == 0 ? 32 : Configuration.clientWidth - 159),
                            (Configuration.clientSize == 0 ? 9 : 5));
                } else {
                    cacheSprite[44].drawSprite(Configuration.clientWidth - 181, 0);
                    cacheSprite[45].drawSprite(Configuration.clientWidth - 158, 7);
                }
                if (Configuration.clientSize == 0
                        ? super.mouseX >= 517 && super.mouseX <= 545 && super.mouseY >= 45 && super.mouseY <= 70
                        : super.mouseX >= Configuration.clientWidth - 185 && super.mouseX <= Configuration.clientWidth - 158
                                && super.mouseY >= 40 && super.mouseY <= 66) {
                    cacheSprite[23].drawSprite(
                            loadOrbs && Configuration.clientSize == 0 ? 1 : Configuration.clientWidth - 185,
                            Configuration.clientSize == 0 ? 46 : 41);
                } else {
                    cacheSprite[22].drawSprite(
                            loadOrbs && Configuration.clientSize == 0 ? 1 : Configuration.clientWidth - 185,
                            Configuration.clientSize == 0 ? 46 : 41);
                }
                if (Configuration.clientSize != 0 && changeTabArea) {
                    if (super.mouseX >= Configuration.clientWidth - 26 && super.mouseX <= Configuration.clientWidth - 1
                            && super.mouseY >= 2 && super.mouseY <= 24 || tabID == 15) {
                        cacheSprite[27].drawSprite(Configuration.clientWidth - 25, 2);
                    } else {
                        cacheSprite[27].drawARGBSprite(Configuration.clientWidth - 25, 2, 165);
                    }
                }
                if (loadOrbs)
                    loadAllOrbs(Configuration.clientSize == 0 ? 0 : Configuration.clientWidth - 217);
                if (menuOpen) {
        			drawMenu(Configuration.clientSize == 0 ? 516 : 0, 0);
        		}
                if (Configuration.clientSize == 0) {
                    gameScreenIP.initDrawingArea();
                }
                return;
            }
            
           
                  
            
            
            int i = minimapInt1 + minimapInt2 & 0x7ff;
            int j = 48 + myPlayer.x / 32;
            int l2 = 464 - myPlayer.y / 32;
    //Minimap offset stuff - E-U
            minimapImage.method352(151, i, anIntArray1229, 256 + minimapInt3, anIntArray1052, l2,
                    (Configuration.clientSize == 0 ? 10 : 9), 
                    (Configuration.clientSize == 0 ? 32 : Configuration.clientWidth - 157), 144, j);
            for (int j5 = 0; j5 < anInt1071; j5++) {
                int k = (anIntArray1072[j5] * 4 + 2) - myPlayer.x / 32;
                int i3 = (anIntArray1073[j5] * 4 + 2) - myPlayer.y / 32;
                markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
            }
            for (int k5 = 0; k5 < 104; k5++) {
                for (int l5 = 0; l5 < 104; l5++) {
                    NodeList class19 = groundArray[plane][k5][l5];
                    if (class19 != null) {
                        int l = (k5 * 4 + 2) - myPlayer.x / 32;
                        int j3 = (l5 * 4 + 2) - myPlayer.y / 32;
                        markMinimap(mapDotItem, l, j3);
                    }
                }
            }
            for (int i6 = 0; i6 < npcCount; i6++) {
                Npc npc = npcArray[npcIndices[i6]];
                if (npc != null && npc.isVisible()) {
                    EntityDef entityDef = npc.desc;
                    if (entityDef.childrenIDs != null) {
                        entityDef = entityDef.method161();
                    }
                    if (entityDef != null && entityDef.aBoolean87 && entityDef.aBoolean84) {
                        int i1 = npc.x / 32 - myPlayer.x / 32;
                        int k3 = npc.y / 32 - myPlayer.y / 32;
                        markMinimap(mapDotNPC, i1, k3);
                    }
                }
            }
            for (int j6 = 0; j6 < playerCount; j6++) {
                Player player = playerArray[playerIndices[j6]];
                if (player != null && player.isVisible()) {
                    int j1 = player.x / 32 - myPlayer.x / 32;
                    int l3 = player.y / 32 - myPlayer.y / 32;
                    boolean flag1 = false;
                    boolean flag3 = false;
                    String clanname;
                    for (int j3 = 0; j3 < clanList.length; j3++) {
                        if (clanList[j3] == null)
                            continue;
                        clanname = clanList[j3];
                        if (clanname.startsWith("<clan"))
                            clanname = clanname.substring(clanname.indexOf(">") + 1, clanname.length());
                        if (!clanname.equalsIgnoreCase(player.name))
                            continue;
                        flag3 = true;
                        break;
                    }
                    long l6 = TextClass.longForName(player.name);
                    for (int k6 = 0; k6 < friendsCount; k6++) {
                        if (l6 != friendsListAsLongs[k6] || friendsNodeIDs[k6] == 0)
                            continue;
                        flag1 = true;
                        break;
                    }
                    boolean flag2 = false;
                    if (myPlayer.team != 0 && player.team != 0 && myPlayer.team == player.team) {
                        flag2 = true;
                    }
                    if (flag1) {
                        markMinimap(mapDotFriend, j1, l3);
                    } else if (flag3) {
                        markMinimap(mapDotClan, j1, l3);
                    } else if (flag2) {
                        markMinimap(mapDotTeam, j1, l3);
                    } else {
                        markMinimap(mapDotPlayer, j1, l3);
                    }
                }
            }
            if (anInt855 != 0 && loopCycle % 20 < 10) {
                if (anInt855 == 1 && anInt1222 >= 0 && anInt1222 < npcArray.length) {
                    Npc class30_sub2_sub4_sub1_sub1_1 = npcArray[anInt1222];
                    if (class30_sub2_sub4_sub1_sub1_1 != null) {
                        int k1 = class30_sub2_sub4_sub1_sub1_1.x / 32 - myPlayer.x / 32;
                        int i4 = class30_sub2_sub4_sub1_sub1_1.y / 32 - myPlayer.y / 32;
                        method81(mapMarker, i4, k1);
                    }
                }
                if (anInt855 == 2) {
                    int l1 = ((anInt934 - baseX) * 4 + 2) - myPlayer.x / 32;
                    int j4 = ((anInt935 - baseY) * 4 + 2) - myPlayer.y / 32;
                    method81(mapMarker, j4, l1);
                }
                if (anInt855 == 10 && anInt933 >= 0 && anInt933 < playerArray.length) {
                    Player class30_sub2_sub4_sub1_sub2_1 = playerArray[anInt933];
                    if (class30_sub2_sub4_sub1_sub2_1 != null) {
                        int i2 = class30_sub2_sub4_sub1_sub2_1.x / 32 - myPlayer.x / 32;
                        int k4 = class30_sub2_sub4_sub1_sub2_1.y / 32 - myPlayer.y / 32;
                        method81(mapMarker, k4, i2);
                    }
                }
            }
            if (destX != 0) {
                int j2 = (destX * 4 + 2) - myPlayer.x / 32;
                int l4 = (destY * 4 + 2) - myPlayer.y / 32;
                markMinimap(mapFlag, j2, l4);
            }
    		//DrawingArea.drawPixels(3, 78+5, 97+20, 0xffffff, 3);
            DrawingArea.drawPixels(3, (Configuration.clientSize == 0 ? 83 : 80),
                    (Configuration.clientSize == 0 ? 100 : Configuration.clientWidth - 88), 0xffffff, 3);
            if (Configuration.clientSize == 0) {
                cacheSprite[19].drawSprite(0 + xPosOffset, 0);
            } else {
                cacheSprite[44].drawSprite(Configuration.clientWidth - 181, 0);
            }
            if (Configuration.clientSize != 0) {
                compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968,
                        (Configuration.clientSize == 0 ? 25 : 24), 4,
                        (Configuration.clientSize == 0 ? 29 : Configuration.clientWidth - 176), 33, 25);
            } else {
        		compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968, 25, 8, 8, 33, 25);
            }
            if (OSCounter == true) {
                processMinimapActions();
            }
            if (Configuration.clientSize != 0 && changeTabArea) {
                if (super.mouseX >= Configuration.clientWidth - 26 && super.mouseX <= Configuration.clientWidth - 1
                        && super.mouseY >= 2 && super.mouseY <= 24 || tabID == 10) {
                    cacheSprite[27].drawSprite(Configuration.clientWidth - 25, 2);
                } else {
                    cacheSprite[27].drawARGBSprite(Configuration.clientWidth - 25, 2, 165);
                }
            }
            if (loadOrbs)
                loadAllOrbs(Configuration.clientSize == 0 ? 0 : Configuration.clientWidth - 217);
            if (menuOpen) {
    			drawMenu(Configuration.clientSize == 0 ? 516 : 0, 0);
    		}
            gameScreenIP.initDrawingArea();
        }

    Markminimap method!

    Code:
        private void markMinimap(Sprite sprite, int x, int y) {                            
            if (sprite == null) {
                return;
            }
            int k = minimapInt1 + minimapInt2 & 0x7ff;
            int l = x * x + y * y;
            if (l > 6400) {
                return;
            }
            int i1 = Model.modelIntArray1[k];
            int j1 = Model.modelIntArray2[k];
            i1 = (i1 * 256) / (minimapInt3 + 256);
            j1 = (j1 * 256) / (minimapInt3 + 256);
            int k1 = y * i1 + x * j1 >> 16;
            int l1 = y * j1 - x * i1 >> 16;
            if (Configuration.clientSize == 0) {
                sprite.drawSprite(((94 + k1) - sprite.myWidth / 2) + 7, 78 - l1 - sprite.myHeight / 3 - 6 + 9);
            } else {
                sprite.drawSprite(((77 + k1) - sprite.anInt1444 / 2) + 4 + (Configuration.clientWidth - 167),
                        85 - l1 - sprite.anInt1445 / 2 - 4);
            }
        }

    Method81 if needed.

    Code:
        private void method81(Sprite sprite, int j, int k) {
            int l = k * k + j * j;
            if (l > 4225 && l < 0x15f90) {
                int i1 = minimapInt1 + minimapInt2 & 0x7ff;
                int j1 = Model.modelIntArray1[i1];
                int k1 = Model.modelIntArray2[i1];
                j1 = (j1 * 256) / (minimapInt3 + 256);
                k1 = (k1 * 256) / (minimapInt3 + 256);
            } else {
                markMinimap(sprite, k, j);
            }
        }
    Any help would be great! :/ Been struggling with this for a while now.
    Attached image
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    May 2011
    Posts
    554
    Thanks given
    319
    Thanks received
    86
    Rep Power
    214
    Bump
    Attached image
    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. [525] rs2hd need help [525]
    By brain090 in forum Help
    Replies: 0
    Last Post: 07-26-2009, 04:48 PM
  2. [525] Running Error need help [525]
    By pkownage135 in forum Help
    Replies: 2
    Last Post: 03-30-2009, 12:28 PM
  3. [525 need help [525]
    By Range in forum Help
    Replies: 3
    Last Post: 03-24-2009, 10:37 PM
  4. Need help... [525]
    By Crazyman9119 in forum Help
    Replies: 4
    Last Post: 03-24-2009, 04:42 AM
  5. [525] Running Error need help [525]
    By pkownage135 in forum Help
    Replies: 1
    Last Post: 03-22-2009, 11:30 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
  •