Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. long lastMage = 0;
  2. long rehit = 0;
  3. public boolean reHit = false;
  4. long rehit2 = 0;
  5. public boolean reHit2 = false;
  6. public int advertising = 0;
  7. long lastAdvertise = 0;
  8. public boolean hasWildySign = false;
  9. public int wildyLevel = 0;
  10. public boolean showWarning = true;
  11. long timeOfDeath = 0;
  12. long lastSave = 0;
  13. long lastSpecialUpdate =0;
  14. public boolean isAlive = true;
  15. public boolean isDead = false;
  16. long delayDeath = 0;
  17. long hpDelay = 0;
  18. long lastPoison = 0;
  19. public int timeIS = 0;
  20. public boolean leftDanger = false;
  21. public boolean logoutAttempt = false;
  22. public boolean warning = true;
  23. public boolean displayWarning = false;
  24. public long drop = 0;
  25. public boolean canDrop = false;
  26. public boolean lastUpdateSpec = false;
  27. public int countStack = 0;
  28. public long lastdeduct = 1000;
  29.  
  30.  
  31. public int searchForPoisonDamageAmount() {
  32. switch(playerEquipment[playerWeapon]) {
  33. case 5698:
  34. return 6;
  35. }
  36. return -1;
  37. }
  38. public long fishingEmoteReset;
  39. public boolean karilStairs;
  40. public boolean karilSpawned;
  41. public stream update;
  42. public boolean process() {
  43. getX();
  44. getY();
  45. if (!hasStoppedFishing()) {
  46. if (absX != getX && absY != getY) {
  47. isBusy = false;
  48. }
  49. }
  50. if (fightingWith == 0) {
  51. isInCombat = false;
  52. }
  53. if (owesMoney && System.currentTimeMillis() - lastCount >= oneMinute) {
  54. getFines();
  55. minsNotPaid = (minsNotPaid + 1);
  56. lastCount = System.currentTimeMillis();
  57. }
  58. if (karilStairs) {
  59. if (absX == 3546 && absY == 9684) {
  60. karilStairs = false;
  61. teleportToX = 3562 + misc.random(4);
  62. teleportToY = 3272 + misc.random(4);
  63. heightLevel = 0;
  64. }
  65. }
  66. if (mageRequest) {
  67. getTheCurrentSpellPVP();
  68. }
  69. if (newDrain != 0 && drainPray) {
  70. if (System.currentTimeMillis() - lastdeduct > 100) {
  71. server.PrayerHandler.drainPrayer(playerId);
  72. sendQuest(" Prayer: "+playerLevel[5]+"/"+getLevelForXP(playerXP[5])+"", 687);
  73. sendFrame126(""+playerLevel[5]+"", 4012);
  74. lastdeduct = System.currentTimeMillis();
  75. }
  76. }
  77. if (deathStage == 0 && currentHealth <= 0) {
  78. followThisPlayer = -1;
  79. deathStage = 1;
  80. }
  81. if (deathStage == 1) {
  82. WalkTo(0,0);
  83. deathStage = 2;
  84. delayDeath = System.currentTimeMillis();
  85. }
  86. if (deathStage == 2) {
  87. if (System.currentTimeMillis() - delayDeath > 1500) {
  88. updateRequired = true;
  89. appearanceUpdateRequired = true;
  90. startAnimation(2304);
  91. updateRequired = true;
  92. appearanceUpdateRequired = true;
  93. deathStage = 3;
  94. }
  95. }
  96. if (deathStage == 3) {
  97. if (System.currentTimeMillis() - delayDeath > 1000) {
  98. youdied();
  99. deathStage = 4;
  100. sendMessage("Oh dear, you've died!.");
  101. currentHealth = playerLevel[playerHitpoints];
  102. teleportToX = 3094;
  103. teleportToY = 3480;
  104. isFrozen = false;
  105. isPoisoned = false;
  106. refreshhps();
  107. specialAmount = 100;
  108. resetWalkingQueue();
  109. server.PrayerHandler.resetPrayer(playerId);
  110. }
  111. }
  112.  
  113. if (deathStage == 4 && System.currentTimeMillis() - delayDeath > 4500) {
  114. stop();
  115. deathStage = 0;
  116. }
  117. sendAllSpecialBars();
  118. if (System.currentTimeMillis() - lastSpecialUpdate > 10000) {
  119. lastSpecialUpdate = System.currentTimeMillis();
  120. if (specialAmount < 100) {
  121. specialAmount = (specialAmount + 5);
  122. if (specialAmount > 95) {
  123. specialAmount = 100;
  124. }
  125. sendSpecialBarAmount();
  126. specAttack();
  127. }
  128. }
  129. if (System.currentTimeMillis() - lastSave > 12000) {
  130. if (inTrade) {
  131. savegame(false);
  132. lastSave = System.currentTimeMillis();
  133. } else if (!inTrade) {
  134. lastSave = System.currentTimeMillis();
  135. savegame(true);
  136. playerEnergy = 100;
  137. }
  138. }
  139. rightClickCheck();
  140. if (isFrozen) {
  141. WalkTo(0,0);
  142. }
  143. if (spamButton && (System.currentTimeMillis() - lastButton > 1100)) {
  144. lastButton = System.currentTimeMillis();
  145. if (currentButton >= 700) {
  146. currentButton = 1;
  147. currentStatus++;
  148. }
  149. if (currentStatus >= 255) {
  150. spamButton = false;
  151. }
  152. println("sending button " + currentButton + ", " + currentStatus);
  153. frame36(currentButton, currentStatus);
  154. currentButton++;
  155. }
  156. if ((animationReset > 0) && (System.currentTimeMillis() >= animationReset)) {
  157. animationReset = 0;
  158. resetAnimation();
  159. if (originalS > 0) {
  160. wear(originalS, playerShield);
  161. }
  162. }
  163. if (emoting && (System.currentTimeMillis() - lastAction > 300)) {
  164. lastAction = System.currentTimeMillis();
  165. pEmote++;
  166. updateRequired = true;
  167. appearanceUpdateRequired = true;
  168. sendMessage("Trying emote " + pEmote + "... ");
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement