Skip to content
Outlands Hub

Razor script

DanStock's ULTIMATE MINING AUTO PILOT (DEXXER, MAGE AND/OR SUMMONER w/ AUTO RECALL & MORE!)

by danstock._98439 · 4559 lines
Download

DanStock's ULTIMATE MINING AUTO PILOT UO OUTLANDS RAZOR SCRIPT - Last Updated Nov 28, 2024 MINING AUTOBOT (DEXXER, MAGE AND/OR SUMMONER w/ AUTO RECALL & MORE!) Compiled by DanStock. - Email any bug reports/tips to dan@danstockman.com…

GatheringCombatMagicMeditationHidingMiningTracking
DanStocks ULTIMATE MINING AUTO PILOT DEXXER MAGE ANDOR SUMMONER w AUTO RECALL MORE.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/aa6bf3dc-4615-47c5-a519-11be74103d13 for latest2# Automation by Jaseowns3## Script: DanStock's ULTIMATE MINING AUTO PILOT  (DEXXER, MAGE AND/OR SUMMONER w/ AUTO RECALL & MORE!)4## Created by: danstock._98439#05#############################################6 7/////////8////////        DanStock's ULTIMATE MINING AUTO PILOT UO OUTLANDS RAZOR SCRIPT - Last Updated Nov 28, 20249///////10//////              MINING AUTOBOT (DEXXER, MAGE AND/OR SUMMONER w/ AUTO RECALL & MORE!) 11/////             12////                    Compiled by DanStock. - Email any bug reports/tips to dan@danstockman.com13///                     Inspired by & learned from many scripts found on https://outlands.uorazorscripts.com/14//            15 16 17                ##########################################################################################################18                ####    PLEASE READ SCRIPT DETAILS BELOW FOR IMPORTANT COOLDOWN, FILTER AND VARIABLE INSTRUCTIONS!    ####19                ####             Most features are turned OFF by default and can be enabled below.                   ####20                ##########################################################################################################21 22 23 24    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////25    /////  ANYTIME YOU NEED TO RESET OR CHANGE PERMANENT VARIABLES (ie. ESCAPE RUNEBOOKS, TREASURE CHEST, INGOT AND BOARD BAGS)  ///// 26    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////27    //                                                                                                                              //28    //                                                                                                                              //29    //      Run script once with this SCRIPTRESET set to 1 to clear ALL variables.                                                  //30    //      Then reset SCRIPTRESET back to 0 and restart script to prompt for new targets!                                          //31    //                                                                                                                              //32                @setvar! SCRIPTRESET 033    //                                                                                                                              //      34    //      This will reset the script to it's "first run" status if something goes wrong in the initial setup!                     //35    //                                                                                                                              //36    //                                                                                                      - DanStock.             //37    //                                                                                             (aka. Pax Augustus of Terran)    //38    //                                                                                                                              //39    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////40 41 42# Required (or suggested *) inventory items:43 44    # Pickaxe45    # A blessed escape runebook (charged w/ recall scrolls if no Magery skill)46    # Trapped pouches 47    # Healing, Cure and Refresh potions (Resist, and Strength pots *)48    # Skinning knife *49    # Bandages * 50    # Adventurer's rope *51    # Tool Kit *52    # Potion Satchel *53    # Wizard's Satchel (w/ regs) *54    # Magic Mushrooms *55    # Harvest Aspect weapon of choice (script supports Swords, Macing or Spellbook) *56    # Harvest Aspect armour of choice *57 58 59# IMPORTANT: Please add the following COOLDOWNS (case sensitive) in UO client under Options -> Cooldowns:60 61    // Healing Potion62    // Cure Potion63    // Refresh Potion64    // Travel65    // Target Timer66    // Move Timer67    // Weight Timer68    // Inventory Timer69    // Satchel Timer70    // Forge Radar71    // Ore Radar72    // Gold Radar73    // Ore Vacuum74    // Gold Vacuum75    // HarmCD76    // WeakenCD77    // CurseCD78    // MindblastCD79    // MagicArrowCD80    // FireballCD81    // LightningCD82    // ExplosionCD83    // EnergyBoltCD84    // FlamestrikeCD85    // MeteorSwarmCD86    // ChainLightningCD87    // Spirit Speak88    // Mushroom89    // Magic Shield90    // Spell Fail    (w/ overhead text trigger of "The spell fizzles" and a 2 second default cooldown)91 92 93# Use the following optional organizer agents (or swap for your own):94 95    # Organizer Agent-03 hotbag   (for ingots, seeds, etc.)96    # Organizer Agent-04 hotbag   (for main MINING inventory items)97 98    # Organizer Agent-05 hotbag * (optional - for unloading at HOME or INN ROOM - Turn on EnableOrganizerAgents below)99    // See Shared Variables section below to turn on or off the use of Resource Stockpile, Storage Shelf, Bank Safe and Magic Item Recycler in lieu of Organizer Agent-05!100 101    // Use the following optional agents to unload non-stockpile or shelf items (Turn on EnableTreasureChest below):102    # Organizer Agent-06 hotbag * (optional - I use for unloading Tmaps, SS, orbs, RM, etc.)103    # Organizer Agent-07 hotbag * (optional - I use for unloading Runes)104    # Organizer Agent-08 hotbag * (optional - I use for unloading Black Goods, etc.)105    # Organizer Agent-09 hotbag * (optional - I use for unloading seeds, soil, grain, etc.)106 107 108# Optional system messages to TEXT FILTER in Razor for cleaner UI:109 110    // "What do you want to use this item on?" 111    // "You do not see any harvestable resources nearby"112    // "You dig some"113    // "You loosen some"114    // "You smelt the ore"115    // "You must wait"116    // "You do not see any"117    // "You do not have any"118    // "Mining skillgain"119    // "No one matching that"120    // "You will now hunt"121    // "Organize Agent"122    // "queue"123    // "Macro"124    // "Achievement"125    // "You have worn out your tool"126    // "You carve materials from the corpse"127    // "Target item to grab"128    // "There are no nearby corpses"129    // "item to satchel"130    // "You begin hunting"131    // "Container not set"132    // "Invalid or inaccessible item"133   134 135    136    #################################################137    //              User Variables:                //138    #################################################139 140@setvar! EnableRedAlertRecall 1141@setvar! EnableParalyzePouch 1142@setvar! EnableAutoAttackGreyMOB 1143 144@setvar! EnableHealPotion 1145@setvar! HealPotHP 45146 147@setvar! EnableCurePotion 1148@setvar! CurePotHP 85149 150@setvar! EnableRefreshPotion 1151@setvar! RefreshPotSPdiff 11152 153    // Enable for auto buff check and consumption during combat:154@setvar! EnableMagicResistPotion 0155@setvar! EnableStrengthPotion 0156@setvar! EnableAgilityPotion 0157 158@setvar! AllInventoryMessage 1159    // or160@setvar! YellowInventoryMessage 1161@setvar! OrangeInventoryMessage 1162@setvar! RedInventoryMessage 1163@setvar! WhiteInventoryMessage 0164@setvar! BlueInventoryMessage 0165@setvar! BlackInventoryMessage 0166@setvar! RopeInventoryMessage 0167 168@setvar! EnableAutoCarving 0169@setvar! EnableGoldVacuum 0170@setvar! EnableCheeseTimer 0171@setvar! EnableToolCountdown 0172@setvar! EnableRecycleTool 0173@setvar! EnableSatchels 0174@setvar! EnableWeaponWarning 0175 176    // Choose only one (or none) for AUTO RECALL destination:177@setvar! OwnerInnRecall 0 178@setvar! CoOwnerInnRecall 0179@setvar! HouseRecall 0180 181    # Use ">info" to ID your own house door:182@setvar! MyDoor 0x50F70A17183@setvar! HideAtHomeorInn 1184 185    # Script can use Razor Organizer Agents to organize or you can use Resource Stockpile, Storage Shelf, etc. instead:186@setvar! EnableOrganizerAgents 0187    // or188@setvar! EnableBankSafe 0189@setvar! EnableStockpile 0190@setvar! EnableStorageShelf 0191@setvar! EnableMagicRecycler 0192@setvar! EnableRepairBench 0193@setvar! EnableTreasureChest 0194 195 196    #################################################197    //         Mining Specific Variables:          //198    #################################################199 200@setvar! EnableOreVacuum 1201@setvar! EnablePlayerForgeRadar 1202@setvar! EnableAutoSmeltPlayerForge 1203@setvar! EnableAutoSmeltNaturalForge 1204 205@setvar! EnableIngotAutoRecall 1206@setvar! IngotRecallAmount 3000207 208@setvar! EnableIngotBag 1209@setvar! OpenIngotBag 0210 211@setvar! EnableWeightWarningMessage 1212@setvar! GreenWarningWeight 400213@setvar! YellowWarningWeight 430214@setvar! RedWeightLimit 445215 216 217    #################################################218    //         Magery Specific Variables:          //219    #################################################220    221    if skill "Magery" >= 50222 223    # Defensive:224@setvar! EnableCastRecall 1225@setvar! EnableMagicReflection 1226@setvar! EnableReactiveArmour 1227@setvar! EnableProtection 0228@setvar! EnableCastHeal 1229@setvar! EnableCastCure 1230@setvar! CastHealHPlowdiff 5231@setvar! CastHealHPmeddiff 25232@setvar! CastHealHPhighdiff 50233@setvar! EnableReagentSplitter 0234 235    # Offensive:236@setvar! EnableCastHarm 0237@setvar! HarmCooldown 30000238@setvar! EnableCastWeaken 0239@setvar! WeakenCooldown 30000240@setvar! EnableCastCurse 0241@setvar! CurseCooldown 30000242@setvar! EnableCastMindBlast 0243@setvar! MindblastCooldown 30000244@setvar! EnableCastMagicArrow 0245@setvar! MagicArrowCooldown 30000246@setvar! EnableCastFireball 0247@setvar! FireballCooldown 30000248@setvar! EnableCastLightning 1249@setvar! LightningCooldown 30000250@setvar! EnableCastExplosion 1251@setvar! ExplosionCooldown 10000252@setvar! EnableCastEnergyBolt 1253@setvar! EnergyBoltCooldown 10000254@setvar! EnableCastFlamestrike 1255@setvar! FlamestrikeCooldown 10000256@setvar! EnableCastMeteorSwarm 0257@setvar! MeteorSwarmCooldown 30000258@setvar! EnableCastChainLightning 0259@setvar! ChainLightningCooldown 30000260 261@setvar! EnableMagicMushroom 0262@setvar! MushroomCooldown 60000263@setvar! EnableMushroomMaker 0264@setvar! MakeMushroomAmount 5265 266    # Summons:267@setvar! EnableSummons 0268@setvar! NameSummonedPets 0269@setvar! TotalSummonCount 0270 271    // Number of summoned pets (0, 1 or 2 each - up to 4 total):272@setvar! SummonFireElemental 0273@setvar! SummonEarthElemental 0274@setvar! SummonAirElemental 0275@setvar! SummonWaterElemental 0276@setvar! SummonDemon 0277 278 279    // Add pet names to list below (must be unique):280    if NameSummonedPets = 1281            if not listexists petNameList282                createlist petNameList283            endif284 285        if list petNameList = 0286            pushlist petNameList "ExamplePetName1"287            pushlist petNameList "ExamplePetName2"288            pushlist petNameList "ExamplePetName3"289            pushlist petNameList "ExamplePetName4"290            pushlist petNameList "ExamplePetName5"291            pushlist petNameList "ExamplePetName6"292            pushlist petNameList "ExamplePetName7"293            pushlist petNameList "ExamplePetName8"294            pushlist petNameList "ExamplePetName9"295            pushlist petNameList "ExamplePetName10"296        endif297    else298            clearlist petNameList299    endif         300 301 302 303####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  ####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  ####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  ####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  ####304 305 306    307        /////////////////////////////////////////////308        /////////    SCRIPT STARTS HERE:    /////////   309        /////////////////////////////////////////////310    311 312if SCRIPTRESET = 1313    unsetvar mining_runebook314    unsetvar ingotbag315    unsetvar TreasureChest316    unsetvar DanStock.317    unsetvar FIRSTRUN318    unsetvar EASTEREGG319    clearlist petNameList320    overhead "All permanent script variables reset!" 84321    wait 500322    overhead "Reset SCRIPTRESET back to 0 and restart script to prompt for new targets..." 0323    sysmsg "Make sure to set SCRIPTRESET back to 0" 253324    wait 500325    sysmsg "Stopping script..." 0326    stop    327endif 328 329if not varexist DanStock.330    sysmsg  "DanStock's Ultimate Harvest Auto Pilot Script" 77331    wait 500332    sysmsg "Version: 2.0.03"333    wait 500334    sysmsg "Last updated: Oct 18, 2024" 69335    wait 1000336    overhead "Thank you for trying my script!  It appears this may be your first time running it..." 0337    wait 4000338    overhead "IMPT: Please make sure to setup all the required COOLDOWNS and VARIABLES!" 153339    wait 4500340    overhead "There is a LOT this script can do with the right configuration!" 0341    wait 3500342    overhead "Email any questions/bugs to: dan@danstockman.com" 0343    wait 2500344    overhead "[ HAPPY HARVESTING! ]" 2086345    wait 500346    setvar DanStock. 1347    sysmsg "Beginning initial Harvest Auto Pilot script setup...... " 0348    wait 1500349    sysmsg "Best done from inside your Home or Inn Room!" 253350    wait 500351    hotkey 'Cancel Current Target'352endif 353 354if skill "Mining" >= 50 and EnableRedAlertRecall = 1355    if not varexist mining_runebook356        wait 1000357        overhead "First off, please select your Escape Runebook..." 88358        wait 1500359        overhead "[ SELECT RUNEBOOK... ]" 253360        setvar mining_runebook361        wft 500362            while targetexists363                wait 100364            endwhile365            overhead "[ RUNEBOOOK SELECTED! ]" 93366            wait 1500367            overhead "Script will use recall SCROLL (to first rune) or CAST recall (to 'default' rune)" 0368            wait 2500369    endif370endif371 372if skill "Mining" >= 50 and  EnableIngotBag = 1373    if not varexist ingotbag 374        wait 1000375        overhead "Next, we'll set your ingot storage bag..." 88376        wait 1500377        overhead "[ SELECT INGOT BAG... ]" 253378        setvar ingotbag379        wft 500380            while targetexists381                wait 100382            endwhile383            overhead "[ INGOT BAG SELECTED! ]" 93384            wait 1500385            overhead "Also set this bag as 'Organizer Agent-03' in Razor!" 0386            wait 3000387    endif388endif389 390if EnableTreasureChest = 1391    if not varexist TreasureChest392        wait 1000393        sysmsg "Disable 'EnableTreasureChest' in script variables to turn off this feature!" 0394        overhead "Now, select a container (in your Home or Inn) to store your loot..." 88395        wait 1500396        overhead "[ SELECT LOOT CHEST... ]" 253397        setvar TreasureChest398        wft 500399            while targetexists 400                wait 100401            endwhile402            overhead "[ LOOT CHEST SELECTED! ]" 93403            wait 1500404            overhead "Setup additional Organizer Agents (06-09) within this container!" 0405            wait 3500406        407    endif408endif409 410if not varexist FIRSTRUN411    sysmsg "Verifying initial setup is complete.......... " 0412    wait 2500413    overhead "Ok, looks like you're good to go!" 0414    wait 3000415    overhead "Good luck out there and thanks again for trying my script!" 0416    setvar FIRSTRUN 1417    wait 3000418    sysmsg "DANSTOCK'S ULTIMATE HARVEST AUTO PILIOT SCRIPT SETUP COMPLETE!" 84419    wait 1500420    overhead "[ STARTING HARVEST SCRIPT.... ]" 2086421    wait 1500422endif423 424if hidden 425    overhead "[ HIDDEN... ]" 6426    wait 1000427    sysmsg "You cannot use this script while hidden!  Please unhide and try again..." 0428    stop429endif430 431if EnableRedAlertRecall = 1432    if insysmsg "Now tracking" or insysmsg "Distance to destination"433        @setvar! TimeToGo 1434    endif435endif 436 437if insysmsg "Captcha successful"438    overhead "I guess you got the magic numbers correct??" 2086439    wait 1500440    if EnableSummons = 1 and followers > 1441            overhead "Umm... who are you speaking to, Master?" 44 myMainTankPet442            menu myMainTankPet 3443            clearsysmsg 444            wait 1500445            overhead "Nevermind that... let's get to work..." 2086446        else447            overhead "Alright, let's get to work..." 2086448        endif449endif450 451if insysmsg "You have unlocked a codex upgrade point"452    overhead "[ CODEX POINT UNLOCKED! ]" 2114453        if EnableSummons = 1 and followers > 1454            wait 1000455            overhead "Well done, Master..." 44 myMainTankPet456            menu myMainTankPet 3457        endif458endif 459 460if insysmsg "unlocked a point for your wizard's grimoire"461    overhead "[ GRIMOIRE POINT UNLOCKED! ]" 7462        if EnableSummons = 1 and followers > 1463            wait 1000464            overhead "You seem stronger, Master..." 44 myMainTankPet465            menu myMainTankPet 3466        endif467endif 468 469if insysmsg "enough experience to upgrade"470    overhead "[ ASPECT TIER UNLOCKED! ]" 2086471        if EnableSummons = 1 and followers > 1472            wait 500473            overhead "Time to spend some more gold, it would seem..." 44 myMainTankPet474            menu myMainTankPet 3475            wait 500476        endif477endif 478 479if insysmsg "upgrade point for Fire Elemental" or insysmsg  "upgrade point for Air Elemental"  or insysmsg  "upgrade point for Water Elemental" or insysmsg  "upgrade point for Earth Elemental"and EnableSummons = 1 and followers > 1480    overhead "Hmm.. I suddenly feel stronger!" 44 myMainTankPet481    menu myMainTankPet 3482    wait 500483    overhead "* cracks knuckles... *" 0 myMainTankPet484endif 485 486 487if insysmsg "something invisible out of the way"488    overhead "[ � SOMEONE HIDDEN! � ]" 6489        if EnableSummons = 1 and followers > 1490            wait 500491            overhead "There is a foul stench upon the air..." 44 myMainTankPet492            menu myMainTankPet 3493            wait 500494        endif495endif 496 497if paralyzed and EnableParalyzePouch = 1498    overhead "[[[[ POP ]]]]" 2117499    say "[pouch" 500    @setvar! TimeToGo 1501    if EnableSummons = 1 and followers > 1502            overhead "That was unwise, criminal..." 44 myMainTankPet503            menu myMainTankPet 3504            clearsysmsg 505        endif506endif507 508if EnableRedAlertRecall = 1 and TimeToGo = 1509    overhead "[[[[ RED ALERT ]]]]" 37510    overhead "Looks like trouble coming!" 2086511     512            if paralyzed 513                overhead "[[[[ POP ]]]]" 2117514                say "[pouch"515                wait 250 516            endif517        518            if skill 'Healing' > 50 and not bandaging and hits < maxhits519                hotkey "Bandage self"520                overhead '* applying bandages... *' 88521                wait 250522            endif 523                524            if diffhits > 25 and not cooldown "Healing Potion"525                if findtype "Yellow Potion" self as healpot526                    overhead '* drinking heal potion... *' 253527                    dclick healpot528                    cooldown "Healing Potion" 10500529                    wait 250530                else 531                    overhead '[ NO HEAL POTS! ]' 337532                endif533            endif 534            535            if poisoned and not cooldown "Cure Potion"536                if findtype "Orange Potion" self as curepot537                    overhead '* drinking cure potion... *' 44538                    dclick curepot539                    cooldown "Cure Potion" 10500540                    wait 250541                else542                    overhead [ NO CURE POTS! ]" 337543                endif544            endif545        546            if stam < maxstam and not cooldown "Refresh Potion"547                if findtype "Red Potion" self as refreshpot548                    overhead '* drinking refresh potion... *' 34549                    dclick refreshpot550                    cooldown "Refresh Potion" 10500551                    wait 250552                else 553                    overhead '[ NO REFRESH POTS! ]' 337554                endif555           endif556 557    if skill "Mining" >= 50558        if skill "Magery" >= 60 and CastRecall = 1559            cast "Recall"560            wft 2500561            target mining_runebook562                for 5563                wait 500564                if insysmsg 'Your concentration is disturbed'565                    overhead 'Shit! Trying that again...' 2086566                    cast "Recall"567                    wft 2500568                    target mining_runebook569                    clearsysmsg570                endif571                endfor572        else573            dclick mining_runebook574            waitforgump 1551740969 575            gumpresponse 2576            wait 500             577                for 5578                wait 500579                if insysmsg 'Your concentration is disturbed'580                    overhead 'Shit! Trying that again...' 2086581                    dclick mining_runebook582                    waitforgump 1551740969 583                    gumpresponse 2584                    wait 500 585                    clearsysmsg 586                endif587            endfor588         endif589    endif 590   591    wait 1000592    overhead "Whew. I think we got away!" 2086593        if not varexist GuardComment594            @setvar! GuardComment 1595        endif596        if EnableSummons = 1 and GuardComment = 1 and followers > 1597            wait 1500598            overhead "Yes Master, that was a close one..." 44 myMainTankPet599            menu myMainTankPet 3600            clearsysmsg 601            @setvar! GuardComment 2602            wait 500603        elseif EnableSummons = 1 and GuardComment = 2 and followers > 1604            wait 1500605            overhead "Yes Master, your script is truly God-like..." 44 myMainTankPet606            menu myMainTankPet 3607            clearsysmsg 608            @setvar! GuardComment 3609            wait 500610        elseif EnableSummons = 1 and GuardComment = 3 and followers > 1611            wait 1500612            overhead "Yes Master, these red humans are quite annoying..." 44 myMainTankPet613            menu myMainTankPet 3614            clearsysmsg 615            @setvar! GuardComment 4616            wait 500617        elseif EnableSummons = 1 and GuardComment = 4 and followers > 1618            wait 1500619            overhead "I think we could have taken them..." 44 myMainTankPet620            menu myMainTankPet 3621            clearsysmsg 622            @setvar! GuardComment 5623            wait 500624        elseif EnableSummons = 1 and GuardComment = 5 and followers > 1625            wait 1500626            overhead "I've worked for that human before... total prick..." 44 myMainTankPet627            menu myMainTankPet 3628            clearsysmsg 629            @setvar! GuardComment 6630            wait 500631        elseif EnableSummons = 1 and GuardComment = 6 and followers > 1632            wait 1500633            overhead "I don't think tonight is our night, Master.." 44 myMainTankPet634            menu myMainTankPet 3635            clearsysmsg 636            @setvar! GuardComment 1637            wait 500638        endif639    @setvar! TimeToGo 0640    sysmsg "Auto Recall trigger condition reset!" 0641 642    if skill "Mace Fighting" > 50 and not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" hand and findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" backpack as weapon643        getlabel weapon WeaponLabel644            for 5645                if "unidentified" in WeaponLabel646                    ignore weapon647                    if not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" hand and findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" self as weapon648                        getlabel weapon WeaponLabel649                    else650                        overhead "[ NO WEAPON! ]" 337651                        break652                    endif653                endif654            endfor655        dclick weapon      656    endif 657 658    if skill "Swordsmanship" > 50 and not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" hand and findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" backpack as weapon659        getlabel weapon WeaponLabel660            for 5661                if "unidentified" in WeaponLabel662                    ignore weapon663                    if not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" hand and findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" self as weapon664                        getlabel weapon WeaponLabel665                    else666                        overhead "[ NO WEAPON! ]" 337667                        break668                    endif669                endif670            endfor671        dclick weapon      672    endif 673 674    if skill "Magery" >= 80 and not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook675        getlabel myspellbook SpellbookLabel676                for 5677                    wait 100678                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel679                        ignore myspellbook 680                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook681                            getlabel myspellbook SpellbookLabel682                        else 683                            overhead "[ NO SPELLBOOK! ]" 337684                            break685                        endif686                    endif 687                endfor688        dclick myspellbook689    endif 690 691    wait 1000692 693    if HouseRecall = 1694        wait 1500695        if find MyDoor ground -1 -1 2 696            dclick MyDoor 697            overhead "* door slams! *" 0 MyDoor698            wait 500699        endif700    endif 701 702    if OwnerInnRecall = 1703        wait 2000704        say "Innkeeper, I need a room!"705        waitforgump 2393832411706        gumpresponse 4707        wait 3000708    endif709 710    if CoOwnerInnRecall = 1711        wait 2000712        say "Innkeeper, I need a room!"713        waitforgump 2393832411714        gumpresponse 5715        wait 2000716        gumpresponse 100717        wait 2000718    endif719 720    if HideAtHomeorInn = 1721        useskill "Hiding"722        wait 250723    endif724 725    if OpenIngotBag = 1 726        dclick ingotbag727        wait 250728    endif729 730    if OpenBoardBag = 1 731        dclick boardbag732        wait 250733    endif734 735    for 11736    if findtype "iron ore" backpack as ore737        if findtype "forge" ground -1 -1 2 as forge or findtype 0x0FB1 ground -1 -1 2 as forge738            overhead "* smelting ore... *" 2114 forge739            dclick ore740            overhead "* forging ingots... *" 2117741            wait 1000742            hotkey 'Organizer Agent-03'  743            wait 250744        endif 745    endif746    endfor     747 748    for 11749    if findtype 'log%s' backpack and LogsToBoards = 1 750        wait 500751        overhead '* making boards... *' 0752        dclicktype 'log%s' 753        wait 250754        hotkey 'Organizer Agent-01'755        wait 1500756    endif757    endfor   758 759    if EnableOrganizerAgents = 1760        if findtype "cut up leather|iron ingot%s|board%s|feather%s|seed of renewal|shaft%s|blank scroll%s%|gold coin" backpack761            overhead "* storing ingots... *" 37762            hotkey "Organizer Agent-05"763            wait 3500764            if findtype "cut up leather|iron ingot%s|board%s|feather%s|seed of renewal|shaft%s|blank scroll%s%|gold coin" backpack765                hotkey "Organizer Agent-05"766                wait 3500767            endif768            if findtype "cut up leather|iron ingot%s|board%s|feather%s|seed of renewal|shaft%s|blank scroll%s%|gold coin" backpack769                hotkey "Organizer Agent-05"770                wait 500771            endif772        endif773    endif774 775    if EnableBankSafe = 1776        if findtype "bank deposit safe" ground -1 -1 2 as safe777            while findtype "gold coin" self as gold778                lift gold 60000779                overhead "* depositing gold... *" 149780                drop safe -1 -1 -1781                wait 1000782            endwhile783            while findtype 2539 self as dubs784                lift dubs 60000785                drop safe -1 -1 -1786                overhead "* depositing doubloons... *" 149787                wait 1000788            endwhile789        else790            overhead "[ NO BANK SAFE FOUND ]" 337791            sysmsg "Disable 'EnableBankSafe' in script variables to turn off this feature!" 0792        endif793    endif794 795    if EnableStockpile = 1796        if findtype "resource container" ground -1 -1 2 as resource797            menu resource 0798            wft 500799            target self800            overhead "* unloading resources... *" 84801            wait 1000802        else803            overhead "[ NO RESOURCE STOCKPILE FOUND ]" 337804            sysmsg "Disable 'EnableStockpile' in script variables to turn off this feature!" 0805        endif806    endif807 808    if EnableStorageShelf = 1809        if findtype "storage shelf" ground -1 -1 2 as shelf810            menu shelf 0811            wft 500812            target self813            overhead "* restocking... *" 37814            wait 1000815            gumpclose 3232825965816        else817            overhead "[ NO STORAGE SHELF FOUND ]" 337818            sysmsg "Disable 'EnableStorageShelf' in script variables to turn off this feature!" 0819        endif       820        if findtype "storage shelf" ground -1 -1 2 as shelf821            menu shelf 1822            wft 500823            target self   824            overhead "* resupplying... *" 93825            wait 1000826        endif827    endif828 829    if EnableRepairBench = 1830        if findtype "repair bench" ground -1 -1 2 as RepairBench831            clearsysmsg 832            dclick RepairBench833            wait 1000834                if insysmsg "You do not have any items equipped or in your backpack in need of repairs."835                    overhead "* nothing to repair! *" 0836                else837                    settimer RepairTimer 0838                while timer RepairTimer <= 5000 839                    if insysmsg "Repair"840                        break841                    endif842                endwhile843                    overhead "* all items repaired! *" 0844                    overhead "Repair took: {{RepairTimer}}ms" 149845                    removetimer RepairTimer846                endif847            wait 500848        else849            overhead "[ NO REPAIR BENCH FOUND ]" 337850            sysmsg "Disable 'EnableRepairBench' in script variables to turn off this feature!" 0851        endif852    endif853 854    if EnableMagicRecycler = 1855        if findtype "ornate elven chest|magic item recycler" ground -1 -1 2 as recycler856            menu recycler 1857            wait 1000858                if insysmsg "0 recyclable"859                    overhead "* nothing to recycle! *" 6860                else861                    overhead "* recycling magic items... *" 6862                    wait 500863                endif864        else865            overhead "[ NO MAGIC ITEM RECYCLER FOUND ]" 337866            sysmsg "Disable 'EnableMagicRecycler' in script variables to turn off this feature!" 0867        endif868    endif869 870    if EnableTreasureChest = 1       871        if findtype "black market goods|seed of renewal|dirt patch|bag of seeds|void orb|rune|scroll of calling|bottle|dye bottle|map" self872            dclick TreasureChest873            overhead "* storing loot... *" 69874            wait 250875            hotkey "Organizer Agent-06"876            wait 250877            hotkey "Organizer Agent-07"878            wait 250879            hotkey "Organizer Agent-08"880            wait 250881            hotkey "Organizer Agent-09"882            wait 1000883 884            if findtype "black market goods|seed of renewal|dirt patch|bag of seeds|void orb|rune|scroll of calling|bottle|dye bottle|map" self885                wait 1000886                hotkey "Organizer Agent-06"887                wait 250888                hotkey "Organizer Agent-07"889                wait 250890                hotkey "Organizer Agent-08"891                wait 250892                hotkey "Organizer Agent-09"893            endif 894        endif 895    endif896        897    if EnableReagentSplitter = 1898        // This section uses a Reg Splitter script I adapted from dennozz' script found here: https://outlands.uorazorscripts.com/script/d8f50c97-3d9c-468b-9114-0a0623003e19 //     899        if findtype "reagent satchel" self as MyWizardBag    900            sysmsg "Disable 'EnableReagentSplitter' in script variables to turn off this feature!" 0           901            dclick MyWizardBag902            overhead "* splitting reagents... *" 112903            @setvar! amount 0904            @setvar! regsID 3981905            @setvar! myCounter 0906 907                while findtype regsID self as r 908                    @setvar! myCounter index909                    @ignore r910                endwhile911                912                @clearignore913 914        if counttype regsID self <= 15915            @setvar! amount 2916        elseif counttype regsID self <= 30917            @setvar! amount 4       918        elseif counttype regsID self <= 50919            @setvar! amount 10    920        elseif counttype regsID self <= 100921            @setvar! amount 20    922        elseif counttype regsID self <= 150923            @setvar! amount 30924        elseif counttype regsID self <= 200925            @setvar! amount 40926        else 927            @setvar! amount 50928        endif929 930        while findtype regsID self as regs931            @setvar! moveRegs 0 932    933            if myCounter = 0934                @setvar! moveRegs 1935            elseif myCounter != 0 and not find regs MyWizardBag936                @setvar! moveRegs 1937            endif938    939        # Spider Silk940            if moveRegs = 1    941                if index = 0942                    lift regs amount943                    drop MyWizardBag 44 65 0    944                    wait 150  945                elseif index = 1946                    lift regs amount947                    drop MyWizardBag 68 65 0    948                    wait 150         949                elseif index = 2950                    lift regs amount951                    drop MyWizardBag 96 65 0 952                    wait 150              953                elseif index = 3954                    lift regs amount955                    drop MyWizardBag 121 65 0     956                    wait 150         957                else958                    lift regs amount959                    drop MyWizardBag 142 65 0   960                    wait 150        961                endif962            endif963    964            @ignore regs 965    966            if moveRegs = 1967                wait 500968            endif969        endwhile970 971        @setvar! regsID 3962972        @setvar! myCounter 0973 974        while findtype regsID self as r 975            @setvar! myCounter index976            @ignore r977        endwhile978 979        @clearignore980 981        if counttype regsID self <= 10982            @setvar! amount 2983        elseif counttype regsID self <= 20984            @setvar! amount 4       985        elseif counttype regsID self <= 50986            @setvar! amount 10    987        elseif counttype regsID self <= 100988            @setvar! amount 20    989        elseif counttype regsID self <= 150990            @setvar! amount 30991        elseif counttype regsID self <= 200992            @setvar! amount 40993        else 994            @setvar! amount 50995        endif996 997        while findtype regsID self as regs998            @setvar! moveRegs 0 999   1000            if myCounter = 01001                @setvar! moveRegs 11002            elseif myCounter != 0 and not find regs MyWizardBag1003                @setvar! moveRegs 11004            endif1005 1006    # Black Pearl1007        if moveRegs = 1    1008            if index = 01009                lift regs amount1010                drop MyWizardBag 44 76 0    1011                wait 150    1012            elseif index = 11013                lift regs amount1014                drop MyWizardBag 68 76 0         1015                wait 150     1016            elseif index = 21017                lift regs amount1018                drop MyWizardBag 96 76 0           1019                wait 150     1020            elseif index = 31021                lift regs amount1022                drop MyWizardBag 121 76 0 1023                wait 150              1024            else1025                lift regs amount1026                drop MyWizardBag 142 76 0  1027                wait 150          1028            endif1029        endif1030    1031            @ignore regs 1032    1033            if moveRegs = 11034                wait 5001035            endif1036        endwhile1037 1038        @setvar! regsID 39761039        @setvar! myCounter 01040 1041        while findtype regsID self as r 1042            @setvar! myCounter index1043            @ignore r1044        endwhile1045        @clearignore1046 1047        if counttype regsID self <= 101048            @setvar! amount 21049        elseif counttype regsID self <= 201050            @setvar! amount 4       1051        elseif counttype regsID self <= 501052            @setvar! amount 10    1053        elseif counttype regsID self <= 1001054            @setvar! amount 20    1055        elseif counttype regsID self <= 1501056            @setvar! amount 301057        elseif counttype regsID self <= 2001058            @setvar! amount 401059        else 1060            @setvar! amount 501061        endif1062 1063        while findtype regsID self as regs1064            @setvar! moveRegs 0 1065    1066            if myCounter = 01067                @setvar! moveRegs 11068            elseif myCounter != 0 and not find regs MyWizardBag1069                @setvar! moveRegs 11070            endif1071    1072        # Nightshade1073            if moveRegs = 1    1074                if index = 01075                    lift regs amount1076                    drop MyWizardBag 44 88 0 1077                    wait 150        1078                elseif index = 11079                    lift regs amount1080                    drop MyWizardBag 68 88 0     1081                    wait 150          1082                elseif index = 21083                    lift regs amount1084                    drop MyWizardBag 96 88 0 1085                    wait 150                1086                elseif index = 31087                    lift regs amount1088                    drop MyWizardBag 121 88 0   1089                    wait 150             1090                else1091                    lift regs amount1092                    drop MyWizardBag 142 88 0   1093                    wait 150          1094                endif1095            endif1096    1097            @ignore regs 1098    1099            if moveRegs = 11100                wait 5001101            endif1102 1103        endwhile1104 1105        @setvar! regsID 39741106        @setvar! myCounter 01107 1108        while findtype regsID self as r 1109            @setvar! myCounter index1110            @ignore r1111        endwhile1112        @clearignore1113 1114        if counttype regsID self <= 101115            @setvar! amount 21116        elseif counttype regsID self <= 201117            @setvar! amount 4       1118        elseif counttype regsID self <= 501119            @setvar! amount 10    1120        elseif counttype regsID self <= 1001121            @setvar! amount 20    1122        elseif counttype regsID self <= 1501123            @setvar! amount 301124        elseif counttype regsID self <= 2001125            @setvar! amount 401126        else 1127            @setvar! amount 501128        endif1129 1130        while findtype regsID self as regs1131            @setvar! moveRegs 0 1132    1133            if myCounter = 01134                @setvar! moveRegs 11135            elseif myCounter != 0 and not find regs MyWizardBag1136                @setvar! moveRegs 11137            endif1138    1139        # Mandrake root1140            if moveRegs = 1    1141                if index = 01142                    lift regs amount1143                    drop MyWizardBag 44 100 0     1144                    wait 150     1145                elseif index = 11146                    lift regs amount1147                    drop MyWizardBag 68 100 0   1148                    wait 150            1149                elseif index = 21150                    lift regs amount1151                    drop MyWizardBag 96 100 0  1152                    wait 150               1153                elseif index = 31154                    lift regs amount1155                    drop MyWizardBag 121 100 0 1156                    wait 150               1157                else1158                    lift regs amount1159                    drop MyWizardBag 142 100 0  1160                    wait 150           1161                endif1162            endif1163    1164            @ignore regs 1165    1166            if moveRegs = 11167                wait 5001168            endif1169        endwhile1170 1171        @setvar! regsID 39801172        @setvar! myCounter 01173 1174        while findtype regsID self as r 1175            @setvar! myCounter index1176            @ignore r1177        endwhile1178        @clearignore1179 1180        if counttype regsID self <= 101181            @setvar! amount 21182        elseif counttype regsID self <= 201183            @setvar! amount 4       1184        elseif counttype regsID self <= 501185            @setvar! amount 10    1186        elseif counttype regsID self <= 1001187            @setvar! amount 20    1188        elseif counttype regsID self <= 1501189            @setvar! amount 301190        elseif counttype regsID self <= 2001191            @setvar! amount 401192        else 1193            @setvar! amount 501194        endif1195 1196        while findtype regsID self as regs1197            @setvar! moveRegs 0 1198    1199            if myCounter = 01200                @setvar! moveRegs 11201            elseif myCounter != 0 and not find regs MyWizardBag1202                @setvar! moveRegs 1  1203            endif1204    1205        # Sulphurous Ash1206            if moveRegs = 1    1207                if index = 01208                    lift regs amount1209                    drop MyWizardBag 44 112 01210                    wait 150    1211                elseif index = 1 1212                    lift regs amount1213                    drop MyWizardBag 68 112 0         1214                    wait 150      1215                elseif index = 21216                    lift regs amount1217                    drop MyWizardBag 96 112 0      1218                    wait 150           1219                elseif index = 31220                    lift regs amount1221                    drop MyWizardBag 121 112 0     1222                    wait 150           1223                else1224                    lift regs amount1225                    drop MyWizardBag 142 112 0   1226                    wait 150          1227                endif1228            endif1229    1230            @ignore regs 1231    1232            if moveRegs = 11233                wait 5001234            endif1235        endwhile1236 1237        @setvar! regsID 39731238        @setvar! myCounter 01239 1240        while findtype regsID self as r 1241            @setvar! myCounter index1242            @ignore r1243        endwhile1244        @clearignore1245 1246        if counttype regsID self <= 101247            @setvar! amount 21248        elseif counttype regsID self <= 201249            @setvar! amount 4       1250        elseif counttype regsID self <= 501251            @setvar! amount 10    1252        elseif counttype regsID self <= 1001253            @setvar! amount 20    1254        elseif counttype regsID self <= 1501255            @setvar! amount 301256        elseif counttype regsID self <= 2001257            @setvar! amount 401258        else 1259            @setvar! amount 501260        endif1261 1262        while findtype regsID self as regs1263            @setvar! moveRegs 0 1264    1265            if myCounter = 01266                @setvar! moveRegs 11267            elseif myCounter != 0 and not find regs MyWizardBag1268                @setvar! moveRegs 11269            endif1270    1271        # Ginseng1272            if moveRegs = 1    1273                if index = 01274                    lift regs amount1275                    drop MyWizardBag 44 124 0    1276                    wait 150      1277                elseif index = 11278                    lift regs amount1279                    drop MyWizardBag 68 124 01280                    wait 150               1281                elseif index = 21282                    lift regs amount1283                    drop MyWizardBag 96 124 0  1284                    wait 150               1285                elseif index = 31286                    lift regs amount1287                    drop MyWizardBag 121 124 0        1288                    wait 150        1289                else1290                    lift regs amount1291                    drop MyWizardBag 142 124 0     1292                    wait 150        1293                endif1294            endif1295    1296            @ignore regs 1297    1298            if moveRegs = 11299                wait 5001300            endif1301        endwhile1302 1303        @setvar! regsID 39631304        @setvar! myCounter 01305 1306        while findtype regsID self as r 1307            @setvar! myCounter index1308            @ignore r1309        endwhile1310        @clearignore1311 1312        if counttype regsID self <= 101313            @setvar! amount 21314        elseif counttype regsID self <= 201315            @setvar! amount 4       1316        elseif counttype regsID self <= 501317            @setvar! amount 10    1318        elseif counttype regsID self <= 1001319            @setvar! amount 20    1320        elseif counttype regsID self <= 1501321            @setvar! amount 301322        elseif counttype regsID self <= 2001323            @setvar! amount 401324        else 1325            @setvar! amount 501326        endif1327 1328        while findtype regsID self as regs1329            @setvar! moveRegs 0 1330    1331        # Bloodmoss1332            if myCounter = 01333                @setvar! moveRegs 11334            elseif myCounter != 0 and not find regs MyWizardBag1335                @setvar! moveRegs 11336            endif1337    1338            if moveRegs = 1    1339                if index = 01340                    lift regs amount1341                    drop MyWizardBag 44 136 0    1342                    wait 150      1343                elseif index = 11344                    lift regs amount1345                    drop MyWizardBag 68 136 0       1346                    wait 150        1347                elseif index = 21348                    lift regs amount1349                    drop MyWizardBag 96 136 0    1350                    wait 150             1351                elseif index = 31352                    lift regs amount1353                    drop MyWizardBag 121 136 0    1354                    wait 150            1355                else1356                    lift regs amount1357                    drop MyWizardBag 142 136 0     1358                    wait 150        1359                endif1360            endif1361    1362            @ignore regs 1363    1364            if moveRegs = 11365                wait 5001366            endif1367        endwhile1368 1369        @setvar! regsID 39721370        @setvar! myCounter 01371 1372        while findtype regsID self as r 1373            @setvar! myCounter index1374            @ignore r1375        endwhile1376        @clearignore1377 1378        if counttype regsID self <= 101379            @setvar! amount 21380        elseif counttype regsID self <= 201381            @setvar! amount 4       1382        elseif counttype regsID self <= 501383            @setvar! amount 10    1384        elseif counttype regsID self <= 1001385            @setvar! amount 20    1386        elseif counttype regsID self <= 1501387            @setvar! amount 301388        elseif counttype regsID self <= 2001389            @setvar! amount 401390        else 1391            @setvar! amount 501392        endif1393 1394        while findtype regsID self as regs1395            @setvar! moveRegs 0 1396    1397            if myCounter = 01398                @setvar! moveRegs 11399            elseif myCounter != 0 and not find regs MyWizardBag1400                @setvar! moveRegs 11401            endif1402    1403        # Garlic  1404            if moveRegs = 1    1405                if index = 01406                    lift regs amount1407                    drop MyWizardBag 44 148 0     1408                    wait 150     1409                elseif index = 11410                    lift regs amount1411                    drop MyWizardBag 68 148 0 1412                    wait 150              1413                elseif index = 21414                    lift regs amount1415                    drop MyWizardBag 96 148 0  1416                    wait 150               1417                elseif index = 31418                    lift regs amount1419                    drop MyWizardBag 121 148 0    1420                    wait 150            1421                else1422                    lift regs amount1423                    drop MyWizardBag 142 148 0     1424                    wait 150        1425                endif1426            endif1427            @ignore regs 1428    1429            if moveRegs = 11430                wait 5001431            endif1432        endwhile1433 1434        @setvar! regsID 80121435        @setvar! myCounter 01436 1437        while findtype regsID self as r 1438            @setvar! myCounter index1439            @ignore r1440        endwhile1441        @clearignore1442 1443        if counttype regsID self <= 51444            @setvar! amount 11445        elseif counttype regsID self <= 101446            @setvar! amount 2       1447        elseif counttype regsID self <= 201448            @setvar! amount 4    1449        elseif counttype regsID self <= 401450            @setvar! amount 8    1451        else 1452            @setvar! amount 151453        endif1454 1455        while findtype regsID self as regs1456            @setvar! moveRegs 0 1457    1458            if myCounter = 01459                @setvar! moveRegs 11460            elseif myCounter != 0 and not find regs MyWizardBag1461                @setvar! moveRegs 11462            endif1463 1464        #Scrolls1465            if moveRegs = 1    1466                if index = 01467                    lift regs amount1468                    drop MyWizardBag 44 160 0   1469                    wait 150       1470                elseif index = 11471                    lift regs amount1472                    drop MyWizardBag 68 160 0   1473                    wait 150            1474                elseif index = 21475                    lift regs amount1476                    drop MyWizardBag 96 160 0  1477                    wait 150               1478                elseif index = 31479                    lift regs amount1480                    drop MyWizardBag 121 160 0       1481                    wait 150         1482                else1483                    lift regs amount1484                    drop MyWizardBag 142 160 0       1485                    wait 150      1486                endif1487            endif1488    1489            @ignore regs 1490    1491                if moveRegs = 11492                    wait 5001493                endif1494        endwhile1495            wait 15001496            overhead "Fuck thieves!" 20861497            wait 5001498        else 1499            overhead "[ NO WIZARD BAG! ]" 3371500        endif1501    endif   1502        hotkey "Organizer Agent-04"1503        wait 1001504        hotkey "Organizer Agent-02" 1505        wait 10001506        overhead "[ SCRIPT COMPLETE! ]" 371507        stop     1508endif1509 1510if EnableRedAlertRecall = 11511    if skill 'Tracking' > 50 and not findbuff 'tracking'1512        overhead 'I should keep an eye out for trouble...' 20861513            while not gumpexists 42674676591514                useskill 'tracking'1515                wait 2501516            endwhile1517                if gumpexists 42674676591518                    while not insysmsg "You will now hunt all hostile players."1519                        gumpresponse 8 42674676591520                        waitforgump 4267467659 50001521                    endwhile1522                    gumpresponse 6 42674676591523                    wait 10001524                    clearsysmsg                     1525                endif1526        gumpclose 42674676591527        overhead "[ AUTO RECALL ACTIVATED! ]" 3341528    endif 1529endif1530 1531if skill 'Healing' > 50 1532    if not bandaging and hits < maxhits1533        overhead '* applying bandages... *' 881534        hotkey "Bandage Self"1535    endif1536    1537    if counttype 'clean bandage%s%' < 5 and not cooldown "Inventory Timer"1538        overhead "[ RESTOCK BANDAGES! ]" 3371539        cooldown "Inventory Timer" 150001540    endif 1541endif1542 1543if EnableCastHeal = 11544    if skill 'Magery' >= 40 and diffhits > CastHealHPmeddiff and diffhits < CastHealHPhighdiff and mana >= 41545        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1546            getlabel myspellbook SpellbookLabel1547                for 51548                    wait 1001549                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1550                        ignore myspellbook 1551                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1552                            getlabel myspellbook SpellbookLabel1553                        else 1554                            overhead "[ NO SPELLBOOK! ]" 3371555                            break1556                        endif1557                    endif 1558                endfor1559            dclick myspellbook1560            wait 2501561        endif1562        cast 'Heal'1563        wait 1001564        while not casting                   1565            if targetexists1566                hotkey 'cancel current target'1567            endif1568                cast 'Heal'1569                wait 1001570        endwhile  1571        wft 15001572        target 'self' 1573        wait 250  1574 1575    elseif skill 'Magery' >= 60 and diffhits > CastHealHPhighdiff and mana >= 111576        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1577            getlabel myspellbook SpellbookLabel1578                for 51579                    wait 1001580                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1581                        ignore myspellbook 1582                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1583                            getlabel myspellbook SpellbookLabel1584                        else 1585                            overhead "[ NO SPELLBOOK! ]" 3371586                            break1587                        endif1588                    endif 1589                endfor1590            dclick myspellbook1591            wait 2501592        endif1593        cast 'Greater Heal'1594        wait 1001595        while not casting                   1596            if targetexists1597                hotkey 'cancel current target'1598            endif1599                cast 'Greater Heal'1600                wait 1001601        endwhile  1602        wft 15001603        target 'self' 1604        wait 250  1605 1606    elseif skill 'Magery' >= 40 and diffhits > CastHealHPhighdiff and mana >= 4 and mana < 111607        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1608            getlabel myspellbook SpellbookLabel1609                for 51610                    wait 1001611                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1612                        ignore myspellbook 1613                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1614                            getlabel myspellbook SpellbookLabel1615                        else 1616                            overhead "[ NO SPELLBOOK! ]" 3371617                            break1618                        endif1619                    endif 1620                endfor1621            dclick myspellbook1622            wait 2501623        endif1624        cast 'Heal'1625        wait 1001626        while not casting                   1627            if targetexists1628                hotkey 'cancel current target'1629            endif1630                cast 'Heal'1631                wait 1001632        endwhile  1633        wft 15001634        target 'self' 1635        wait 250 1636    endif1637endif 1638 1639if EnableCastCure = 11640    if poisoned and skill 'Magery' >= 40 and mana >= 61641        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1642            getlabel myspellbook SpellbookLabel1643                for 51644                    wait 1001645                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1646                        ignore myspellbook 1647                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1648                            getlabel myspellbook SpellbookLabel1649                        else 1650                            overhead "[ NO SPELLBOOK! ]" 3371651                            break1652                        endif1653                    endif 1654                endfor1655            dclick myspellbook1656            wait 2501657        endif1658        cast 'Cure'1659        wait 1001660        while not casting                   1661            if targetexists1662                hotkey 'cancel current target'1663            endif1664                cast 'Cure'  1665                wait 1001666        endwhile  1667        wft 15001668        target 'self' 1669        wait 250 1670    endif 1671endif1672            1673if EnableCurePotion = 11674    if poisoned and not cooldown "Cure Potion" and hits < CurePotHP1675        if findtype "Orange Potion" self as curepot1676            overhead '* drinking cure potion... *' 441677            dclick curepot1678            cooldown "Cure Potion" 105001679        else1680            overhead "[ NO CURE POTS! ]" 3371681        endif1682    endif1683endif 1684 1685if EnableHealPotion = 11686    if hits < HealPotHP and not cooldown "Healing Potion"1687        if findtype "Yellow Potion" self as healpot1688            overhead '* drinking heal potion... *' 2531689            dclick healpot1690            cooldown "Healing Potion" 105001691        else 1692            overhead '[ NO HEAL POTS! ]' 3371693        endif1694    endif1695endif 1696 1697if EnableRefreshPotion = 11698    if diffstam >= RefreshPotSPdiff and not cooldown "Refresh Potion"1699        if findtype "Red Potion" self as refreshpot1700            overhead '* drinking refresh potion... *' 341701            dclick refreshpot1702            cooldown "Refresh Potion" 105001703        else 1704            overhead '[ NO REFRESH POTS! ]' 3371705        endif1706    endif1707endif1708 1709if EnableMagicReflection = 1 1710    if skill 'Magery' >= 60 and not findbuff 'Magic Reflection' and not cooldown "Magic Shield" and mana > 14 and TimeToGo = 0 1711        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1712            getlabel myspellbook SpellbookLabel1713                for 51714                    wait 1001715                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1716                        ignore myspellbook 1717                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1718                            getlabel myspellbook SpellbookLabel1719                        else 1720                            overhead "[ NO SPELLBOOK! ]" 3371721                            break1722                        endif1723                    endif 1724                endfor1725            dclick myspellbook1726            wait 2501727        endif1728        for 101729            cast 'Magic Reflection' 1730            waitfortarget 15001731            hotkey 'Target Self'1732            wait 10001733                if insysmsg "That spell will not adhere"1734                    cooldown "Magic Shield" 300001735                    overhead "Too soon for a new shield.  Give me a sec..." 20861736                    replay1737                endif 1738                if cooldown "Spell Fail"1739                    wait 10001740                    overhead "Let me try that again..." 20861741                    wait 10001742                else1743                    break1744                endif 1745        endfor 1746        wait 5001747        overhead "[ MAGIC REFLECT ACTIVE! ]" 101748        wait 15001749        replay1750    endif  1751endif 1752 1753if EnableReactiveArmour = 1 1754    if skill 'Magery' >= 30 and not findbuff 'Reactive Armor' and mana >= 4 and TimeToGo = 01755        if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1756            getlabel myspellbook SpellbookLabel1757                for 51758                    wait 1001759                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel1760                        ignore myspellbook 1761                        if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook1762                            getlabel myspellbook SpellbookLabel1763                        else 1764                            overhead "[ NO SPELLBOOK! ]" 3371765                            break1766                        endif1767                    endif 1768                endfor1769            dclick myspellbook1770            wait 2501771        endif1772        for 101773            cast 'Reactive Armor' 1774            waitfortarget 15001775            hotkey 'Target Self'1776            wait 10001777                if insysmsg "That spell will not adhere"1778                    cooldown "Magic Armor" 300001779                    overhead "Too soon for a new magic armor.  Give me a sec..." 20861780                    replay1781                endif 1782                if cooldown "Spell Fail"1783                    wait 5001784                    overhead "Let me try that again..." 20861785                    wait 5001786                else1787                    break1788                endif 1789        endfor 1790        wait 5001791        overhead "[ REACTIVE ARMOR ACTIVE! ]" 771792        wait 10001793        replay1794    endif  1795endif 1796 1797if EnableGoldVacuum = 11798    if findtype "gold coin" ground -1 -1 15 as droppedmoney and not cooldown "Gold Radar"   1799        overhead "[ $ ]" 149 droppedmoney         1800        overhead "�" 149 droppedmoney1801        cooldown "Gold Radar" 35001802    endif1803    1804    if findtype "gold coin" ground -1 -1 2 as droppedmoney and not cooldown "Gold Vacuum"1805        overhead "[ CLEANUP... ]" 1491806        hotkey "Grab Item"1807        wft 25001808        target droppedmoney1809        wait 2501810        if insysmsg "Invalid or inaccessible item"1811            overhead "I can't get to that!" 20861812            wait 5001813            @ignore droppedmoney1814        endif  1815        cooldown "Gold Vacuum" 5001816    endif1817endif 1818 1819if skill "Spirit Speak" >= 80 and not cooldown "Spirit Speak"1820    if findtype "corpse" ground -1 -1 12 as batteries1821        useskill "spiritspeak"1822        @ignore batteries1823        cooldown "Spirit Speak" 110001824        wait 10001825    endif 1826endif1827 1828if EnableAutoCarving = 11829    if findtype 'Elven SpellBlade' self 1830        if findtype "corpse" ground -1 -1 2 as deadbody1831            dclicktype "Elven Spellblade"1832            waitfortarget 15001833            target 'self'1834            wait 7501835            if insysmsg "You don't see anything"1836                @ignore deadbody1837                replay1838            else 1839                overhead "* skinning corpse... *" 3371840                @ignore deadbody1841            endif1842        endif 1843    else1844        if not cooldown "Inventory Timer"1845            overhead "[ NO SKINNING KNIFE! ]" 3371846            sysmsg "Disable EnableAutoCarving in script variables to turn off this overhead message!" 01847            cooldown "Inventory Timer" 150001848        endif1849        wait 5001850    endif 1851endif1852        1853if skill 'Magery' >= 80 and skill 'Spirit Speak' >= 80 and EnableSummons = 1 and TotalSummonCount > 01854    1855    if followers = 01856        @setvar! NeedtoSummon 11857    elseif followers = 1 and TotalSummonCount > 01858        @setvar! NeedtoSummon 1      1859    1860    elseif followers = 2 and TotalSummonCount = 11861        @setvar! NeedtoSummon 0 1862    elseif followers = 2 and TotalSummonCount = 21863        @setvar! NeedtoSummon 11864    elseif followers = 2 and TotalSummonCount = 31865        @setvar! NeedtoSummon 11866    elseif followers = 2 and TotalSummonCount = 41867        @setvar! NeedtoSummon 11868    1869    elseif followers = 3 and TotalSummonCount = 11870        @setvar! NeedtoSummon 0 1871    elseif followers = 3 and TotalSummonCount = 21872        @setvar! NeedtoSummon 01873    elseif followers = 3 and TotalSummonCount = 31874        @setvar! NeedtoSummon 11875    elseif followers = 3 and TotalSummonCount = 41876        @setvar! NeedtoSummon 11877    1878    elseif followers = 4 and TotalSummonCount = 11879        @setvar! NeedtoSummon 0 1880    elseif followers = 4 and TotalSummonCount = 21881        @setvar! NeedtoSummon 01882    elseif followers = 4 and TotalSummonCount = 31883        @setvar! NeedtoSummon 01884    elseif followers = 4 and TotalSummonCount = 41885        @setvar! NeedtoSummon 1  1886    elseif followers = 51887        @setvar! NeedtoSummon 01888    endif1889    1890    if NeedtoSummon = 11891       1892        removelist summonList1893        createlist summonList1894    1895   if not varexist myMainTankPet1896        @setvar! myMainTankPet 01897    endif1898    if not varexist fireOne1899        @setvar! fireOne 01900    endif 1901    if not varexist fireTwo1902        @setvar! fireTwo 01903    endif1904    if not varexist earthOne1905        @setvar! earthOne 01906    endif1907    if not varexist earthTwo1908        @setvar! earthTwo 01909    endif1910    if not varexist demonOne1911        @setvar! demonOne 01912    endif1913    if not varexist demonTwo1914        @setvar! demonTwo 01915    endif1916    if not varexist airOne1917        @setvar! airOne 01918    endif1919    if not varexist airTwo1920        @setvar! airTwo 01921    endif1922    if not varexist waterOne1923        @setvar! waterOne 01924    endif1925    if not varexist waterTwo1926        @setvar! waterTwo 01927    endif1928 1929    overhead "* summoning a bodyguard... *" 121930    wait 10001931    overhead "I call upon the power of the elements..." 20861932    1933    if SummonEarthElemental > 01934        if dead earthOne or not find earthOne ground -1 -1 18         1935            pushlist summonList "Earth Elemental"1936            @setvar! earthOne 11937        endif1938        if SummonEarthElemental > 11939            if dead earthTwo or not find earthTwo ground -1 -1 181940                pushlist summonList "Earth Elemental"1941                @setvar! earthTwo 11942            endif1943        endif1944    endif1945 1946    if SummonFireElemental > 01947        if dead fireOne or not find fireOne ground -1 -1 18 1948            pushlist summonList "Fire Elemental"1949            @setvar! fireOne 11950        endif1951        if SummonFireElemental > 11952            if dead fireTwo or not find fireTwo ground -1 -1 181953                pushlist summonList "Fire Elemental"1954                @setvar! fireTwo 11955            endif1956        endif1957    endif1958 1959    if SummonDemon > 01960        if dead demonOne or not find demonOne ground -1 -1 181961            pushlist summonList "Earth Elemental"1962            @setvar! demonOne 11963        endif1964        if SummonDemon > 11965            if dead demonTwo or not find demonTwo ground -1 -1 181966                pushlist summonList "Earth Elemental"1967                @setvar! demonTwo 11968            endif1969        endif1970    endif1971 1972    if SummonAirElemental > 01973        if dead airOne or not find airOne ground -1 -1 181974            pushlist summonList "Air Elemental"1975            @setvar! airOne 11976        endif1977        if SummonAirElemental > 11978            if dead airTwo or not find airTwo ground -1 -1 181979                pushlist summonList "Air Elemental"1980                @setvar! airTwo 11981            endif1982        endif1983    endif1984 1985    if SummonWaterElemental > 01986        if dead waterOne or not find waterOne ground -1 -1 181987            pushlist summonList "Water Elemental"1988            @setvar! waterOne 11989        endif1990        if SummonWaterElemental > 11991            if dead waterTwo or not find waterTwo ground -1 -1 181992                pushlist summonList "Water Elemental"1993                @setvar! waterTwo 11994            endif1995        endif1996    endif    1997 1998    if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook1999        getlabel myspellbook SpellbookLabel2000        wait 2502001            for 52002                wait 2502003                if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel2004                    ignore myspellbook 2005                    if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook2006                        getlabel myspellbook SpellbookLabel2007                        wait 2502008                    else 2009                        overhead "[ NO SPELLBOOK! ]" 3372010                        break2011                    endif2012                endif 2013            endfor2014        dclick myspellbook2015    endif2016    2017    foreach summon in summonList2018    2019            while mana < 502020                if diffhits >= 502021                    replay2022                endif2023                wait 5002024                if not findbuff "Actively Meditating"2025                    useskill "meditation"2026                    overhead "* meditating... *" 102027                endif2028                wait 10002029            endwhile    2030 2031                    cast summon2032                    wft 5002033                    if targetexists 2034                        hotkey "Target Self"2035                        wait 2002036                    endif2037                    2038                    wait 5002039                    if SummonName = 22040                        overhead "I summon thee, Protector of Harvesters!" 20862041                    elseif SummonName = 32042                        overhead "I require another protector!" 20862043                    elseif SummonName = 42044                        overhead "There's still room in the back!" 20862045                    else2046                        overhead "Send me a worthy protector!" 20862047                    endif 2048                    2049                    while casting 2050                        wait 502051                    endwhile2052                    2053                    if diffhits >= 402054                        overhead "Hang on, I need a heal!" 20862055                        hotkey '> Interrupt'2056                        replay2057                    endif2058                    wait 250                2059               2060        @setvar! myFreshlySummonedPet 02061        2062            if summon = "Earth Elemental" and findtype 14 ground -1 -1 2 as myPet2063                @setvar! myFreshlySummonedPet myPet2064                if earthOne = 12065                    @setvar! earthOne myPet2066                elseif earthTwo = 12067                    @setvar! earthTwo myPet2068                endif2069 2070            elseif summon = "Fire Elemental" and findtype 15 ground -1 -1 2 as myPet 2071                @setvar! myFreshlySummonedPet myPet2072                if fireOne = 12073                    @setvar! fireOne myPet2074                elseif fireTwo = 12075                    @setvar! fireTwo myPet2076                endif2077 2078            elseif summon = "Summon Daemon" and findtype 9 ground -1 -1 2 as myPet2079                @setvar! myFreshlySummonedPet myPet2080                if demonOne = 12081                    @setvar! demonOne myPet2082                elseif demonTwo = 12083                    @setvar! demonTwo myPet2084                endif2085 2086            elseif summon = "Water Elemental" and findtype 16 ground -1 -1 2 as myPet2087                @setvar! myFreshlySummonedPet myPet2088                if waterOne = 12089                    @setvar! waterOne myPet2090                elseif waterTwo = 12091                    @setvar! waterTwo myPet2092                endif2093 2094            elseif summon = "Air Elemental" and findtype 13 ground -1 -1 2 as myPet2095                @setvar! myFreshlySummonedPet myPet2096                if airOne = 12097                    @setvar! airOne myPet2098                elseif airTwo = 12099                    @setvar! airTwo myPet2100                endif2101            endif2102        2103            if myFreshlySummonedPet = 02104                overhead "I don't see my elemental..." 20862105                wait 5002106                break2107            endif 2108            2109            if NameSummonedPets = 02110                wait 20002111                overhead "{{summon}} will protect you now...." 1909 myFreshlySummonedPet2112                menu myFreshlySummonedPet 32113                @ignore myFreshlySummonedPet        2114                wait 5002115                poplist summonList "front"2116                cooldown "Guard Timer" 600002117                break2118            endif2119            2120            if NameSummonedPets = 1 and list petNameList > 02121                for 22122                if SummonName = 12123                    wait 20002124                    overhead "What is your name, minion?" 20862125                    wait 2502126                    foreach petName in petNameList2127                        rename myFreshlySummonedPet petName2128                        wait 2502129                        if insysmsg "That name is unacceptable"2130                            sysmsg "Unable to name summon: {{petName}}" 342131                            clearsysmsg 2132                            poplist petNameList "front"2133                            wait 5002134                        else 2135                            break2136                        endif2137                    endfor2138                    wait 10002139                    overhead "You may call me {{petName}}, Master." 1909 myFreshlySummonedPet2140                    wait 25002141                    overhead "{{petName}} will protect you now...." 1909 myFreshlySummonedPet2142                    @setvar! NameOne petName2143                    menu myFreshlySummonedPet 32144                    @ignore myFreshlySummonedPet2145                    cooldown "Guard Timer" 600002146                    2147                    if followers = 02148                        @setvar! NeedtoSummon 12149                    elseif followers = 1 and TotalSummonCount > 02150                        @setvar! NeedtoSummon 1      2151    2152                    elseif followers = 2 and TotalSummonCount = 12153                        @setvar! NeedtoSummon 0 2154                        @setvar! SummonName 12155                    elseif followers = 2 and TotalSummonCount = 22156                        @setvar! NeedtoSummon 12157                    elseif followers = 2 and TotalSummonCount = 32158                        @setvar! NeedtoSummon 12159                    elseif followers = 2 and TotalSummonCount = 42160                        @setvar! NeedtoSummon 12161    2162                    elseif followers = 3 and TotalSummonCount = 12163                        @setvar! NeedtoSummon 0 2164                        @setvar! SummonName 12165                    elseif followers = 3 and TotalSummonCount = 22166                        @setvar! NeedtoSummon 02167                        @setvar! SummonName 12168                    elseif followers = 3 and TotalSummonCount = 32169                        @setvar! NeedtoSummon 12170                    elseif followers = 3 and TotalSummonCount = 42171                        @setvar! NeedtoSummon 12172    2173                    elseif followers = 4 and TotalSummonCount = 12174                        @setvar! NeedtoSummon 0 2175                        @setvar! SummonName 12176                    elseif followers = 4 and TotalSummonCount = 22177                        @setvar! NeedtoSummon 02178                        @setvar! SummonName 12179                    elseif followers = 4 and TotalSummonCount = 32180                        @setvar! NeedtoSummon 02181                        @setvar! SummonName 12182                    elseif followers = 4 and TotalSummonCount = 42183                        @setvar! NeedtoSummon 1  2184                    elseif followers = 52185                        @setvar! NeedtoSummon 02186                        @setvar! SummonName 12187                    endif2188                    2189                    if NeedtoSummon = 02190                        @setvar! SummonName 12191                        wait 5002192                        overhead "It's harvesting time!" 20862193                        wait 5002194                    elseif NeedtoSummon = 12195                        wait 5002196                        overhead "Thank you, {{petName}}, but you'll need some help..." 20862197                        wait 10002198                        @setvar! SummonName 22199                        poplist petNameList front2200                    else 2201                        poplist petNameList front2202                        break2203                    endif2204                    poplist petNameList front2205                    break2206                2207                elseif SummonName = 22208                    wait 15002209                    overhead "Welcome aboard! Name and rank?" 20862210                    wait 2502211                    foreach petName in petNameList2212                        rename myFreshlySummonedPet petName2213                        wait 2502214                        if insysmsg "That name is unacceptable"2215                            sysmsg "Unable to name summon: {{petName}}" 342216                            clearsysmsg 2217                            poplist petNameList "front"2218                            wait 5002219                        else 2220                            break2221                        endif2222                    endfor2223                    wait 20002224                    overhead "I am {{petName}}, Master." 1909 myFreshlySummonedPet2225                    wait 25002226                    overhead "{{petName}} is yours to command..." 1909 myFreshlySummonedPet2227                    @setvar! NameTwo petName2228                    menu myFreshlySummonedPet 32229                    @ignore myFreshlySummonedPet2230                    poplist petNameList front2231                    cooldown "Guard Timer" 600002232                    2233                    if followers = 02234                        @setvar! NeedtoSummon 12235                    elseif followers = 1 and TotalSummonCount > 02236                        @setvar! NeedtoSummon 1      2237    2238                    elseif followers = 2 and TotalSummonCount = 12239                        @setvar! NeedtoSummon 0 2240                        @setvar! SummonName 12241                    elseif followers = 2 and TotalSummonCount = 22242                        @setvar! NeedtoSummon 12243                    elseif followers = 2 and TotalSummonCount = 32244                        @setvar! NeedtoSummon 12245                    elseif followers = 2 and TotalSummonCount = 42246                        @setvar! NeedtoSummon 12247    2248                    elseif followers = 3 and TotalSummonCount = 12249                        @setvar! NeedtoSummon 0 2250                        @setvar! SummonName 12251                    elseif followers = 3 and TotalSummonCount = 22252                        @setvar! NeedtoSummon 02253                        @setvar! SummonName 12254                    elseif followers = 3 and TotalSummonCount = 32255                        @setvar! NeedtoSummon 12256                    elseif followers = 3 and TotalSummonCount = 42257                        @setvar! NeedtoSummon 12258    2259                    elseif followers = 4 and TotalSummonCount = 12260                        @setvar! NeedtoSummon 0 2261                        @setvar! SummonName 12262                    elseif followers = 4 and TotalSummonCount = 22263                        @setvar! NeedtoSummon 02264                        @setvar! SummonName 12265                    elseif followers = 4 and TotalSummonCount = 32266                        @setvar! NeedtoSummon 02267                        @setvar! SummonName 12268                    elseif followers = 4 and TotalSummonCount = 42269                        @setvar! NeedtoSummon 1  2270                    elseif followers = 52271                        @setvar! NeedtoSummon 02272                        @setvar! SummonName 12273                    endif2274                    2275                    if NeedtoSummon = 02276                        @setvar! SummonName 12277                        wait 15002278                        overhead "Alright team, let's do this!" 20862279                    elseif NeedtoSummon = 12280                        wait 5002281                        overhead "Hmm... I think we should bring even more..."2282                        wait 5002283                        @setvar! SummonName 32284                        poplist petNameList front2285                    else 2286                        poplist petNameList front2287                        break2288                    endif2289                    poplist petNameList front2290                    break2291                2292                elseif SummonName = 32293                    wait 15002294                    overhead "Introduce yourself to the team..." 20862295                    wait 2502296                    foreach petName in petNameList2297                        rename myFreshlySummonedPet petName2298                        wait 2502299                        if insysmsg "That name is unacceptable"2300                            sysmsg "Unable to name summon: {{petName}}" 342301                            clearsysmsg 2302                            poplist petNameList "front"2303                            wait 5002304                        else 2305                            break2306                        endif2307                    endfor2308                    wait 10002309                    overhead "{{petName}} is what they call me..." 1909 myFreshlySummonedPet2310                    wait 20002311                    overhead "{{petName}} will kill for you." 1909 myFreshlySummonedPet2312                    @setvar! NameThree petName2313                    menu myFreshlySummonedPet 32314                    @ignore myFreshlySummonedPet2315                    poplist petNameList front2316                    cooldown "Guard Timer" 600002317 2318                    if followers = 02319                        @setvar! NeedtoSummon 12320                    elseif followers = 1 and TotalSummonCount > 02321                        @setvar! NeedtoSummon 1      2322    2323                    elseif followers = 2 and TotalSummonCount = 12324                        @setvar! NeedtoSummon 0 2325                        @setvar! SummonName 12326                    elseif followers = 2 and TotalSummonCount = 22327                        @setvar! NeedtoSummon 12328                    elseif followers = 2 and TotalSummonCount = 32329                        @setvar! NeedtoSummon 12330                    elseif followers = 2 and TotalSummonCount = 42331                        @setvar! NeedtoSummon 12332    2333                    elseif followers = 3 and TotalSummonCount = 12334                        @setvar! NeedtoSummon 0 2335                        @setvar! SummonName 12336                    elseif followers = 3 and TotalSummonCount = 22337                        @setvar! NeedtoSummon 02338                        @setvar! SummonName 12339                    elseif followers = 3 and TotalSummonCount = 32340                        @setvar! NeedtoSummon 12341                    elseif followers = 3 and TotalSummonCount = 42342                        @setvar! NeedtoSummon 12343    2344                    elseif followers = 4 and TotalSummonCount = 12345                        @setvar! NeedtoSummon 0 2346                        @setvar! SummonName 12347                    elseif followers = 4 and TotalSummonCount = 22348                        @setvar! NeedtoSummon 02349                        @setvar! SummonName 12350                    elseif followers = 4 and TotalSummonCount = 32351                        @setvar! NeedtoSummon 02352                        @setvar! SummonName 12353                    elseif followers = 4 and TotalSummonCount = 42354                        @setvar! NeedtoSummon 1  2355                    elseif followers = 52356                        @setvar! NeedtoSummon 02357                        @setvar! SummonName 12358                    endif2359                    2360                    if NeedtoSummon = 02361                        @setvar! SummonName 12362                        wait 15002363                        overhead "That's what I like to hear!  Time to work..." 20862364                    elseif NeedtoSummon = 12365                        @setvar! SummonName 42366                        wait 5002367                        overhead "Hmm..  I think see room for one more...." 20862368                        wait 5002369                        poplist petNameList front2370                    else 2371                        poplist petNameList front2372                        break2373                    endif2374                    poplist petNameList front2375                    break2376                    2377                elseif SummonName = 42378                    wait 15002379                    overhead "Do you have a name?" 20862380                    wait 2502381                    foreach petName in petNameList2382                        rename myFreshlySummonedPet petName2383                        wait 2502384                        if insysmsg "That name is unacceptable"2385                            sysmsg "Unable to name summon: {{petName}}" 342386                            clearsysmsg 2387                            poplist petNameList "front"2388                            wait 5002389                        else 2390                            break2391                        endif2392                    endfor2393                    wait 10002394                    overhead "Yes, I am {{petName}}, Master." 1909 myFreshlySummonedPet2395                    wait 20002396                    overhead "{{petName}} will protect you now...." 1909 myFreshlySummonedPet2397                    @setvar! NameFour petName2398                    menu myFreshlySummonedPet 32399                    @ignore myFreshlySummonedPet2400                    poplist petNameList front2401                    cooldown "Guard Timer" 600002402                    @setvar! SummonName 12403                    wait 15002404                    overhead "Alright team, let's do this!" 20862405                    break2406                else 2407                    @setvar! SummonName 12408                endif  2409                endfor              2410            endif 2411                    if followers = 02412                        @setvar! NeedtoSummon 12413                    elseif followers = 1 and TotalSummonCount > 02414                        @setvar! NeedtoSummon 1      2415    2416                    elseif followers = 2 and TotalSummonCount = 12417                        @setvar! NeedtoSummon 0 2418                        @setvar! SummonName 12419                        break2420                    elseif followers = 2 and TotalSummonCount = 22421                        @setvar! NeedtoSummon 12422                    elseif followers = 2 and TotalSummonCount = 32423                        @setvar! NeedtoSummon 12424                    elseif followers = 2 and TotalSummonCount = 42425                        @setvar! NeedtoSummon 12426    2427                    elseif followers = 3 and TotalSummonCount = 12428                        @setvar! NeedtoSummon 0 2429                        @setvar! SummonName 12430                        break2431                    elseif followers = 3 and TotalSummonCount = 22432                        @setvar! NeedtoSummon 02433                        @setvar! SummonName 12434                        break2435                    elseif followers = 3 and TotalSummonCount = 32436                        @setvar! NeedtoSummon 12437                    elseif followers = 3 and TotalSummonCount = 42438                        @setvar! NeedtoSummon 12439    2440                    elseif followers = 4 and TotalSummonCount = 12441                        @setvar! NeedtoSummon 0 2442                        @setvar! SummonName 12443                        break2444                    elseif followers = 4 and TotalSummonCount = 22445                        @setvar! NeedtoSummon 02446                        @setvar! SummonName 12447                        break2448                    elseif followers = 4 and TotalSummonCount = 32449                        @setvar! NeedtoSummon 02450                        @setvar! SummonName 12451                        break2452                    elseif followers = 4 and TotalSummonCount = 42453                        @setvar! NeedtoSummon 1  2454                    elseif followers = 52455                        @setvar! NeedtoSummon 02456                        @setvar! SummonName 12457                        break2458                    endif2459        endfor2460        replay2461    endif2462endif2463    2464if EnableSummons = 1 2465    if dead myMainTankPet2466        if not dead earthOne2467            @setvar! myMainTankPet earthOne2468        elseif not dead earthTwo2469            @setvar! myMainTankPet earthTwo2470        elseif not dead waterOne2471            @setvar! myMainTankPet waterOne2472        elseif not dead waterTwo2473            @setvar! myMainTankPet waterTwo2474        elseif not dead demonOne2475            @setvar! myMainTankPet demonOne2476        elseif not dead demonTwo2477            @setvar! myMainTankPet demonTwo2478        elseif not dead fireOne2479            @setvar! myMainTankPet fireOne2480        elseif not dead fireTwo2481            @setvar! myMainTankPet fireTwo2482        elseif not dead airOne2483            @setvar! myMainTankPet airOne2484        elseif not dead airTwo2485            @setvar! myMainTankPet airTwo2486        endif2487    else 2488        if not cooldown "Guard Timer" 2489            if GuardComment = 12490                overhead "* guarding... *" 2114 myMainTankPet2491                menu myMainTankPet 32492                @setvar! GuardComment 22493                wait 5002494                cooldown "Guard Timer" 1200002495            elseif GuardComment = 22496                overhead "* looks around menacingly... *" 2114 myMainTankPet2497                menu myMainTankPet 32498                @setvar! GuardComment 32499                wait 5002500                cooldown "Guard Timer" 1200002501            elseif GuardComment = 32502                overhead "* cracks knuckles... *" 2114 myMainTankPet2503                menu myMainTankPet 32504                @setvar! GuardComment 42505                wait 5002506                cooldown "Guard Timer" 1200002507            elseif GuardComment = 42508                overhead "* scanning for threats... *" 2114 myMainTankPet2509                menu myMainTankPet 32510                wait 5002511                @setvar! GuardComment 52512                cooldown "Guard Timer" 1200002513            elseif GuardComment = 52514                overhead "* growls... *" 2114 myMainTankPet2515                menu myMainTankPet 32516                @setvar! GuardComment 62517                wait 5002518                cooldown "Guard Timer" 1200002519           elseif GuardComment = 62520               overhead "This isn't very exciting, is it?" 44 myMainTankPet2521                menu myMainTankPet 32522                @setvar! GuardComment 12523                wait 5002524                cooldown "Guard Timer" 1200002525            else 2526                overhead "I think we've already passed that tree today..." 44 myMainTankPet2527                menu myMainTankPet 32528                @setvar! GuardComment 12529                wait 5002530                cooldown "Guard Timer" 120000               2531            endif 2532        endif2533    endif 2534 2535if EnableWeaponWarning = 12536    if skill "Mace Fighting" > 50 and not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" self and not cooldown "Inventory Timer"2537        overhead "[ NO WEAPON! ]" 3372538        cooldown "Inventory Timer" 100002539        sysmsg "Disable 'EnableWeaponWarning' in script variables to turn off this feature!" 0        2540    endif 2541 2542    if skill "Swordsmanship" > 50 and not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" self and not cooldown "Inventory Timer"2543        overhead "[ NO WEAPON! ]" 3372544        cooldown "Inventory Timer" 100002545        sysmsg "Disable 'EnableWeaponWarning' in script variables to turn off this feature!" 0        2546    endif2547 2548    if skill "Magery" > 80 and findtype "spellbook" self as myspellbook and not cooldown "Inventory Timer"2549        getlabel myspellbook SpellbookLabel2550        wait 250 2551        for 52552            if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel2553                ignore myspellbook 2554                if findtype "spellbook" self as myspellbook2555                    getlabel myspellbook SpellbookLabel2556                elseif not cooldown "Inventory Timer"2557                    overhead "[ NO SPELLBOOK! ]" 3372558                    cooldown "Inventory Timer" 100002559                    sysmsg "Disable 'EnableWeaponWarning' in script variables to turn off this feature!" 02560                    break2561                endif2562            endif 2563        endfor2564    endif 2565endif2566 2567if AllInventoryMessage = 1 and not cooldown "Inventory Timer"2568    if counttype "Yellow Potion" self = 0 and YellowInventoryMessage = 12569        overhead "[ RESTOCK HEAL POTS! ]" 2532570        cooldown "Inventory Timer" 100002571        sysmsg "Disable YellowInventoryMessage in script variables to turn off this overhead message!" 02572    endif 2573 2574    if counttype "Orange Potion" self = 0 and OrangeInventoryMessage = 12575        overhead "[ RESTOCK CURE POTS! ]" 442576        cooldown "Inventory Timer" 100002577        sysmsg "Disable OrangeInventoryMessage in script variables to turn off this overhead message!" 02578    endif 2579 2580    if counttype "Red Potion" self = 0 and RedInventoryMessage = 12581        overhead "[ RESTOCK REFRESH POTS! ]" 372582        cooldown "Inventory Timer" 100002583        sysmsg "Disable RedInventoryMessage in script variables to turn off this overhead message!" 02584    endif 2585 2586    if counttype "White Potion" self = 0 and WhiteInventoryMessage = 1 2587        overhead "[ RESTOCK STRENGTH POTS! ]" 9562588        cooldown "Inventory Timer" 100002589        sysmsg "Disable WhiteInventoryMessage in script variables to turn off this overhead message!" 02590    endif 2591 2592    if counttype "Blue Potion" self = 0 and BlueInventoryMessage = 12593        overhead "[ RESTOCK AGILITY POTS! ]" 932594        cooldown "Inventory Timer" 100002595        sysmsg "Disable BlueInventoryMessage in script variables to turn off this overhead message!" 02596    endif 2597 2598    if counttype "Black Potion" self = 0 and BlackInventoryMessage = 12599        overhead "[ RESTOCK MAGIC RESIST POTS! ]" 02600        cooldown "Inventory Timer" 100002601        sysmsg "Disable BlackInventoryMessage in script variables to turn off this overhead message!" 02602    endif 2603 2604    if counttype "rope" self = 0 and RopeInventoryMessage = 12605        overhead "[ RESTOCK ROPE! ]" 27992606        cooldown "Inventory Timer" 100002607        sysmsg "Disable RopeInventoryMessage in script variables to turn off this overhead message!" 02608    endif 2609endif2610 2611@setvar! PaytheMan 12612 2613if PaytheMan = 1 and not cooldown "Inventory Timer"2614    if find '0x6C0A02' 'ground' -1 -1 10 as VENDOR and not varexist EASTEREGG2615        overhead "Hey! I loooove your Harvest script!" 2532616        wait 10002617        overhead "It makes me so much money, I should spend it all here!" 2532618        wait 20002619        overhead ":)" 2086 VENDOR2620        wait 5002621        overhead "Well, thank you!" 2086 VENDOR2622        wait 20002623        overhead "I'd be happy to take any donations!  The chest beside me is public (shhh!) and master loves gifts!" 2086 VENDOR2624        wait 45002625        overhead "Sign the guestbook!" 2086 VENDOR2626        wait 5002627            if find '0x4A38A441' 'ground' -1 -1 15 as DONATIONS2628                wait 5002629                overhead "(in this chest!)" 0 DONATIONS2630            endif2631        wait 25002632        overhead "Good luck out there!  Fuck PKs & thieves! :)" 2086 VENDOR2633        setvar EASTEREGG 12634    else 2635        cooldown "Inventory Timer" 40002636        if find '0x4A38A441' 'ground' -1 -1 15 as DONATIONS2637            overhead "DONATIONS!" 253 DONATIONS2638            overhead "�" 253 DONATIONS2639        endif2640    endif 2641endif2642 2643if EnableMushroomMaker = 12644    if skill "Magery" >= 80 and counttype "mushroom" self = 0  2645    2646        if skill "Magery" >= 80 and not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook2647            getlabel myspellbook SpellbookLabel2648                for 52649                    wait 2502650                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel2651                        ignore myspellbook 2652                    if skill "Magery" > 80 and not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook2653                        getlabel myspellbook SpellbookLabel2654                        endif2655                    endif 2656                endfor2657                dclick myspellbook2658            wait 2502659        endif 2660        2661        overhead "Hang on, I need to make some shrooms..." 20862662        wait 1000    2663            for 1002664                if counttype "Ginseng" self > 0 and counttype "Garlic" self > 0 and counttype "Mandrake Root%s%" self > 0 and mana >= 42665                    cast "create food"2666                    wait 1002667                    while casting 2668                        wait 502669                    endwhile2670                    if counttype "mushroom" self >= MakeMushroomAmount2671                        break2672                    endif2673                else2674                    overhead "...I'm out of regs!" 2086 2675                    @setvar! TimeToGo 12676                    replay2677                endif2678            endfor2679            overhead "There, that's better!" 20862680            wait 5002681        endif2682    else 2683        if not cooldown "Inventory Timer"2684            overhead "Disable EnableMushroomMaker in script variables to turn off this feature!" 02685            cooldown "Inventory Timer" 100002686        endif2687    endif2688endif2689 2690if EnableCheeseTimer = 12691    if not findbuff 'food satisfaction' and findtype "wedge%s% of cheese|fish steak%s%" self2692        overhead "Hold on, I shouldn't do this on an empty stomach..." 20862693        wait 5002694        if findtype "wedge%s% of cheese|fish steak%s%" backpack as food2695            overhead "* eating food... *" 02696            dclick food2697            wait 15002698            overhead "Ok, I'm ready to get to work!" 20862699        endif2700    endif 2701endif 2702 2703if EnableEatFood = 12704    if not findbuff 'food satisfaction' and findtype "tray" self2705        overhead "Hold on, I'm hungry..." 20862706        wait 10002707        if findtype "tray" backpack as food2708            overhead "* eating food... *" 02709            dclick food2710            wait 15002711            overhead "Ok, I'm ready to get to work!" 20862712        endif2713    endif 2714endif 2715 2716if EnableToolCountdown = 12717    if findtype 'pickaxe|hatchet' hand as MyAxe2718        getlabel MyAxe AxeLabel2719        if '(5 uses' in AxeLabel or '(4 uses' in AxeLabel or '(3 uses' in AxeLabel or '(2 uses' in AxeLabel or '(1 use' in AxeLabel2720            if EnableRecycleTool = 02721                sysmsg "YOUR TOOL IS ABOUT TO BREAK....." 1532722            endif 2723            if EnableRecycleTool = 12724                sysmsg "YOUR TOOL IS ABOUT TO BE RECYCLED....." 932725            endif 2726        endif 2727    endif 2728endif2729 2730if EnableRecycleTool = 12731    if findtype 'tool kit' self as ToolKit2732        if findtype 'pickaxe|hatchet' hand as MyAxe2733            getlabel MyAxe AxeLabel2734            if '(2 use' in AxeLabel2735                overhead "[ RECYCLING TOOL! ]" 932736                clearhands both2737                wait 2502738                if not gumpexists 949095101 2739                    dclick ToolKit2740                    waitforgump 949095101 20002741                endif 2742        2743                for 52744                gumpresponse 3 9490951012745                wait 2502746                    if insysmsg "Target an individual item"2747                        target MyAxe2748                        wait 2502749                        gumpclose 9490951012750                        wait 10002751                        overhead "Every little bit counts..." 20862752                        hotkey 'Organizer Agent-03' 2753                        replay2754                    else2755                        gumpresponse 22756                        wait 2502757                endfor 2758                endif 2759            endif 2760        endif 2761    endif2762 2763    if not findtype 'tool kit' self and not cooldown "Inventory Timer"2764        overhead "[ NO TOOL KIT! ]" 3372765        cooldown "Inventory Timer" 150002766        sysmsg "Disable 'EnableRecycleTool' in script variables to turn off this overhead message!" 02767    endif2768endif 2769 2770if insysmsg "As the owner" or insysmsg "Your house and its contents"2771    wait 10002772    if find MyDoor ground -1 -1 22773        overhead "* door slams! *" 0 MyDoor2774        dclick MyDoor 2775        wait 5002776    endif2777endif2778 2779clearsysmsg2780hotkey 'Cancel Current Target'2781 2782if EnableAutoAttackGreyMOB = 1 2783    if warmode2784        overhead "* cracks knuckles... *" 21282785    2786        if skill "Mace Fighting" > 50 and not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" hand and findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" backpack as weapon2787            getlabel weapon WeaponLabel2788                for 52789                    wait 1002790                    if "unidentified" in WeaponLabel2791                        ignore weapon2792                        if skill "Mace Fighting" > 50 and not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" hand and findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" backpack as weapon2793                            getlabel weapon WeaponLabel2794                        endif2795                    endif 2796                endfor2797            dclick weapon      2798            wait 1002799        endif 2800 2801        if skill "Swordsmanship" > 50 and not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" hand and findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" backpack as weapon2802            getlabel weapon WeaponLabel2803                for 52804                    wait 1002805                    if "unidentified" in WeaponLabel2806                        ignore weapon2807                        if skill "Swordsmanship" > 50 and not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" hand and findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" backpack as weapon2808                            getlabel weapon WeaponLabel2809                        endif2810                    endif 2811                endfor2812            dclick weapon      2813            wait 1002814        endif 2815 2816        if skill "Magery" >= 80 and not findtype "spellbook" hand and findtype "spellbook" backpack as spellbook2817            getlabel spellbook SpellbookLabel2818                for 52819                    wait 1002820                    if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel2821                        ignore spellbook 2822                        if skill "Magery" > 80 and not findtype "spellbook" hand and findtype "spellbook" backpack as spellbook2823                            getlabel spellbook SpellbookLabel2824                        endif2825                    endif 2826                endfor2827            dclick spellbook2828            wait 1002829        endif 2830                2831            clearsysmsg2832            for 10002833                hotkey 'Target Closest Non-Friendly Monster'2834                wait 5002835                            2836                    if insysmsg "No one matching that was found" 2837                        hotkey 'Cancel Current Target'      2838                        @setvar CurrentTarget 02839                        wait 7502840                        overhead "Is there no one else??" 20862841                        wait 20002842                        overhead "Alright then, I guess it's back to work..." 20862843                        hotkey 'Toggle Peace Only'2844                        hotkey 'Clear Target Queue'2845                        clearsysmsg 2846                        replay                                    2847                    endif 2848                    2849                    2850                    @setvar CurrentTarget lasttarget 2851                    getlabel CurrentTarget TargetDesc2852                    2853 2854                while not dead CurrentTarget2855                    if EnableRedAlertRecall = 12856                        if insysmsg "Now tracking" or insysmsg "Distance to destination"2857                            @setvar! TimeToGo 12858                            hotkey 'Toggle Peace Only'2859                            hotkey 'Clear Target Queue'2860                            clearsysmsg 2861                            replay2862                        endif2863                    endif 2864 2865                    if not cooldown "Target Timer"2866                        if "Paragon" in TargetDesc2867                            overhead " � PARAGON! � " 12 CurrentTarget 2868                            cooldown "Target Timer" 40002869                        else 2870                            overhead " � TARGET � " 253 CurrentTarget 2871                            cooldown "Target Timer" 40002872                        endif   2873                    endif2874 2875                    if not warmode 2876                        overhead "I don't have time for this shit..." 20862877                        wait 10002878                        replay2879                    endif2880                    2881                    // DEFENSIVE LOOP: 2882                        2883                        if skill 'Healing' > 50 and not bandaging and hits < maxhits2884                            overhead '* applying bandages... *' 882885                            hotkey "Bandage Self"2886                            wait 2502887                        endif2888 2889                        if EnableCurePotion = 12890                            if poisoned and not cooldown "Cure Potion" and hits < CurePotHP2891                                if findtype "Orange Potion" self as curepot2892                                    overhead '* drinking cure potion... *' 442893                                    dclick curepot2894                                    cooldown "Cure Potion" 105002895                                    wait 2502896                                else2897                                    overhead "[ NO CURE POTS! ]" 3372898                                endif2899                            endif2900                        endif 2901 2902                        if EnableHealPotion = 12903                            if hits < HealPotHP and not cooldown "Healing Potion"2904                                if findtype "Yellow Potion" self as healpot2905                                    overhead '* drinking heal potion... *' 2532906                                    dclick healpot2907                                    cooldown "Healing Potion" 105002908                                    wait 2502909                                else 2910                                    overhead '[ NO HEAL POTS! ]' 3372911                                endif2912                            endif2913                        endif 2914 2915                        if EnableRefreshPotion = 12916                            if diffstam >= RefreshPotSPdiff and not cooldown "Refresh Potion"2917                                if findtype "Red Potion" self as refreshpot2918                                    overhead '* drinking refresh potion... *' 342919                                    dclick refreshpot2920                                    cooldown "Refresh Potion" 105002921                                    wait 2502922                                else 2923                                    overhead '[ NO REFRESH POTS! ]' 3372924                                endif2925                            endif2926                        endif2927                        2928                        if EnableMagicResistPotion = 12929                            if not findbuff "Magic Resist Potion"2930                                if findtype "Black Potion" self as magicresistpot2931                                    overhead '* drinking resist potion... *' 02932                                    dclick magicresistpot2933                                    wait 2502934                                else 2935                                    overhead '[ NO RESIST POTS! ]' 3372936                                    wait 5002937                                endif2938                                wait 10002939                            endif2940                        endif2941 2942                        if EnableStrengthPotion = 12943                            if not findbuff "Strength"2944                                if findtype "White Potion" self as strengthpot2945                                    overhead '* drinking strength potion... *' 9562946                                    dclick strengthpot2947                                    wait 2502948                                else 2949                                    overhead '[ NO STRENGTH POTS! ]' 3372950                                    wait 5002951                                endif2952                                wait 10002953                            endif2954                        endif2955 2956                        if EnableAgilityPotion = 12957                            if not findbuff "Agility"2958                                if findtype "Blue Potion" self as agilitypot2959                                    overhead '* drinking agility potion... *' 932960                                    dclick agilitypot2961                                    wait 2502962                            else 2963                                overhead '[ NO AGILITY POTS! ]' 3372964                                wait 5002965                            endif2966                                wait 10002967                            endif2968                        endif2969                        2970                        if EnableCastHeal = 12971                            if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook2972                                getlabel myspellbook SpellbookLabel2973                                    for 52974                                        wait 1002975                                        if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel2976                                            ignore myspellbook 2977                                            if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook2978                                                getlabel myspellbook SpellbookLabel2979                                            else 2980                                                overhead "[ NO SPELLBOOK! ]" 3372981                                                break2982                                            endif2983                                        endif 2984                                    endfor2985                                    dclick myspellbook2986                                    wait 2502987                            endif2988 2989                            if skill 'Magery' >= 40 and diffhits > CastHealHPmeddiff and diffhits < CastHealHPhighdiff and mana >= 42990                                cast 'Heal'2991                                wait 1002992                                while not casting                   2993                                    if targetexists2994                                        hotkey 'cancel current target'2995                                    endif2996                                        cast 'Heal'2997                                        wait 1002998                                endwhile  2999                                    wft 15003000                                    target 'self' 3001                                    wait 2503002 3003                            elseif skill 'Magery' >= 60 and diffhits > CastHealHPhighdiff and mana >= 113004                                cast 'Greater Heal'3005                                wait 1003006                                    while not casting                   3007                                        if targetexists3008                                            hotkey 'cancel current target'3009                                        endif3010                                            cast 'Greater Heal'3011                                            wait 1003012                                    endwhile  3013                                        wft 15003014                                        target 'self' 3015                                        wait 2503016 3017                            elseif skill 'Magery' >= 40 and diffhits > CastHealHPhighdiff and mana >= 4 and mana < 113018                                cast 'Heal'3019                                wait 1003020                                    while not casting                   3021                                        if targetexists3022                                            hotkey 'cancel current target'3023                                        endif3024                                            cast 'Heal'3025                                            wait 1003026                                    endwhile  3027                                        wft 15003028                                        target 'self' 3029                                        wait 2503030                            endif3031                        endif3032 3033                        if EnableCastCure = 13034                            if poisoned and skill 'Magery' >= 40 and mana >= 63035                                if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook3036                                    getlabel myspellbook SpellbookLabel3037                                    for 53038                                        wait 1003039                                        if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel3040                                            ignore myspellbook 3041                                            if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook3042                                                getlabel myspellbook SpellbookLabel3043                                            else 3044                                                overhead "[ NO SPELLBOOK! ]" 3373045                                                break3046                                            endif3047                                        endif 3048                                    endfor3049                                    dclick myspellbook3050                                    wait 2503051                                endif3052                                cast 'Cure'3053                                wait 1003054                                    while not casting                   3055                                        if targetexists3056                                            hotkey 'cancel current target'3057                                        endif3058                                            cast 'Cure'  3059                                            wait 1003060                                    endwhile  3061                                wft 15003062                                target 'self' 3063                                wait 100 3064                            endif 3065                        endif   3066                            3067                        if paralyzed and EnableParalyzePouch = 13068                            overhead "[[[[ POP ]]]]" 21173069                            say "[pouch" 3070                            @setvar! TimeToGo 13071                            replay3072                        endif3073                        3074                        if EnableProtection = 13075                            if skill 'Magery' >= 40 and not findbuff 'Protection' and mana >= 903076                                for 33077                                cast 'Protection' 3078                                wait 1003079                                    while casting 3080                                        wait 503081                                    endwhile3082                                    if cooldown "Spell Fail"3083                                        overhead "Shit, let me try that again..." 20863084                                        wait 5003085                                    else3086                                        break3087                                    endif 3088                                endfor 3089                                overhead "[ PROTECTION ACTIVE! ]" 773090                                wait 2503091                            endif  3092                        endif 3093                        3094                        3095                // OFFENSIVE LOOP:3096                        3097                if skill "Mace Fighting" or skill "Swordsmanship" > 503098                        attack CurrentTarget                        3099                        wait 5003100                endif3101                    3102                if skill "Magery" >= 703103                    if EnableMagicMushroom = 13104                        if not timerexists MushroomTimer3105                            settimer MushroomTimer MushroomCooldown3106                        endif3107                    3108                        if mana < 50 and timer MushroomTimer >= MushroomCooldown and findtype "mushroom" backpack as magicmushroom3109                            overhead "* eating shrooms... *" 313110                            dclick magicmushroom3111                            wait 5003112                            if insysmsg "You consume a magic mushroom and restore some mana."3113                                settimer MushroomTimer 0    3114                            elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3115                                settimer MushroomTimer 300003116                            endif3117                            cooldown "Mushroom" MushroomCooldown3118                        endif3119                    endif3120                     3121                    if not findtype "spellbook" hand and findtype "spellbook" backpack as myspellbook3122                        getlabel myspellbook SpellbookLabel3123                            for 53124                                wait 1003125                                if "unidentified" in SpellbookLabel or "[blessed" in SpellbookLabel3126                                    ignore myspellbook 3127                                    if not findtype "spellbook" hand and findtype "spellbook" self as myspellbook3128                                        getlabel myspellbook SpellbookLabel3129                                    else 3130                                        overhead "[ NO SPELLBOOK! ]" 3373131                                        break3132                                    endif3133                                endif 3134                            endfor3135                        dclick myspellbook3136                        wait 2503137                    endif3138                        3139                    wait 5003140                        3141                    if not find CurrentTarget ground -1 -1 153142                        if not cooldown "Move Timer"3143                            overhead "Did we get it??" 20863144                            wait 5003145                                if EnableSummons = 1 and followers > 13146                                    wait 10003147                                    overhead "I believe that was MY kill, Master..." 1909 myMainTankPet3148                                    wait 5003149                                endif3150                                cooldown "Move Timer" 50003151                        endif3152                    else3153                        if mana >= 4 and EnableCastWeaken = 1 and not cooldown "WeakenCD"3154                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303155                                hotkey '> Interrupt'3156                                break3157                            else3158                                cast 'weaken'3159                                wait 1003160                                while casting 3161                                    wait 503162                                endwhile3163                            endif 3164                                wft 25003165                            target CurrentTarget3166                            wait 2503167                                if insysmsg "cannot be seen" 3168                                    overhead "I can't see that!" 20863169                                    wait 5003170                                else 3171                                    cooldown WeakenCD WeakenCooldown3172                                endif    3173 3174                        elseif mana >= 4 and EnableCastMagicArrow = 1 and not cooldown "MagicArrowCD"3175                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303176                                hotkey '> Interrupt'3177                                break3178                            else3179                                cast 'magic arrow'3180                                wait 1003181                                while casting 3182                                    wait 503183                                endwhile3184                            endif 3185                                wft 25003186                            target CurrentTarget3187                            wait 2503188                                if insysmsg "cannot be seen" 3189                                    overhead "I can't see that!" 20863190                                    wait 5003191                                else 3192                                    cooldown MagicArrowCD MagicArrowCooldown3193                                endif3194                        3195                        elseif mana >= 6 and EnableCastHarm = 1 and not cooldown "HarmCD"3196                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303197                                hotkey '> Interrupt'3198                                break3199                            else3200                                cast 'harm'3201                                wait 1003202                                while casting 3203                                    wait 503204                                endwhile3205                            endif 3206                                wft 25003207                            target CurrentTarget3208                            wait 2503209                                if insysmsg "cannot be seen" 3210                                    overhead "I can't see that!" 20863211                                    wait 5003212                                else 3213                                    cooldown HarmCD HarmCooldown3214                                endif                           3215                        3216                        elseif mana >= 11 and EnableCastCurse = 1 and not cooldown "CurseCD"3217                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303218                                hotkey '> Interrupt'3219                                break3220                            else3221                                cast 'curse'3222                                wait 1003223                                while casting 3224                                    wait 503225                                endwhile3226                            endif 3227                                wft 25003228                            target CurrentTarget3229                            wait 2503230                                if insysmsg "cannot be seen" 3231                                    overhead "I can't see that!" 20863232                                    wait 5003233                                else 3234                                    cooldown CurseCD CurseCooldown3235                                endif                            3236                         3237                        elseif mana >= 20 and EnableCastExplosion = 1 and not cooldown "ExplosionCD"3238                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303239                                hotkey '> Interrupt'3240                                break3241                            else3242                                cast 'Explosion'3243                                wait 1003244                                while casting 3245                                    wait 503246                                endwhile3247                            endif 3248                                wft 25003249                            target CurrentTarget3250                            wait 2503251                                if insysmsg "cannot be seen" 3252                                    overhead "I can't see that!" 20863253                                    wait 5003254                                else 3255                                    cooldown ExplosionCD ExplosionCooldown3256                                endif3257                                      3258                        elseif mana >= 20 and EnableCastEnergyBolt = 1 and not cooldown "EnergyBoltCD"3259                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303260                                hotkey '> Interrupt'3261                                break3262                            else3263                                cast 'Energy Bolt'3264                                wait 1003265                                while casting 3266                                    wait 503267                                endwhile3268                            endif 3269                                wft 25003270                            target CurrentTarget3271                            wait 2503272                                if insysmsg "cannot be seen" 3273                                    overhead "I can't see that!" 20863274                                    wait 5003275                                else 3276                                    cooldown EnergyBoltCD EnergyBoltCooldown3277                                endif3278                                3279                        elseif mana >= 14 and EnableCastMindblast = 1 and not cooldown "MindblastCD"3280                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303281                                hotkey '> Interrupt'3282                                break3283                            else3284                                cast 'mindblast'3285                                wait 1003286                                while casting 3287                                    wait 503288                                endwhile3289                            endif 3290                                wft 25003291                            target CurrentTarget3292                            wait 2503293                                if insysmsg "cannot be seen" 3294                                    overhead "I can't see that!" 20863295                                    wait 5003296                                else 3297                                    cooldown MindblastCD MindblastCooldown3298                                endif   3299                                3300                        elseif mana >= 11 and EnableCastLightning = 1 and not cooldown "LightningCD"3301                           if not find CurrentTarget ground -1 -1 15 or diffhits >= 303302                                hotkey '> Interrupt'3303                                break3304                            else3305                                cast 'Lightning'3306                                wait 1003307                                while casting 3308                                    wait 503309                                endwhile3310                            endif 3311                                wft 25003312                            target CurrentTarget3313                            wait 2503314                                if insysmsg "cannot be seen" 3315                                    overhead "I can't see that!" 20863316                                    wait 5003317                                else 3318                                    cooldown LightningCD LightningCooldown3319                                endif3320                                    3321                        elseif mana >= 40 and EnableCastFlamestrike = 1 and not cooldown "FlamestrikeCD"3322                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303323                                hotkey '> Interrupt'3324                                break3325                            else3326                                cast 'flamestrike'3327                                wait 1003328                                while casting 3329                                    wait 503330                                endwhile3331                            endif 3332                                wft 25003333                            target CurrentTarget3334                            wait 2503335                                if insysmsg "cannot be seen" 3336                                    overhead "I can't see that!" 20863337                                    wait 5003338                                else 3339                                    cooldown FlamestrikeCD FlamestrikeCooldown3340                                endif3341                                3342                        elseif mana >= 9 and EnableCastFireball = 1 and not cooldown "FireballCD"3343                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303344                                hotkey '> Interrupt'3345                                break3346                            else3347                                cast 'fireball'3348                                wait 1003349                                while casting 3350                                    wait 503351                                endwhile3352                            endif 3353                                wft 25003354                            target CurrentTarget3355                            wait 2503356                                if insysmsg "cannot be seen" 3357                                    overhead "I can't see that!" 20863358                                    wait 5003359                                else 3360                                    cooldown FireballCD FireballCooldown3361                                endif3362                            3363                        elseif mana >= 40 and EnableCastMeteorSwarm = 1 and not cooldown "MeteorSwarmCD"3364                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303365                                hotkey '> Interrupt'3366                                break3367                            else3368                                cast 'meteor swarm'3369                                wait 1003370                                while casting 3371                                    wait 503372                                endwhile3373                            endif 3374                                wft 25003375                            target CurrentTarget3376                            wait 2503377                                if insysmsg "cannot be seen" 3378                                    overhead "I can't see that!" 20863379                                    wait 5003380                                else 3381                                    cooldown MeteorSwarmCD MeteorSwarmCooldown3382                                endif3383                                     3384                        elseif mana >= 40 and EnableCastChainLightning = 1 and not cooldown "ChainLightningCD"3385                            if not find CurrentTarget ground -1 -1 15 or diffhits >= 303386                                hotkey '> Interrupt'3387                                break3388                            else3389                                cast 'chain lightning'3390                                wait 1003391                                while casting 3392                                    wait 503393                                endwhile3394                            endif 3395                                wft 25003396                            target CurrentTarget3397                            wait 2503398                                if insysmsg "cannot be seen" 3399                                    overhead "I can't see that!" 20863400                                    wait 5003401                                else 3402                                    cooldown ChainLightningCD ChainLightningCooldown3403                                endif3404                        endif 3405                            wait 5003406                    endif 3407                endif3408            endwhile3409                            wait 5003410 3411                            if insysmsg "You have gained"3412                                overhead "Did you see that?? I just killed {{TargetDesc}}!" 20863413                                hotkey 'Cancel Current Target'3414                                @setvar CurrentTarget 03415                                wait 5003416 3417                                if skill "Spirit Speak" >= 80 and not cooldown "Spirit Speak"3418                                    useskill "spiritspeak"3419                                    cooldown "Spirit Speak" 105003420                                    wait 5003421                                endif3422                            endif3423                            3424                            if findtype 'Elven SpellBlade' backpack and EnableAutoCarving = 13425                                if findtype "corpse" ground -1 -1 2 as corpse3426                                    hotkey 'Cancel Current Target'3427                                    dclicktype "Elven Spellblade"3428                                    wft 15003429                                    target self3430                                    overhead "* skinning {{TargetDesc}}... *" 3393431                                    @ignore corpse3432                                endif 3433                            endif  3434 3435                            if insysmsg "You have unlocked a codex upgrade point"3436                                overhead "[ CODEX POINT UNLOCKED! ]" 21143437                                    if EnableSummons = 1 and followers > 13438                                        wait 10003439                                        overhead "Well done, Master..." 44 myMainTankPet3440                                        menu myMainTankPet 33441                                    endif3442                            endif 3443 3444                            if insysmsg "unlocked a point for your wizard's grimoire"3445                                overhead "[ GRIMOIRE POINT UNLOCKED! ]" 73446                                    if EnableSummons = 1 and followers > 13447                                        wait 10003448                                        overhead "You seem stronger, Master..." 44 myMainTankPet3449                                        menu myMainTankPet 33450                                    endif3451                            endif 3452 3453                            if insysmsg "enough experience to upgrade"3454                                overhead "[ ASPECT TIER UNLOCKED! ]" 20863455                                    if EnableSummons = 1 and followers > 13456                                        wait 5003457                                        overhead "Time to spend some more gold, it would seem..." 44 myMainTankPet3458                                        menu myMainTankPet 33459                                        wait 5003460                                    endif3461                            endif 3462 3463                            if insysmsg "upgrade point for Fire Elemental" or insysmsg  "upgrade point for Air Elemental"  or insysmsg  "upgrade point for Water Elemental" or insysmsg  "upgrade point for Earth Elemental" and EnableSummons = 1 and followers > 13464                                overhead "Hmm.. I suddenly feel stronger!" 44 myMainTankPet3465                                menu myMainTankPet 33466                                wait 5003467                                overhead "* cracks knuckles... *" 0 myMainTankPet3468                            endif 3469 3470 3471                            if insysmsg "something invisible out of the way"3472                                overhead "[ � SOMEONE HIDDEN! � ]" 63473                                    if EnableSummons = 1 and followers > 13474                                        wait 5003475                                        overhead "There is a foul stench upon the air..." 44 myMainTankPet3476                                        menu myMainTankPet 33477                                        wait 5003478                                    endif3479                            endif 3480 3481                            if paralyzed and EnableParalyzePouch = 13482                                overhead "[[[[ POP ]]]]" 21173483                                say "[pouch" 3484                                @setvar! TimeToGo 13485                                    if EnableSummons = 1 and followers > 13486                                        overhead "That was unwise, criminal..." 44 myMainTankPet3487                                        menu myMainTankPet 33488                                        clearsysmsg 3489                                    endif3490                            endif3491                        3492                            if skill "Spirit Speak" >= 80 and not cooldown "Spirit Speak"3493                                useskill "spiritspeak"3494                                cooldown "Spirit Speak" 105003495                                wait 5003496                            endif3497                                3498                            if not findbuff "Actively Meditating" and mana < 30 and diffhits < 303499                                clearhands both3500                                hotkey "Meditation"3501                                wait 1003502                                while mana < 503503                                    if EnableRedAlertRecall = 13504                                        if insysmsg "Now tracking" or insysmsg "Distance to destination"3505                                            @setvar! TimeToGo 13506                                            hotkey 'Toggle Peace Only'3507                                            hotkey 'Clear Target Queue'3508                                            clearsysmsg 3509                                            replay3510                                        endif3511                                    endif3512                                    3513                                    if diffhits > 30 3514                                        break3515                                    elseif not cooldown "Move Timer"3516                                        overhead "* meditating... *" 123517                                        cooldown "Move Timer" 40003518                                    endif3519 3520                                    if not warmode 3521                                        overhead "I need to get back to work..." 20863522                                        wait 10003523                                        replay3524                                    endif3525                                endwhile3526                            endif 3527                    endfor      3528                        3529            hotkey 'Cancel Current Target'3530            @setvar! TimeToGo 13531            replay 3532        3533        if skill "Mace Fighting" > 50 and not findtype "sledgehammer|giant club|flail|cudgel|quarter staff|war mace|maul|war axe|mace|hammer pick" self or skill "Swordsmanship" > 50 and not findtype "double axe|two handed axe|battle axe|halberd|katana|bardiche|cutlass|broadsword|scimitar|viking sword|longsword" self3534            overhead "I can't fight without a weapon!"  20863535            hotkey 'Toggle Peace Only'3536            hotkey 'Cancel Current Target'3537            @setvar! TimeToGo 13538            replay 3539        endif 3540        hotkey 'Cancel Current Target'3541        hotkey 'Toggle Peace Only'3542        replay3543    endif3544endif3545 3546 3547 3548        ////////////////////////////////3549        // MINING SCRIPT STARTS HERE: //3550        ////////////////////////////////3551 3552if not dead and skill "Mining" > 49.9 and not cooldown "Travel"3553 3554if EnablePlayerForgeRadar = 13555    if findtype "4017|6526|6538|6550|6562" ground -1 -1 15 as forge or findtype 0x0FB1 ground -1 -1 15 as forge and findtype "iron ore" backpack and not cooldown "Forge Radar"3556        overhead "[ FORGE HERE! ]" 44 forge3557        overhead "�" 44 forge3558        cooldown "Forge Radar" 35003559    endif 3560endif3561          3562if EnableOreVacuum = 13563    if findtype "iron ore" ground -1 -1 15 as droppedore and not cooldown "Ore Radar"   3564        overhead "[ ORE ]" 93 droppedore             3565        overhead "�" 93 droppedore3566        cooldown "Ore Radar" 35003567    endif3568 3569    if findtype "iron ingot%s" ground -1 -1 15 as droppedingots and not cooldown "Ore Radar"   3570        overhead "[ INGOTS ]" 69 droppedingots              3571        overhead "�" 69 droppedingots3572        cooldown "Ore Radar" 35003573    endif3574    3575    if findtype "iron ore|iron ingot%s" ground -1 -1 2 as droppedmetal and not cooldown "Ore Vacuum"3576        overhead "[ CLEANUP... ]" 933577        hotkey "Grab Item"3578        wft 25003579        target droppedmetal3580        wait 2503581        if insysmsg "Invalid or inaccessible item"3582            overhead "I can't get to that!" 20863583            wait 2503584            @ignore droppedmetal3585        endif3586        hotkey 'Organizer Agent-03'  3587        cooldown "Ore Vacuum" 5003588    endif3589endif 3590 3591if counttype "iron ingot%s" > IngotRecallAmount and EnableIngotAutoRecall = 13592    overhead "I'd hate to lose all this hard work..." 20863593    wait 25003594    overhead "I'm going to go unload before it's too late!" 20863595    sysmsg "Disable 'EnableIngotAutoRecall' in script variables to turn off this feature!" 03596    wait 20003597    @setvar! TimeToGo 13598    replay3599endif 3600 3601if EnableAutoSmeltNaturalForge = 1 3602    if findtype "iron ore" backpack as ore and Working = 03603        @setvar! ForgeFound 03604    3605        if not timerexists AutoSmeltNaturalForgeTimer3606            settimer AutoSmeltNaturalForgeTimer 85003607        endif3608 3609        if timer AutoSmeltNaturalForgeTimer >= 85003610            dclick ore3611            wait 2503612            if insysmsg "You do not see any nearby forges"3613                settimer AutoSmeltNaturalForgeTimer 03614                clearsysmsg3615            else3616                @setvar! ForgeFound 13617                wait 2503618                clearsysmsg3619            endif3620        endif3621 3622        for 113623        if ForgeFound = 1 and findtype "iron ore" backpack as ore3624            dclick ore3625            wait 5003626            if insysmsg "You do not see any nearby forges"3627               settimer AutoSmeltNaturalForgeTimer 03628                @setvar! ForgeFound 03629                clearsysmsg3630                replay3631            endif3632            hotkey 'Organizer Agent-03'  3633            wait 5003634        endif3635        endfor 3636    endif3637endif 3638 3639if EnableAutoSmeltPlayerForge = 13640    for 103641    if findtype "forge" ground -1 -1 2 as forge or findtype 0x0FB1 ground -1 -1 2 as forge and findtype "iron ore" backpack as ore3642        overhead "* smelting ore... *" 2114 forge3643        dclick ore3644        overhead "* forging ingots... *" 21173645        wait 10003646        if insysmsg "You do not see any nearby forges"3647           settimer AutoSmeltNaturalForgeTimer 03648           @setvar! ForgeFound 03649             replay3650        endif3651        hotkey 'Organizer Agent-03'  3652        wait 5003653    endif3654    endfor3655endif3656    3657if EnableWeightWarningMessage = 1 and not cooldown "Weight Timer"3658    if weight > GreenWarningWeight and weight < YellowWarningWeight3659        overhead "[ WEIGHT WARNING! ]" 773660        cooldown "Weight Timer" 35003661    endif3662 3663    if weight > YellowWarningWeight and weight < RedWeightLimit3664        overhead "[ TIME TO FORGE! ]" 1493665        cooldown "Weight Timer" 35003666    endif 3667 3668    if weight > RedWeightLimit3669        @setvar! Working 03670        overhead "[ WEIGHT LIMIT REACHED!!! ]" 3373671        wait 20003672        overhead "Find a forge in order to continue..." 03673        wait 10003674        replay3675    endif3676endif 3677 3678if not findtype 'pickaxe' hand and findtype 'pickaxe' backpack3679    dclicktype 'pickaxe' backpack3680    wait 2503681endif3682 3683    hotkey 'Use item in hand' 3684    wft 5003685    hotkey 'Target Self' 3686 3687                    if insysmsg "Now tracking" or insysmsg "Distance to destination"3688                        @setvar! TimeToGo 13689                        replay 3690        3691                    elseif insysmsg 'world is saving'                     3692                            for 403693                                wait 1003694                                if insysmsg 'world save complete' 3695                                    overhead '[ SAVE COMPLETE! ]' 253 3696                                    clearsysmsg 3697                                    replay3698                                endif 3699                            endfor 3700                        clearsysmsg 3701                        replay 3702                    elseif insysmsg 'Harvesting is not allowed' 3703                        overhead 'You need to leave town...' 843704                        clearsysmsg 3705                        wait 5000 3706                        replay 3707                    elseif insysmsg 'You have worn out your tool' 3708                        overhead "My pickaxe broke!" 20863709                        wait 1500 3710                        clearsysmsg3711                        replay3712                    elseif insysmsg "You must wait"3713                        clearsysmsg 3714                        replay 3715                    elseif insysmsg "must wait 59"3716                        cooldown "Travel" 590003717                        overhead "I'm tired from travelling..." 20863718                        wait 1500 3719                        overhead "Just give me a minute to recover!" 20863720                        clearsysmsg 3721                        replay 3722                    elseif insysmsg "must wait 58"3723                        cooldown "Travel" 580003724                        overhead "I'm tired from travelling..." 20863725                        wait 1500 3726                        overhead "Just give me a minute to recover!" 20863727                        clearsysmsg 3728                        replay 3729                    elseif insysmsg "must wait 57"3730                        cooldown "Travel" 570003731                        overhead "I'm tired from travelling..." 20863732                        wait 1500 3733                        overhead "Just give me a minute to recover!" 20863734                        clearsysmsg 3735                        replay 3736                    elseif insysmsg "must wait 56"3737                        cooldown "Travel" 560003738                        overhead "I'm tired from travelling..." 20863739                        wait 1500 3740                        overhead "Just give me a minute to recover!" 20863741                        clearsysmsg 3742                        replay 3743                    elseif insysmsg "must wait 55"3744                        cooldown "Travel" 550003745                        overhead "I'm tired from travelling..." 20863746                        wait 1500 3747                        overhead "Just give me a minute to recover!" 20863748                        clearsysmsg 3749                        replay 3750                    elseif insysmsg "must wait 54"3751                        cooldown "Travel" 540003752                        overhead "I'm tired from travelling..." 20863753                        wait 1500 3754                        overhead "Just give me a minute to recover!" 20863755                        clearsysmsg 3756                        replay 3757                    elseif insysmsg "must wait 53"3758                        cooldown "Travel" 530003759                        overhead "I'm tired from travelling..." 20863760                        wait 1500 3761                        overhead "Just give me a minute to recover!" 20863762                        clearsysmsg 3763                        replay 3764                    elseif insysmsg "must wait 52"3765                        cooldown "Travel" 520003766                        overhead "I'm tired from travelling..." 20863767                        wait 1500 3768                        overhead "Just give me a minute to recover!" 20863769                        clearsysmsg 3770                        replay 3771                    elseif insysmsg "must wait 51"3772                        cooldown "Travel" 510003773                        overhead "I'm tired from travelling..." 20863774                        wait 1500 3775                        overhead "Just give me a minute to recover!" 20863776                        clearsysmsg 3777                        replay 3778                    elseif insysmsg "must wait 50"3779                        cooldown "Travel" 500003780                        overhead "I'm tired from travelling..." 20863781                        wait 1500 3782                        overhead "Just give me a minute to recover!" 20863783                        clearsysmsg 3784                        replay 3785                    elseif insysmsg "must wait 49"3786                        cooldown "Travel" 490003787                        overhead "I'm tired from travelling..." 20863788                        wait 1500 3789                        overhead "Just give me a minute to recover!" 20863790                        clearsysmsg 3791                        replay 3792                    elseif insysmsg "must wait 48"3793                        cooldown "Travel" 480003794                        overhead "I'm tired from travelling..." 20863795                        wait 1500 3796                        overhead "Just give me a minute to recover!" 20863797                        clearsysmsg 3798                        replay 3799                    elseif insysmsg "must wait 47"3800                        cooldown "Travel" 470003801                        overhead "I'm tired from travelling..." 20863802                        wait 1500 3803                        overhead "Just give me a minute to recover!" 20863804                        clearsysmsg 3805                        replay 3806                    elseif insysmsg "must wait 46"3807                       cooldown "Travel" 460003808                        overhead "I'm tired from travelling..." 20863809                        wait 1500 3810                        overhead "Just give me a minute to recover!" 20863811                        clearsysmsg 3812                        replay 3813                    elseif insysmsg "must wait 45"3814                        cooldown "Travel" 450003815                        overhead "I'm tired from travelling..." 20863816                        wait 1500 3817                        overhead "Just give me a minute to recover!" 20863818                        clearsysmsg 3819                        replay 3820                    elseif insysmsg "must wait 44"3821                        cooldown "Travel" 440003822                        overhead "I'm tired from travelling..." 20863823                        wait 1500 3824                        overhead "Just give me a minute to recover!" 20863825                        clearsysmsg 3826                        replay 3827                    elseif insysmsg "must wait 43"3828                        cooldown "Travel" 430003829                        overhead "I'm tired from travelling..." 20863830                        wait 1500 3831                        overhead "Just give me a minute to recover!" 20863832                        clearsysmsg 3833                        replay 3834                    elseif insysmsg "must wait 42"3835                        cooldown "Travel" 420003836                        overhead "I'm tired from travelling..." 20863837                        wait 1500 3838                        overhead "Just give me a minute to recover!" 20863839                        clearsysmsg 3840                        replay 3841                    elseif insysmsg "must wait 41"3842                        cooldown "Travel" 410003843                        overhead "I'm tired from travelling..." 20863844                        wait 1500 3845                        overhead "Just give me a minute to recover!" 20863846                        clearsysmsg 3847                        replay 3848                    elseif insysmsg "must wait 40"3849                        cooldown "Travel" 400003850                        overhead "I'm tired from travelling..." 20863851                        wait 1500 3852                        overhead "Just give me a bit to recover!" 20863853                        clearsysmsg 3854                        replay 3855                    elseif insysmsg "must wait 39"3856                        cooldown "Travel" 390003857                        overhead "I'm tired from travelling..." 20863858                        wait 1500 3859                        overhead "Just give me a bit to recover!" 20863860                        clearsysmsg 3861                        replay 3862                    elseif insysmsg "must wait 38"3863                        cooldown "Travel" 380003864                        overhead "I'm tired from travelling..." 20863865                        wait 1500 3866                        overhead "Just give me a bit to recover!" 20863867                        clearsysmsg 3868                        replay 3869                    elseif insysmsg "must wait 37"3870                        cooldown "Travel" 370003871                        overhead "I'm tired from travelling..." 20863872                        wait 1500 3873                        overhead "Just give me a bit to recover!" 20863874                        clearsysmsg 3875                        replay 3876                    elseif insysmsg "must wait 36"3877                        cooldown "Travel" 360003878                        overhead "I'm tired from travelling..." 20863879                        wait 1500 3880                        overhead "Just give me a bit to recover!" 20863881                        clearsysmsg 3882                        replay                     3883                    elseif insysmsg "must wait 35"3884                        cooldown "Travel" 350003885                        overhead "I'm tired from travelling..." 20863886                        wait 1500 3887                        overhead "Just give me a bit to recover!" 20863888                        clearsysmsg 3889                        replay 3890                    elseif insysmsg "must wait 34"3891                        cooldown "Travel" 340003892                        overhead "I'm tired from travelling..." 20863893                        wait 1500 3894                        overhead "Just give me a bit to recover!" 20863895                        clearsysmsg 3896                        replay 3897                    elseif insysmsg "must wait 33"3898                        cooldown "Travel" 330003899                        overhead "I'm tired from travelling..." 20863900                        wait 1500 3901                        overhead "Just give me a bit to recover!" 20863902                        clearsysmsg 3903                        replay 3904                    elseif insysmsg "must wait 32"3905                        cooldown "Travel" 320003906                        overhead "I'm tired from travelling..." 20863907                        wait 1500 3908                        overhead "Just give me a bit to recover!" 20863909                        clearsysmsg 3910                        replay 3911                    elseif insysmsg "must wait 31"3912                        cooldown "Travel" 310003913                        overhead "I'm tired from travelling..." 20863914                        wait 1500 3915                        overhead "Just give me a bit to recover!" 20863916                        clearsysmsg 3917                        replay 3918                    elseif insysmsg "must wait 30"3919                        cooldown "Travel" 300003920                        overhead "I'm tired from travelling..." 20863921                        wait 1500 3922                        overhead "Just give me a bit to recover!" 20863923                        clearsysmsg 3924                        replay 3925                    elseif insysmsg "must wait 29"3926                        cooldown "Travel" 290003927                        overhead "I'm tired from travelling..." 20863928                        wait 1500 3929                        overhead "Just give me a bit to recover!" 20863930                        clearsysmsg 3931                        replay 3932                    elseif insysmsg "must wait 28"3933                        cooldown "Travel" 280003934                        overhead "I'm tired from travelling..." 20863935                        wait 1500 3936                        overhead "Just give me a bit to recover!" 20863937                        clearsysmsg 3938                        replay 3939                    elseif insysmsg "must wait 27"3940                        cooldown "Travel" 270003941                        overhead "I'm tired from travelling..." 20863942                        wait 1500 3943                        overhead "Just give me a bit longer to recover!" 20863944                        clearsysmsg 3945                        replay 3946                    elseif insysmsg "must wait 26"3947                        cooldown "Travel" 260003948                        overhead "I'm tired from travelling..." 20863949                        wait 1500 3950                        overhead "Just give me a bit longer to recover!" 20863951                        clearsysmsg 3952                        replay 3953                    elseif insysmsg "must wait 25"3954                        cooldown "Travel" 250003955                        overhead "I'm tired from travelling..." 20863956                        wait 1500 3957                        overhead "Just give me a bit longer to recover!" 20863958                        clearsysmsg 3959                        replay 3960                    elseif insysmsg "must wait 24"3961                        cooldown "Travel" 240003962                        overhead "I'm tired from travelling..." 20863963                        wait 1500 3964                        overhead "Just give me a bit longer to recover!" 20863965                        clearsysmsg 3966                        replay 3967                    elseif insysmsg "must wait 23"3968                        cooldown "Travel" 230003969                        overhead "I'm tired from travelling..." 20863970                        wait 1500 3971                        overhead "Just give me a bit longer to recover!" 20863972                        clearsysmsg 3973                        replay 3974                    elseif insysmsg "must wait 22"3975                        cooldown "Travel" 220003976                        overhead "I'm tired from travelling..." 20863977                        wait 1500 3978                        overhead "Just give me a bit longer to recover!" 20863979                        clearsysmsg 3980                        replay 3981                    elseif insysmsg "must wait 21"3982                        cooldown "Travel" 210003983                        overhead "I'm tired from travelling..." 20863984                        wait 1500 3985                        overhead "Just give me a bit longer to recover!" 20863986                        clearsysmsg 3987                        replay 3988                    elseif insysmsg "must wait 20"3989                        cooldown "Travel" 200003990                        overhead "I'm tired from travelling..." 20863991                        wait 1500 3992                        overhead "Just give me a bit longer to recover!" 20863993                        clearsysmsg 3994                        replay 3995                    elseif insysmsg "must wait 19"3996                        cooldown "Travel" 190003997                        overhead "I'm tired from travelling..." 20863998                        wait 1500 3999                        overhead "Just give me a bit longer to recover!" 20864000                        clearsysmsg 4001                        replay 4002                    elseif insysmsg "must wait 18"4003                        cooldown "Travel" 180004004                        overhead "I'm tired from travelling..." 20864005                        wait 1500 4006                        overhead "Just give me a bit longer to recover!" 20864007                        clearsysmsg 4008                        replay 4009                    elseif insysmsg "must wait 17"4010                        cooldown "Travel" 170004011                        overhead "I'm tired from travelling..." 20864012                        wait 1500 4013                        overhead "Just give me a minute to recover!" 20864014                        clearsysmsg 4015                        replay 4016                    elseif insysmsg "must wait 16"4017                        cooldown "Travel" 160004018                        overhead "I'm tired from travelling..." 20864019                        wait 1500 4020                        overhead "Just give me a bit longer to recover!" 20864021                        clearsysmsg 4022                        replay 4023                    elseif insysmsg "must wait 15"4024                        cooldown "Travel" 150004025                        overhead "I'm tired from travelling..." 20864026                        wait 1500 4027                        overhead "Just give me a little bit longer to recover!" 20864028                        clearsysmsg 4029                        replay 4030                    elseif insysmsg "must wait 14"4031                        cooldown "Travel" 140004032                        overhead "I'm tired from travelling..." 20864033                        wait 1500 4034                        overhead "Just give me a little bit longer to recover!" 20864035                        clearsysmsg 4036                        replay 4037                    elseif insysmsg "must wait 13"4038                        cooldown "Travel" 130004039                        overhead "I'm tired from travelling..." 20864040                        wait 1500 4041                        overhead "Just give me a little bit longer to recover!" 20864042                        clearsysmsg 4043                        replay 4044                    elseif insysmsg "must wait 12"4045                        cooldown "Travel" 120004046                        overhead "I'm tired from travelling..." 20864047                        wait 1500 4048                        overhead "Just give me a little bit longer to recover!" 20864049                        clearsysmsg 4050                        replay 4051                    elseif insysmsg "must wait 11"4052                        cooldown "Travel" 110004053                        overhead "I'm tired from travelling..." 20864054                        wait 1500 4055                        overhead "Just give me a little bit longer to recover!" 20864056                        clearsysmsg 4057                        replay 4058                    elseif insysmsg "must wait 10"4059                        cooldown "Travel" 100004060                        overhead "I'm tired from travelling..." 20864061                        wait 1500 4062                        overhead "Just give me a few more seconds to recover!" 20864063                        clearsysmsg 4064                        replay 4065                    elseif insysmsg "must wait 9"4066                        cooldown "Travel" 90004067                        overhead "I'm tired from travelling..." 20864068                        wait 1500 4069                        overhead "Just give me a few more seconds to recover!" 20864070                        clearsysmsg 4071                        replay 4072                    elseif insysmsg "must wait 8"4073                        cooldown "Travel" 80004074                        overhead "I'm tired from travelling..." 20864075                        wait 1500 4076                        overhead "Just give me a few more seconds to recover!" 20864077                        clearsysmsg 4078                        replay 4079                    elseif insysmsg "must wait 7"4080                        cooldown "Travel" 70004081                        overhead "I'm tired from travelling..." 20864082                        wait 1500 4083                        overhead "Just give me a few more seconds to recover!" 20864084                        clearsysmsg 4085                        replay                     4086                    elseif insysmsg "must wait 6"4087                        cooldown "Travel" 60004088                        overhead "I'm tired from travelling..." 20864089                        wait 1500 4090                        overhead "Just give me a few more seconds to recover!" 20864091                        clearsysmsg 4092                        replay 4093                    elseif insysmsg "must wait 5"4094                        cooldown "Travel" 50004095                        overhead "I'm tired from travelling..." 20864096                        wait 1500 4097                        overhead "Just give me a few more seconds to recover!" 20864098                        clearsysmsg 4099                        replay 4100                    elseif insysmsg "must wait 4"4101                        cooldown "Travel" 40004102                        overhead "I'm tired from travelling..." 20864103                        wait 1500 4104                        overhead "Just give me a few more seconds to recover!" 20864105                        clearsysmsg 4106                        replay 4107                    elseif insysmsg "must wait 3"4108                        cooldown "Travel" 30004109                        overhead "I'm tired from travelling..." 20864110                        wait 1500 4111                        overhead "Just give me a few more seconds to recover!" 20864112                        clearsysmsg 4113                        replay 4114                    elseif insysmsg "must wait 2"4115                        cooldown "Travel" 20004116                        overhead "I'm tired from travelling..." 20864117                        wait 1500 4118                        overhead "Just give me a couple more seconds to recover!" 20864119                        clearsysmsg 4120                        replay 4121                    elseif insysmsg "must wait 1"4122                        cooldown "Travel" 10004123                        overhead "I'm tired from travelling..." 20864124                        wait 1500 4125                        overhead "Just give me a second to recover!" 20864126                        clearsysmsg 4127                        replay 4128                    elseif insysmsg 'You do not see any' or insysmsg 'You cannot produce any'4129                        @setvar! Working 04130                    4131                        if MOVE = 14132                            if not cooldown "Move Timer"4133                                @setvar! MOVE 04134                                overhead "[ KEEP MOVING... ]" 1534135                                cooldown "Move Timer" 25004136                            endif4137 4138                            if EnableSatchels = 14139                                if findtype "Ginseng|Garlic|Blood Moss|Sulfurous Ash|Mandrake Root%s%|Nightshade|Black Pearl%s%|Spider's Silk" backpack and findtype "reagent satchel" self as MyWizardBag4140                                    if not cooldown "Satchel Timer"4141                                        menu MyWizardBag 04142                                        wait 2504143                                        cooldown "Satchel Timer" 600004144                                    endif4145                                endif4146        4147                                if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag4148                                    if not cooldown "Satchel Timer" 4149                                        menu MyPotBag 04150                                        wait 2504151                                        cooldown "Satchel Timer" 600004152                                    endif4153                                endif 4154                            endif4155                4156                            if insysmsg "Being perfectly rested" 4157                                overhead "Outta my way!  I've got a pickaxe and know how to use it..." 20864158                                if EnableSummons = 1 and followers > 14159                                    wait 15004160                                    overhead "Shall we incinerate them, master?" 44 myMainTankPet4161                                    menu myMainTankPet 34162                                endif4163                            endif4164                4165                            if insysmsg "Now tracking" or insysmsg "Distance to destination" and EnableRedAlertRecall = 14166                                @setvar! TimeToGo 14167                                replay4168                            endif4169 4170                            if paralyzed and EnableParalyzePouch = 14171                                overhead "[[[[ POP ]]]]" 21174172                                say "[pouch" 4173                                @setvar! TimeToGo 14174                                replay4175                            endif4176             4177                                if findtype 'iron ore|iron ingots' backpack 4178                                    hotkey 'Organizer Agent-03'4179                                endif4180                                4181                                hotkey 'Organizer Agent-04'4182                                replay4183                            endif4184                    4185                        if MOVE = 04186                            if not cooldown "Move Timer"4187                                overhead "[ KEEP MOVING... ]" 444188                                cooldown "Move Timer" 25004189                                @setvar! MOVE 14190                            endif4191 4192                            if EnableSatchels = 14193                                if findtype "Ginseng|Garlic|Blood Moss|Sulfurous Ash|Mandrake Root%s%|Nightshade|Black Pearl%s%|Spider's Silk" backpack and findtype "reagent satchel" self as MyWizardBag4194                                    if not cooldown "Satchel Timer"4195                                        menu MyWizardBag 04196                                        wait 2504197                                        cooldown "Satchel Timer" 600004198                                    endif4199                                endif4200    4201                                if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag4202                                    if not cooldown "Satchel Timer" 4203                                        menu MyPotBag 04204                                        wait 2504205                                        cooldown "Satchel Timer" 600004206                                    endif4207                                endif 4208                            endif4209                    4210                            if insysmsg "Being perfectly rested" 4211                                overhead "Move it!  I've got work to do" 20864212                                if EnableSummons = 1 and followers > 14213                                    wait 10004214                                    overhead "* growls... *" 44 myMainTankPet4215                                    menu myMainTankPet 34216                                endif 4217                            endif4218                4219                            if insysmsg "Now tracking" or insysmsg "Distance to destination" and EnableRedAlertRecall = 14220                                @setvar! TimeToGo 14221                                replay4222                            endif4223    4224                            if paralyzed and EnableParalyzePouch = 14225                                overhead "[[[[ POP ]]]]" 21174226                                say "[pouch" 4227                                @setvar! TimeToGo 14228                                replay4229                            endif                                     4230 4231                            if findtype 'iron ore|iron ingots' backpack 4232                                hotkey 'Organizer Agent-03'4233                            endif4234                                hotkey 'Organizer Agent-04'4235                                replay                      4236                        endif4237                            clearsysmsg 4238                            @setvar! MOVE 14239                            wait 5004240                            replay   4241                    endif 4242            4243            @setvar! Working 14244            wait 2504245                4246        while Working = 14247            4248            if warmode 4249                replay4250            endif4251        4252            if insysmsg "Mining skillgain" 4253                if skill 'Mining' > 100.0 and skill 'Mining' < 119.94254                    sysmsg "Hmm... these stones are tricky to work with..." 844255         4256                elseif skill 'Mining' = 119.94257                    overhead "THIS COULD BE IT......" 20864258                    sysmsg "Hmm... there is something special about these stones..." 844259            4260                elseif skill 'Mining' = 120.04261                    overhead "FINALLY!!!" 20864262                    wait 20004263                    overhead "We made it!" 20864264                    wait 15004265                    clearsysmsg 4266                    overhead "[ TIME FOR A WELL DESERVED BREAK! ]" 3374267                    stop    4268                endif  4269            endif      4270            4271            if EnableWeightWarningMessage = 1 and not cooldown "Weight Timer"4272                if weight > GreenWarningWeight and weight < YellowWarningWeight4273                    overhead "[ WEIGHT WARNING! ]" 774274                    cooldown "Weight Timer" 35004275                endif4276 4277                if weight > YellowWarningWeight and weight < RedWeightLimit4278                    overhead "[ TIME TO FORGE! ]" 1494279                    cooldown "Weight Timer" 35004280                endif 4281 4282                if weight > RedWeightLimit4283                    @setvar! Working 04284                    overhead "[ WEIGHT LIMIT REACHED!!! ]" 3374285                    wait 20004286                    overhead "Find a forge in order to continue..." 04287                    wait 10004288                    replay4289                endif4290            endif 4291            4292            if EnablePlayerForgeRadar = 14293                if findtype "4017|6526|6538|6550|6562" ground -1 -1 15 as forge or findtype 0x0FB1 ground -1 -1 15 as forge and findtype "iron ore" backpack and not cooldown "Forge Radar"4294                    overhead "[ FORGE HERE! ]" 44 forge4295                    overhead "�" 44 forge4296                    cooldown "Forge Radar" 35004297                endif 4298            endif4299            4300            if EnableSummons = 1 4301                if dead myMainTankPet4302                    if not dead earthOne4303                        @setvar! myMainTankPet earthOne4304                    elseif not dead earthTwo4305                        @setvar! myMainTankPet earthTwo4306                    elseif not dead waterOne4307                        @setvar! myMainTankPet waterOne4308                    elseif not dead waterTwo4309                        @setvar! myMainTankPet waterTwo4310                    elseif not dead demonOne4311                        @setvar! myMainTankPet demonOne4312                    elseif not dead demonTwo4313                        @setvar! myMainTankPet demonTwo4314                    elseif not dead fireOne4315                        @setvar! myMainTankPet fireOne4316                    elseif not dead fireTwo4317                        @setvar! myMainTankPet fireTwo4318                    elseif not dead airOne4319                        @setvar! myMainTankPet airOne4320                    elseif not dead airTwo4321                        @setvar! myMainTankPet airTwo4322                    endif4323                    overhead "Hold on..." 20864324                    wait 5004325                    replay4326                else 4327                    if not cooldown "Guard Timer"4328                        if EnableSummons = 1 and GuardComment = 1 and followers > 14329                            overhead "I'll keep watch while you work, Master..." 44 myMainTankPet4330                            menu myMainTankPet 34331                            @setvar! GuardComment 24332                            wait 5004333                            cooldown "Guard Timer" 1200004334                        elseif EnableSummons = 1 and GuardComment = 2 and followers > 14335                            overhead "* looks around menacingly... *" 2117 myMainTankPet4336                            menu myMainTankPet 34337                            @setvar! GuardComment 34338                            wait 5004339                            cooldown "Guard Timer" 1200004340                        elseif EnableSummons = 1 and GuardComment = 3 and followers > 14341                            overhead "I see a red, Master!  Oh wait.. nevermind... " 44 myMainTankPet4342                            menu myMainTankPet 34343                            @setvar! GuardComment 44344                            wait 5004345                            cooldown "Guard Timer" 1200004346                        elseif EnableSummons = 1 and GuardComment = 4 and followers > 14347                            overhead "I don't like the look of that bird over there..." 44 myMainTankPet4348                            menu myMainTankPet 34349                            wait 5004350                            overhead "* growls... *" 0 myMainTankPet4351                            @setvar! GuardComment 54352                            cooldown "Guard Timer" 1200004353                        elseif EnableSummons = 1 and GuardComment = 5 and followers > 14354                            overhead "What time is lunch break?" 44 myMainTankPet4355                            menu myMainTankPet 34356                            @setvar! GuardComment 64357                            wait 5004358                            cooldown "Guard Timer" 1200004359                        elseif EnableSummons = 1 and GuardComment = 6 and followers > 14360                            overhead "We should go fight something soon!" 44 myMainTankPet4361                            menu myMainTankPet 34362                            @setvar! GuardComment 14363                            wait 5004364                            cooldown "Guard Timer" 1200004365                        endif4366                    endif 4367                endif4368            endif 4369 4370            if insysmsg "Now tracking" or insysmsg "Distance to destination"4371                @setvar! TimeToGo 14372                clearsysmsg4373                replay4374        4375            elseif insysmsg 'world is saving' 4376                    for 404377                        wait 1004378                        if insysmsg 'world save complete' 4379                            wait 1004380                            overhead '[ SAVE COMPLETE! ]' 253 4381                            clearsysmsg 4382                            break4383                        endif 4384                    endfor 4385                clearsysmsg4386                4387            elseif insysmsg "You loosen some rocks"4388                overhead '* fail! *' 3374389                clearsysmsg 4390                4391            elseif insysmsg "You dig some iron ore" 4392                overhead '* you harvest iron ore *' 19004393                clearsysmsg4394            4395            elseif insysmsg "You dig some dull copper ore" 4396                overhead '* you harvest dull copper ore *' 24194397                clearsysmsg     4398  4399            elseif insysmsg "You dig some shadowiron ore" 4400                overhead '* you harvest shadow iron ore *' 24064401                clearsysmsg     4402 4403            elseif insysmsg "You dig some copper ore" 4404                overhead '* you harvest copper ore *' 24134405                clearsysmsg  4406 4407            elseif insysmsg "You dig some bronze ore" 4408                overhead '* you harvest bronze ore *' 24184409                clearsysmsg4410                4411            elseif insysmsg "You dig some golden ore" 4412                overhead '* you harvest golden ore! *' 22134413                clearsysmsg4414                4415            elseif insysmsg "You dig some agapite ore" 4416                overhead '* you harvest agapite ore! *' 24254417                clearsysmsg4418                4419            elseif insysmsg "You dig some verite ore" 4420                overhead '* you harvest verite ore!! *' 22074421                clearsysmsg4422                4423            elseif insysmsg "You dig some valorite ore" 4424                overhead '* you harvest valorite ore!! *' 22194425                clearsysmsg4426                4427            elseif insysmsg "You dig some avarite ore" 4428                overhead '* you harvest avarite ore!!! *' 17634429                clearsysmsg4430                4431            elseif insysmsg 'You have worn out your tool' 4432                overhead "They don't make em like they used too..." 20864433                wait 500 4434                clearsysmsg4435                replay4436 4437            elseif insysmsg "travel"4438                replay4439                4440            elseif insysmsg 'You do not see any' or insysmsg 'You cannot produce any'4441                overhead "[ TIME T0 MOVE! ]" 694442                @setvar! Working 04443                clearsysmsg4444                replay4445            endif 4446        4447        if not findtype 'pickaxe' hand and findtype 'pickaxe' backpack4448            dclicktype 'pickaxe' backpack4449            wait 2504450        endif4451         4452        hotkey 'Use item in hand' 4453        wft 5004454        hotkey 'Target Self' 4455        wait 1004456   4457    endwhile4458    replay    4459endif4460 4461 4462        ////////////////////////////////4463        //   REST/SKILL/DEATH LOOP:   //4464        ////////////////////////////////4465 4466if dead 4467    wait 25004468    overhead "Well... shit..." 20864469    wait 15004470    overhead '[ STOPPING SCRIPT... ]' 3374471    stop4472endif4473 4474if not cooldown "Travel"  4475    wait 5004476    overhead "Train skill to 50.0 at NPC and then restart script!" 04477    wait 25004478    overhead '[ STOPPING SCRIPT... ]' 3374479    stop    4480else 4481    if not cooldown "Move Timer" 4482        overhead "* resting... *" 04483        cooldown "Move Timer" 60004484        if EnableSummons = 1 and not cooldown "Guard Timer" and followers > 14485            wait 25004486            overhead "* yawns... *" 2117 myMainTankPet4487            menu myMainTankPet 34488            cooldown "Guard Timer" 300004489        endif 4490    endif4491    4492    if EnableSatchels = 14493        if findtype "Ginseng|Garlic|Blood Moss|Sulfurous Ash|Mandrake Root%s%|Nightshade|Black Pearl%s%|Spider's Silk" backpack and findtype "reagent satchel" self as MyWizardBag4494            if not cooldown "Satchel Timer"4495                menu MyWizardBag 04496                wait 2504497                cooldown "Satchel Timer" 600004498            endif4499        endif4500    4501        if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag4502            if not cooldown "Satchel Timer" 4503                menu MyWizardBag 04504                wait 2504505                cooldown "Satchel Timer" 600004506            endif4507        endif 4508    endif4509                    4510    if insysmsg "Being perfectly rested" 4511        overhead "Leave me alone, I'm tryin to rest here..." 20864512        wait 5004513        if EnableSummons = 1 and not cooldown "Guard Timer" and followers > 14514            wait 25004515            overhead "* growls... *" 2117 myMainTankPet4516            menu myMainTankPet 34517            cooldown "Guard Timer" 600004518        endif 4519        clearsysmsg 4520    endif4521                4522    if insysmsg "Now tracking" or insysmsg "Distance to destination" and EnableRedAlertRecall = 14523        @setvar! TimeToGo 14524        replay4525    endif4526 4527    if paralyzed and EnableParalyzePouch = 14528        overhead "[[[[ POP ]]]]" 21174529        say "[pouch" 4530        @setvar! TimeToGo 14531        replay4532    endif                4533 4534    if insysmsg "As the owner" or insysmsg "Your house and its contents"4535        wait 15004536        if find MyDoor ground -1 -1 24537            overhead "* door slams! *" 0 MyDoor4538            dclick MyDoor 4539            wait 5004540        endif4541    endif                        4542    4543    if findtype 'iron ore|iron ingots' backpack 4544       hotkey 'Organizer Agent-03'4545    endif4546 4547            hotkey 'Organizer Agent-03'4548            wait 2504549            hotkey 'Organizer Agent-04'4550    replay4551endif 4552replay4553 4554 4555        //////////////4556        // THE END! //4557        //////////////4558 4559