Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. private void drawMinimap() {
  2. aRSImageProducer_1164.initDrawingArea();
  3. if (anInt1021 == 2) {
  4. byte abyte0[] = mapBack.aByteArray1450;
  5. int ai[] = DrawingArea.pixels;
  6. int k2 = abyte0.length;
  7. for (int i5 = 0; i5 < k2; i5++)
  8. if (abyte0[i5] == 0)
  9. ai[i5] = 0;
  10. compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968, 25, 8, 8, 33, 25);
  11. aRSImageProducer_1165.initDrawingArea();
  12. return;
  13. }
  14. int i = minimapInt1 + minimapInt2 & 0x7ff;
  15. int j = 48 + myPlayer.x / 32;
  16. int l2 = 464 - myPlayer.y / 32;
  17. aClass30_Sub2_Sub1_Sub1_1263.method352(152, i, anIntArray1229, 256 + minimapInt3, anIntArray1052, l2, 9, 32, 146, j);
  18. compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968, 25, 8, 8, 33, 25);
  19. for (int j5 = 0; j5 < anInt1071; j5++) {
  20. int k = (anIntArray1072[j5] * 4 + 2) - myPlayer.x / 32;
  21. int i3 = (anIntArray1073[j5] * 4 + 2) - myPlayer.y / 32;
  22. markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
  23. }
  24. for (int k5 = 0; k5 < 104; k5++) {
  25. for (int l5 = 0; l5 < 104; l5++) {
  26. NodeList class19 = groundArray[plane][k5][l5];
  27. if (class19 != null) {
  28. int l = (k5 * 4 + 2) - myPlayer.x / 32;
  29. int j3 = (l5 * 4 + 2) - myPlayer.y / 32;
  30. markMinimap(mapDotItem, l, j3);
  31. }
  32. }
  33. }
  34. for (int i6 = 0; i6 < npcCount; i6++) {
  35. NPC npc = npcArray[npcIndices[i6]];
  36. if (npc != null && npc.isVisible()) {
  37. EntityDef entityDef = npc.desc;
  38. if (entityDef.childrenIDs != null)
  39. entityDef = entityDef.method161();
  40. if (entityDef != null && entityDef.aBoolean87 && entityDef.aBoolean84) {
  41. int i1 = npc.x / 32 - myPlayer.x / 32;
  42. int k3 = npc.y / 32 - myPlayer.y / 32;
  43. markMinimap(mapDotNPC, i1, k3);
  44. }
  45. }
  46. }
  47. for (int j6 = 0; j6 < playerCount; j6++) {
  48. Player player = playerArray[playerIndices[j6]];
  49. if (player != null && player.isVisible()) {
  50. int j1 = player.x / 32 - myPlayer.x / 32;
  51. int l3 = player.y / 32 - myPlayer.y / 32;
  52. boolean flag1 = false;
  53. long l6 = TextClass.longForName(player.name);
  54. for (int k6 = 0; k6 < friendsCount; k6++) {
  55. if (l6 != friendsListAsLongs[k6] || friendsNodeIDs[k6] == 0)
  56. continue;
  57. flag1 = true;
  58. break;
  59. }
  60. boolean flag2 = false;
  61. if (myPlayer.team != 0 && player.team != 0
  62. && myPlayer.team == player.team)
  63. flag2 = true;
  64. if (flag1)
  65. markMinimap(mapDotFriend, j1, l3);
  66. else if (flag2)
  67. markMinimap(mapDotTeam, j1, l3);
  68. else
  69. markMinimap(mapDotPlayer, j1, l3);
  70. }
  71. }
  72. if (anInt855 != 0 && loopCycle % 20 < 10) {
  73. if (anInt855 == 1 && anInt1222 >= 0 && anInt1222 < npcArray.length) {
  74. NPC class30_sub2_sub4_sub1_sub1_1 = npcArray[anInt1222];
  75. if (class30_sub2_sub4_sub1_sub1_1 != null) {
  76. int k1 = class30_sub2_sub4_sub1_sub1_1.x / 32 - myPlayer.x
  77. / 32;
  78. int i4 = class30_sub2_sub4_sub1_sub1_1.y / 32 - myPlayer.y
  79. / 32;
  80. method81(mapMarker, i4, k1);
  81. }
  82. }
  83. if (anInt855 == 2) {
  84. int l1 = ((anInt934 - baseX) * 4 + 2) - myPlayer.x / 32;
  85. int j4 = ((anInt935 - baseY) * 4 + 2) - myPlayer.y / 32;
  86. method81(mapMarker, j4, l1);
  87. }
  88. if (anInt855 == 10 && anInt933 >= 0
  89. && anInt933 < playerArray.length) {
  90. Player class30_sub2_sub4_sub1_sub2_1 = playerArray[anInt933];
  91. if (class30_sub2_sub4_sub1_sub2_1 != null) {
  92. int i2 = class30_sub2_sub4_sub1_sub2_1.x / 32 - myPlayer.x / 32;
  93. int k4 = class30_sub2_sub4_sub1_sub2_1.y / 32 - myPlayer.y / 32;
  94. method81(mapMarker, k4, i2);
  95. }
  96. }
  97. }
  98. if (destX != 0) {
  99. int j2 = (destX * 4 + 2) - myPlayer.x / 32;
  100. int l4 = (destY * 4 + 2) - myPlayer.y / 32;
  101. markMinimap(mapFlag, j2, l4);
  102. }
  103. DrawingArea.drawPixels(3, 78+5, 97+7, 0xffffff, 3);
  104. mapArea.drawSprite(0, 0);
  105. drawHP();
  106. drawPrayer();
  107. drawRunOrb();
  108. drawLogout();
  109. drawXPCounter();
  110. if(menuOpen && menuScreenArea == 3)
  111. drawMenu();
  112. aRSImageProducer_1165.initDrawingArea();
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement