Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int Superheat() {
- int abx = 0;
- int o = 0;
- int failCount = 0;
- while (getInventoryCount(453) >= 4 && getInventoryCount(447) >= 1 && abx < 10 && getMyPlayer().getAnimation() == -1 && failCount < 20) {
- wait(random(90, 110));
- failCount++;
- if (getCurrentTab() != TAB_MAGIC) {
- openTab(TAB_MAGIC);
- }
- castSpell(SPELL_SUPERHEAT_ITEM);
- while (getCurrentTab() != TAB_INVENTORY && o < 6) {
- wait(random(250, 750));
- o++;
- }
- o = 0;
- if (getCurrentTab() != TAB_INVENTORY) {
- openTab(TAB_INVENTORY);
- }
- if (!inventoryContains(561)) {
- log("You are out of nature runes...Stopping script...");
- logout();
- stopScript();
- }
- if (!atInventoryItem(447, "Cast")) {
- abx++;
- }
- if (xsuperheat == 1) {
- log("You do not have the smithing lvl required...Stopping script...");
- logout();
- stopScript();
- }
- if (xfirer == 1) {
- if (!inventoryContains(1387)) {
- if (equipmentContains(1387)) {
- continue;
- }
- log("You do not have a fire staff...Stopping script...");
- logout();
- stopScript();
- } else {
- atInventoryItem(1387, "ield");
- }
- }
- }
- if (abx >= 11) {
- log("Unable to cast superheat...Stopping script...");
- logout();
- stopScript();
- }
- return random(100, 200);
- }
Add Comment
Please, Sign In to add comment