Guest User

Untitled

a guest
Jul 17th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. public int Superheat() {
  2. int abx = 0;
  3. int o = 0;
  4. int failCount = 0;
  5. while (getInventoryCount(453) >= 4 && getInventoryCount(447) >= 1 && abx < 10 && getMyPlayer().getAnimation() == -1 && failCount < 20) {
  6. wait(random(90, 110));
  7. failCount++;
  8. if (getCurrentTab() != TAB_MAGIC) {
  9. openTab(TAB_MAGIC);
  10. }
  11. castSpell(SPELL_SUPERHEAT_ITEM);
  12. while (getCurrentTab() != TAB_INVENTORY && o < 6) {
  13. wait(random(250, 750));
  14. o++;
  15. }
  16. o = 0;
  17. if (getCurrentTab() != TAB_INVENTORY) {
  18. openTab(TAB_INVENTORY);
  19. }
  20. if (!inventoryContains(561)) {
  21. log("You are out of nature runes...Stopping script...");
  22. logout();
  23. stopScript();
  24. }
  25. if (!atInventoryItem(447, "Cast")) {
  26. abx++;
  27. }
  28. if (xsuperheat == 1) {
  29. log("You do not have the smithing lvl required...Stopping script...");
  30. logout();
  31. stopScript();
  32. }
  33. if (xfirer == 1) {
  34. if (!inventoryContains(1387)) {
  35. if (equipmentContains(1387)) {
  36. continue;
  37. }
  38. log("You do not have a fire staff...Stopping script...");
  39. logout();
  40. stopScript();
  41. } else {
  42. atInventoryItem(1387, "ield");
  43. }
  44. }
  45. }
  46. if (abx >= 11) {
  47. log("Unable to cast superheat...Stopping script...");
  48. logout();
  49. stopScript();
  50. }
  51. return random(100, 200);
  52. }
Add Comment
Please, Sign In to add comment