What's new

Knight [PACC] [200] Gray Island Hive East Tower

Status
Not open for further replies.

Xinum

Never Give Up!
Joined
Dec 23, 2009
Messages
578
Reaction score
66
[EK][200] Gray Island Hive East Tower

Code:
<Settings>
  <Alerts>
    <Player>
      <OnScreen>
        <PlaySound>no</PlaySound>
        <FlashClient>no</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
        <SafeList>null</SafeList>
      </OnScreen>
      <Attacking>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
        <SafeList>null</SafeList>
      </Attacking>
      <GMOnScreen>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>yes</PauseBot>
        <Disconnect>no</Disconnect>
      </GMOnScreen>
    </Player>
    <Creature />
    <Item />
    <Message>
      <PrivateMessage>
        <PlaySound>no</PlaySound>
        <FlashClient>no</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
        <SafeList>null</SafeList>
      </PrivateMessage>
      <Advanced>
        <PlaySound>no</PlaySound>
        <FlashClient>no</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
        <Screenshot>no</Screenshot>
      </Advanced>
      <Raid>
        <PlaySound>no</PlaySound>
        <FlashClient>no</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
        <Warnings>All</Warnings>
      </Raid>
      <SafeBank>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>yes</PauseBot>
        <CloseTibia>no</CloseTibia>
        <Disconnect>yes</Disconnect>
      </SafeBank>
      <HealCreature>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>yes</PauseBot>
        <CloseTibia>no</CloseTibia>
        <Disconnect>yes</Disconnect>
        <Screenshot>no</Screenshot>
      </HealCreature>
      <YourAttack>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>yes</PauseBot>
        <CloseTibia>no</CloseTibia>
        <Disconnect>yes</Disconnect>
        <Screenshot>no</Screenshot>
        <SafeList>null</SafeList>
      </YourAttack>
      <Unjust>
        <PlaySound>yes</PlaySound>
        <FlashClient>yes</FlashClient>
        <PauseBot>yes</PauseBot>
        <CloseTibia>no</CloseTibia>
        <Disconnect>yes</Disconnect>
      </Unjust>
    </Message>
    <Capacity>
      <Value>100</Value>
      <PlaySound>no</PlaySound>
      <FlashClient>no</FlashClient>
      <PauseBot>no</PauseBot>
      <Disconnect>no</Disconnect>
    </Capacity>
    <StandTime>
      <Value>30000</Value>
      <PlaySound>no</PlaySound>
      <FlashClient>no</FlashClient>
      <PauseBot>no</PauseBot>
      <Disconnect>no</Disconnect>
    </StandTime>
    <Stamina>
      <Value>841</Value>
      <PlaySound>yes</PlaySound>
      <FlashClient>yes</FlashClient>
      <PauseBot>yes</PauseBot>
      <CloseTibia>no</CloseTibia>
      <Disconnect>yes</Disconnect>
    </Stamina>
    <Disconnect>
      <PlaySound>no</PlaySound>
      <FlashClient>no</FlashClient>
      <PauseBot>no</PauseBot>
    </Disconnect>
    <Enabled>no</Enabled>
  </Alerts>
  <Healer>
    <Rules>
      <Exura-Gran-Ico>
        <HealRange>0 to 20 %</HealRange>
        <ManaRange>200 to all</ManaRange>
        <HealMethod>Intense Wound Cleansing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </Exura-Gran-Ico>
      <UHP>
        <HealRange>0 to 40 %</HealRange>
        <ManaRange>0 to 100 %</ManaRange>
        <HealMethod>Ultimate Health Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </UHP>
      <GHP>
        <HealRange>35 to 55 %</HealRange>
        <ManaRange>0 to 100 %</ManaRange>
        <HealMethod>Great Health Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </GHP>
      <Mana-Potion>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>0 to 80 %</ManaRange>
        <HealMethod>Mana Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </Mana-Potion>
      <Anty-Paral>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>60 to all</ManaRange>
        <HealMethod>Haste</HealMethod>
        <ExtraCondition>If paralyzed</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </Anty-Paral>
      <Exura-Ico>
        <HealRange>0 to 92 %</HealRange>
        <ManaRange>40 to all</ManaRange>
        <HealMethod>Wound Cleansing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </Exura-Ico>
      <Utura-Gran>
        <HealRange>80 to 98 %</HealRange>
        <ManaRange>180 to all</ManaRange>
        <HealMethod>Intense Recovery</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>1 to 1</SpamRate>
        <Enabled>yes</Enabled>
      </Utura-Gran>
    </Rules>
    <PingCompensation>10</PingCompensation>
    <Enabled>yes</Enabled>
  </Healer>
  <FriendHealer>
    <Rules />
    <Enabled>no</Enabled>
  </FriendHealer>
  <Refiller>
    <Rules />
    <Enabled>no</Enabled>
  </Refiller>
  <HotKeys>
    <List>
      <ShowBot>
        <Script>showbot()</Script>
        <MainKey>66</MainKey>
        <ComboKey>Alt</ComboKey>
        <Enabled>yes</Enabled>
      </ShowBot>
      <PauseBot>
        <Script>local cavebot = getsettings("Settings/CaveBot/Enabled")
local targeting = getsettings("Settings/Targeting/Enabled")

if cavebot == 'no' or targeting == 'no' then
   setcavebot('on')
   settargeting('on')
   setlooting('on')
else
   setcavebot('off')
   settargeting('off')
   setlooting('off')
end
wait(500)</Script>
        <MainKey>19</MainKey>
        <ComboKey>None</ComboKey>
        <Enabled>yes</Enabled>
      </PauseBot>
      <ShowClient>
        <Script>focusclient()</Script>
        <MainKey>84</MainKey>
        <ComboKey>Alt</ComboKey>
        <Enabled>yes</Enabled>
      </ShowClient>
      <ShowSettings>
        <Script>showsettings()</Script>
        <MainKey>83</MainKey>
        <ComboKey>Alt</ComboKey>
        <Enabled>yes</Enabled>
      </ShowSettings>
    </List>
    <Condition>Client focus required</Condition>
    <Enabled>yes</Enabled>
  </HotKeys>
  <Actions>
    <List>
      <Targeting>
        <Script>    if paround(8,true) ~= 0 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Whirlwind Throw')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'No Action')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'No Action')
    elseif maround(1,false,'Waspoid','Crawler','Swarmer','Insectoid Worker','Spitter','Spidris') == 0 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Whirlwind Throw')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'No Action')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'No Action')
    elseif maround(1,false,'Waspoid','Crawler','Swarmer','Insectoid Worker','Spitter','Spidris') == 1 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Whirlwind Throw')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'No Action')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'No Action')
    elseif maround(1,false,'Waspoid','Crawler','Swarmer','Insectoid Worker','Spitter','Spidris') == 2 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Berserk')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'Whirlwind Throw')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'No Action')
    elseif maround(1,false,'Waspoid','Crawler','Swarmer','Insectoid Worker','Spitter','Spidris') == 3 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Fierce Berserk')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Berserk')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'Whirlwind Throw')
    elseif maround(1,false,'Waspoid','Crawler','Swarmer','Insectoid Worker','Spitter','Spidris') >= 4 then
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell0",'Fierce Berserk')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell1",'Berserk')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell2",'Brutal Strike')
    setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\ListSettings\\Setting0\\ListSpell\\Spell3",'Whirlwind Throw')
    end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Targeting>
      <CheckSofts>
        <Script>if boots == 6530 then 
setsettings("Settings\\Refiller\\Rules\\BoH\\Enabled", "yes") 
else 
setsettings("Settings\\Refiller\\Rules\\BoH\\Enabled", "no") 
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </CheckSofts>
      <SafeBank>
        <Script>-- NPC name
local npcname = 'Ebenizer'

local index = 0 
local msgs = getmessages("NPCs")
local qtd = msgs.count-1
for i=0,qtd do
   if msgs[qtd].sender == npcname and msgs[qtd].text:find('There is not enough gold on your account.') then
      setcavebot('off')
      wait(5000,10000)
      closetibia()
   end
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </SafeBank>
      <AutoMount>
        <Script>if AutoMount then setsettings("Settings\\Cavebot\\Settings\\AutoMount","yes") else setsettings("Settings\\Cavebot\\Settings\\AutoMount","no") end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </AutoMount>
      <CheckZone>
        <Script>if pzone == true then setsettings("Settings\\CaveBot\\Pathfinding\\WalkThroughPlayers", "yes") else setsettings("Settings\\CaveBot\\Pathfinding\\WalkThroughPlayers", "no") end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </CheckZone>
      <SoftBoots>
        <Script>local iBoots = { soft = "soft boots", normal = "boots of haste"}
local ManaToSoft = 98 --%

if mppc <= ManaToSoft and pzone == false and boots ~= 3549 and itemcount(iBoots.soft) >= 1 then
  setlooting("no")
    pausewalking(1500)
      moveitems(iBoots.soft, "all", "boots", 1) wait(800)
    pausewalking(0)
  setlooting("yes")

elseif mppc > ManaToSoft and boots ~= itemid(iBoots.normal) then
  setlooting("no")
    pausewalking(1500)
      moveitems(iBoots.normal, "all", "boots", 1) wait(800)
    pausewalking(0)
  setlooting("yes")

elseif pzone == true and boots ~= itemid(iBoots.normal) then
  pausewalking(1500)
    moveitems(iBoots.normal, "all", "boots", 1) wait(800)
  pausewalking(0)

elseif boots == itemid("worn soft boots") then
  setlooting("no")
    pausewalking(1500)
      moveitems(iBoots.normal, "all", "boots", 1) wait(800)
    pausewalking(0)
  setlooting("yes")
end </Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </SoftBoots>
    </List>
    <Setup>-- Backpack Setup:

MainBP = "Backpack of Holding" -- Main Backpack Name
LootBP = "Jewelled Backpack" --Loot Backpack Name
PotionsBP = "Dragon Backpack" -- Potion Backpack Name
GoldBP = "Brocade Backpack" -- Gold Backpack Name

--ServerType--
PvP = true
NoNPvP = false

AutoMount = true
LootSeller = true
RefilSofts = true
CapCheck = 200

-- Backpack Depot Setup:

MainDPBP = "Red Backpack" -- Main Backpack in Depo
StackableDPBP = "Blue Backpack" --Backpack for Stackable items
LootDPBP = "Red Backpack" -- Backpack for rare loot in Depot

-- Potions Setup:

MPname = "Mana Potion" -- Name of mana potion.
MPprice = 50 -- Price of mana potion to buy.
MPtobuy = 1100 -- How many mana potions to buy?
MPtoback = 250 -- How many potions to back reffil?

HPname = "Ultimate Health Potion" -- Name of mana potion.
HPprice = 310 -- Price of mana potion to buy.
HPtobuy = 100 -- How many mana potions to buy?
HPtoback = 30 -- How many potions to back reffil?</Setup>
    <Library>Standard</Library>
    <Enabled>yes</Enabled>
  </Actions>
  <CaveBot>
    <Waypoints>
      <w000>Action 33535 31305 7</w000>
      <OpenBpStart>Action 33535 31305 7 closewindows();wait(500, 1000);openitem(MainBP, 'back');wait(500, 1000);resizewindows() ;wait(500, 1000);openitem(LootBP, MainBP, true);wait(500, 1000);resizewindows();wait(500, 1000);openitem(GoldBP, MainBP, true);wait(500, 1000);resizewindows();wait(500, 1000);openitem(PotionsBP, MainBP, true);wait(500, 1000);resizewindows()</OpenBpStart>
      <CheckBpBegin>Action 33535 31305 7 if windowcount() < 4 then gotolabel("OpenBpStart") end</CheckBpBegin>
      <Start>Stand 33535 31305 7</Start>
      <w004>Stand 33534 31334 7</w004>
      <w005>Stand 33540 31347 7</w005>
      <w006>Stand 33558 31330 7</w006>
      <w007>Stand 33561 31318 7</w007>
      <w008>Stand 33557 31318 7</w008>
      <w009>Stand 33557 31313 6</w009>
      <w010>Stand 33546 31316 6</w010>
      <w011>Stand 33554 31315 6</w011>
      <w012>Stand 33549 31318 5</w012>
      <w013>Stand 33559 31313 5</w013>
      <w014>Stand 33555 31311 5</w014>
      <w015>Stand 33554 31312 4</w015>
      <w016>Stand 33551 31318 4</w016>
      <w017>Stand 33552 31316 4</w017>
      <w018>Stand 33555 31318 3</w018>
      <w019>Stand 33557 31317 3</w019>
      <w020>Stand 33555 31318 2</w020>
      <w021>Stand 33551 31317 2</w021>
      <w022>Stand 33556 31315 1</w022>
      <w023>Stand 33551 31317 1</w023>
      <w024>Stand 33557 31317 2</w024>
      <w025>Stand 33552 31316 3</w025>
      <w026>Stand 33555 31311 4</w026>
      <w027>Stand 33554 31315 5</w027>
      <w028>Stand 33557 31318 6</w028>
      <w029>Stand 33560 31322 7</w029>
      <w030>Stand 33558 31331 7</w030>
      <CheckSupplies>Action 33558 31331 7 dropitems(283,284,285);if itemcount(MPname) < MPtoback or itemcount(HPname) < HPtoback or cap < CapCheck then gotolabel("Depositer") else end</CheckSupplies>
      <Tower2>Stand 33561 31331 7</Tower2>
      <w033>Stand 33573 31310 7</w033>
      <w034>Stand 33580 31296 7</w034>
      <w035>Stand 33582 31286 7</w035>
      <w036>Stand 33585 31284 7</w036>
      <w037>Stand 33581 31280 8</w037>
      <w038>Stand 33590 31281 8</w038>
      <w039>Stand 33585 31284 8</w039>
      <w040>Rope 33585 31284 8</w040>
      <w041>Stand 33582 31284 7</w041>
      <w042>Stand 33584 31282 6</w042>
      <w043>Stand 33584 31284 5</w043>
      <w044>Stand 33582 31284 5</w044>
      <w045>Stand 33582 31284 4</w045>
      <w046>Stand 33584 31282 5</w046>
      <w047>Stand 33582 31284 6</w047>
      <w048>Stand 33582 31292 7</w048>
      <w049>Stand 33570 31296 7</w049>
      <w050>Stand 33532 31298 7</w050>
      <CheckBp2>Action 33532 31298 7 dropitems(283,284,285);if itemcount(MPname) < MPtoback or itemcount(HPname) < HPtoback or cap < CapCheck then gotolabel("Depositer") else gotolabel("CheckBpBegin") end</CheckBp2>
      <Depositer>Action 33457 31298 6 setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Waspoid\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Crawler\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Swarmer\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Insectoid Worker\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spitter\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spidris\\OnlyIfTrapped","yes");setlooting("no");</Depositer>
      <Depositer1>Stand 33530 31297 7</Depositer1>
      <OnlyTrapped>Action 33530 31297 7 setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Waspoid\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Crawler\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Swarmer\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Insectoid Worker\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spitter\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spidris\\OnlyIfTrapped","yes");setlooting("no")</OnlyTrapped>
      <w054>Stand 33516 31284 7</w054>
      <w055>Stand 33489 31280 7</w055>
      <w056>Stand 33465 31274 7</w056>
      <w057>Stand 33459 31284 7</w057>
      <w058>Stand 33457 31295 7</w058>
      <w059>Stand 33457 31297 7</w059>
      <w060>Stand 33457 31298 6</w060>
      <w061>Action 33457 31298 6 if not islocation(1) then gotolabel("Depositer") else end</w061>
      <w062>Stand 33460 31302 6</w062>
      <SellLoot>Action 33460 31302 6 say('hi');wait(500,1000);npcsay("trade");wait(500,1000);npcsay('creature products');wait(800,1000);sellitemsupto("waspoid wing", 100);wait(800,1000);sellitemsupto("waspoid claw", 100);wait(800,1000);sellitemsupto("spitter nose", 100);wait(800,1000);sellitemsupto("dung ball", 100);wait(800,1000);sellitemsupto("crawler head plating", 100);wait(800,1000);sellitemsupto("compound eye", 100);wait(800,1000);sellitemsupto("compound eye", 100);wait(800,1000);sellitemsupto("swarmer antenna", 100);wait(800,1000)</SellLoot>
      <w064>Stand 33460 31305 6</w064>
      <w065>Stand 33460 31307 6</w065>
      <w066>Stand 33457 31311 7</w066>
      <w067>Stand 33447 31320 7</w067>
      <w068>Stand 33442 31321 8</w068>
      <FixBpLoot>Action 33442 31321 8 setsettings("Settings\\CaveBot\\Settings\\OpenNextBp","no");;closewindows();wait(500, 1000);openitem(MainBP, 'back');wait(500, 1000);resizewindows() ;wait(500, 1000);openitem(LootBP, MainBP, true);wait(500, 1000);resizewindows()</FixBpLoot>
      <CheckBpLoot>Action 33442 31321 8 if windowcount() < 2 then gotolabel("FixBpLoot") end</CheckBpLoot>
      <depo>Action 33442 31321 8 reachgrounditem("depot");wait(1000,2000);openitem("depot");wait(1000,2000);openitem(3502, "locker");wait(1000,2000);openitem(MainDPBP, "depot chest");wait(500,2000);resizewindow("MainDPBP", 4)</depo>
      <w072>Action 33440 31318 8 if windowcount(MainDPBP) == 0 then gotolabel('depo') end</w072>
      <MoveItems>Action 33442 31321 8 while itemcount(14225) ~= 0 do;depotdeposit(StackableDPBP, 14225);wait(100,200);end;while itemcount("mastermind potion") ~= 0 do;depotdeposit(StackableDPBP, "mastermind potion");wait(100,200);end;while itemcount("giant shimmering pearl") ~= 0 do;depotdeposit(StackableDPBP, "giant shimmering pearl");wait(100,200);end;while itemcount("emerald bangle") ~= 0 do;depotdeposit(StackableDPBP, "emerald bangle");wait(100,200);end;while itemcount("spidris mandible") ~= 0 do;depotdeposit(StackableDPBP, "spidris mandible");wait(100,200);end;while itemcount("spitter nose") ~= 0 do;depotdeposit(StackableDPBP, "spitter nose");wait(100,200);end;while itemcount("waspoid claw") ~= 0 do;depotdeposit(StackableDPBP, "waspoid claw");wait(100,200);end;while itemcount("black pearl") ~= 0 do;depotdeposit(StackableDPBP, "black pearl");wait(100,200);end;while itemcount("small emerald") ~= 0 do;depotdeposit(StackableDPBP, "small emerald");wait(100,200);end;while itemcount("small topaz") ~= 0 do;depotdeposit(StackableDPBP, "small topaz");wait(100,200);end;while itemcount("crawler head plating") ~= 0 do;depotdeposit(StackableDPBP, "crawler head plating");wait(100,200);end;while itemcount("small amethyst") ~= 0 do;depotdeposit(StackableDPBP, "small amethyst");wait(100,200);end;while itemcount("great health potion") ~= 0 do;depotdeposit(StackableDPBP, "great health potion");wait(100,200);end;while itemcount("waspoid wing") ~= 0 do;depotdeposit(StackableDPBP, "waspoid wing");wait(100,200);end;while itemcount("compound eye") ~= 0 do;depotdeposit(StackableDPBP, "compound eye");wait(100,200);end;while itemcount("swarmer antenna") ~= 0 do;depotdeposit(StackableDPBP, "swarmer antenna");wait(100,200);end;while itemcount("great mana potion") ~= 0 do;depotdeposit(StackableDPBP, "great mana potion");wait(100,200);end;;while itemcount("hive scythe") ~= 0 do;depotdeposit(LootDPBP, "hive scythe");wait(100,200);end;while itemcount("carapace shield") ~= 0 do;depotdeposit(LootDPBP, "carapace shield");wait(100,200);end;while itemcount("calopteryx cape") ~= 0 do;depotdeposit(LootDPBP, "calopteryx cape");wait(100,200);end;while itemcount("grasshopper legs") ~= 0 do;depotdeposit(LootDPBP, "grasshopper legs");wait(100,200);end;while itemcount("violet gem") ~= 0 do;depotdeposit(LootDPBP, "violet gem");wait(100,200);end;while itemcount("epee") ~= 0 do;depotdeposit(LootDPBP, "epee");wait(100,200);end;while itemcount("crusader helmet") ~= 0 do;depotdeposit(LootDPBP, "crusader helmet");wait(100,200);end;while itemcount("green gem") ~= 0 do;depotdeposit(LootDPBP, "green gem");wait(100,200);end;while itemcount("titan axe") ~= 0 do;depotdeposit(LootDPBP, "titan axe");wait(100,200);end;while itemcount("springsprout rod") ~= 0 do;depotdeposit(LootDPBP, "springsprout rod");wait(100,200);end;while itemcount("platinum amulet") ~= 0 do;depotdeposit(LootDPBP, "platinum amulet");wait(100,200);end;while itemcount("war hammer") ~= 0 do;depotdeposit(LootDPBP, "war hammer");wait(100,200);end;while itemcount("death ring") ~= 0 do;depotdeposit(LootDPBP, "death ring");wait(100,200);end;while itemcount("yellow gem") ~= 0 do;depotdeposit(LootDPBP, "yellow gem");wait(100,200);end;while itemcount("crystal sword") ~= 0 do;depotdeposit(LootDPBP, "crystal sword");wait(100,200);end;while itemcount("time ring") ~= 0 do;depotdeposit(LootDPBP, "time ring");wait(100,200);end;;openitem(LootBP, LootBP);wait(5000);;;while itemcount(14225) ~= 0 do;depotdeposit(StackableDPBP, 14225);wait(100,200);end;while itemcount("mastermind potion") ~= 0 do;depotdeposit(StackableDPBP, "mastermind potion");wait(100,200);end;while itemcount("giant shimmering pearl") ~= 0 do;depotdeposit(StackableDPBP, "giant shimmering pearl");wait(100,200);end;while itemcount("emerald bangle") ~= 0 do;depotdeposit(StackableDPBP, "emerald bangle");wait(100,200);end;while itemcount("spidris mandible") ~= 0 do;depotdeposit(StackableDPBP, "spidris mandible");wait(100,200);end;while itemcount("spitter nose") ~= 0 do;depotdeposit(StackableDPBP, "spitter nose");wait(100,200);end;while itemcount("waspoid claw") ~= 0 do;depotdeposit(StackableDPBP, "waspoid claw");wait(100,200);end;while itemcount("black pearl") ~= 0 do;depotdeposit(StackableDPBP, "black pearl");wait(100,200);end;while itemcount("small emerald") ~= 0 do;depotdeposit(StackableDPBP, "small emerald");wait(100,200);end;while itemcount("small topaz") ~= 0 do;depotdeposit(StackableDPBP, "small topaz");wait(100,200);end;while itemcount("crawler head plating") ~= 0 do;depotdeposit(StackableDPBP, "crawler head plating");wait(100,200);end;while itemcount("small amethyst") ~= 0 do;depotdeposit(StackableDPBP, "small amethyst");wait(100,200);end;while itemcount("great health potion") ~= 0 do;depotdeposit(StackableDPBP, "great health potion");wait(100,200);end;while itemcount("waspoid wing") ~= 0 do;depotdeposit(StackableDPBP, "waspoid wing");wait(100,200);end;while itemcount("compound eye") ~= 0 do;depotdeposit(StackableDPBP, "compound eye");wait(100,200);end;while itemcount("swarmer antenna") ~= 0 do;depotdeposit(StackableDPBP, "swarmer antenna");wait(100,200);end;while itemcount("great mana potion") ~= 0 do;depotdeposit(StackableDPBP, "great mana potion");wait(100,200);end;;while itemcount("hive scythe") ~= 0 do;depotdeposit(LootDPBP, "hive scythe");wait(100,200);end;while itemcount("carapace shield") ~= 0 do;depotdeposit(LootDPBP, "carapace shield");wait(100,200);end;while itemcount("calopteryx cape") ~= 0 do;depotdeposit(LootDPBP, "calopteryx cape");wait(100,200);end;while itemcount("grasshopper legs") ~= 0 do;depotdeposit(LootDPBP, "grasshopper legs");wait(100,200);end;while itemcount("violet gem") ~= 0 do;depotdeposit(LootDPBP, "violet gem");wait(100,200);end;while itemcount("epee") ~= 0 do;depotdeposit(LootDPBP, "epee");wait(100,200);end;while itemcount("crusader helmet") ~= 0 do;depotdeposit(LootDPBP, "crusader helmet");wait(100,200);end;while itemcount("green gem") ~= 0 do;depotdeposit(LootDPBP, "green gem");wait(100,200);end;while itemcount("titan axe") ~= 0 do;depotdeposit(LootDPBP, "titan axe");wait(100,200);end;while itemcount("springsprout rod") ~= 0 do;depotdeposit(LootDPBP, "springsprout rod");wait(100,200);end;while itemcount("platinum amulet") ~= 0 do;depotdeposit(LootDPBP, "platinum amulet");wait(100,200);end;while itemcount("war hammer") ~= 0 do;depotdeposit(LootDPBP, "war hammer");wait(100,200);end;while itemcount("death ring") ~= 0 do;depotdeposit(LootDPBP, "death ring");wait(100,200);end;while itemcount("yellow gem") ~= 0 do;depotdeposit(LootDPBP, "yellow gem");wait(100,200);end;while itemcount("crystal sword") ~= 0 do;depotdeposit(LootDPBP, "crystal sword");wait(100,200);end;while itemcount("time ring") ~= 0 do;depotdeposit(LootDPBP, "time ring");wait(100,200);end</MoveItems>
      <w074>Stand 33450 31314 8</w074>
      <FixBpPots>Action 33450 31314 8 closewindows();wait(500, 1000);openitem(MainBP, 'back');wait(500, 1000);resizewindows() ;wait(500, 1000);openitem(PotionsBP, MainBP, true);wait(500, 1000);resizewindows()</FixBpPots>
      <CheckBpPots>Action 33440 31322 8 if windowcount() < 2 then gotolabel("FixBpPots") end</CheckBpPots>
      <w077>Stand 33452 31309 8</w077>
      <WithdrawCash>Action 33452 31309 8 -- Bank Depositer;wait(500,900);depositall();;local mana = positive(MPtobuy - itemcount(MPname)) * MPprice;local health = positive(HPtobuy - itemcount(HPname)) * HPprice;local softs = positive(itemcount("Worn Soft Boots")) * 11500;;local Total = mana + health + softs;;npcsay("withdraw "..Total);wait(200,300);npcsay("yes");wait(200,300);</WithdrawCash>
      <w079>Stand 33447 31320 8</w079>
      <CheckSofts>Action 33448 31321 7 if RefilSofts == true and itemcount("Worn Soft Boots") > 0 then gotolabel('Softs') else end</CheckSofts>
      <w081>Stand 33457 31314 7</w081>
      <w082>Stand 33460 31307 7</w082>
      <w083>Stand 33459 31302 6</w083>
      <BuySupplies>Action 33459 31302 6 say("hi");wait(500,1000);npcsay("trade");wait(500,1000);npcsay("magic stuff");wait(500,1000);sellflasks();wait(500,1000);;buyitemsupto(HPname, HPtobuy);moveitems(HPname,PotionsBP, 1000);moveitems(HPname,PotionsBP, 1000);;local CurrentAmmo = itemcount(MPname);;amount = MPtobuy - CurrentAmmo;while amount > 0 do ;buyitems(MPname, amount) ;wait(500,1000) ;moveitems(MPname,PotionsBP, 1000) ;wait(300,400) ;amount = amount-100;end;;npcsay("bye")</BuySupplies>
      <CheckAfterBuy>Action 33459 31302 6 if itemcount(MPname) < MPtobuy or itemcount(HPname) < HPtobuy then gotolabel("w053") else end;;setsettings("Settings\\CaveBot\\Settings\\OpenNextBp","no")</CheckAfterBuy>
      <w086>Stand 33459 31299 6</w086>
      <FixBpOver>Action 33459 31299 6 setsettings("Settings\\CaveBot\\Settings\\OpenNextBp","yes");closewindows();wait(500, 1000);openitem(MainBP, 'back');wait(500, 1000);resizewindows() ;wait(500, 1000);openitem(LootBP, MainBP, true);wait(500, 1000);resizewindows();wait(500, 1000);openitem(GoldBP, MainBP, true);wait(500, 1000);resizewindows();wait(500, 1000);openitem(PotionsBP, MainBP, true);wait(500, 1000);resizewindows()</FixBpOver>
      <w088>Action 33459 31299 6 if windowcount() < 4 then gotolabel("FixBpOver") end;setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Waspoid\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Crawler\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Swarmer\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Insectoid Worker\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spitter\\OnlyIfTrapped","yes");setsettings("Settings\\Targeting\\Monsters\\Spidris\\OnlyIfTrapped","yes");;</w088>
      <w089>Stand 33457 31297 6</w089>
      <w090>Stand 33458 31288 7</w090>
      <w091>Stand 33479 31268 7</w091>
      <w092>Stand 33505 31278 7</w092>
      <w093>Stand 33522 31285 7</w093>
      <w094>Stand 33534 31305 7</w094>
      <SwitchOffMonsters>Action 33534 31305 7 setsettings("Settings\\Targeting\\Monsters\\CATEGORY A\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Waspoid\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Crawler\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Swarmer\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Insectoid Worker\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Spitter\\OnlyIfTrapped","no");setsettings("Settings\\Targeting\\Monsters\\Spidris\\OnlyIfTrapped","no");setlooting("yes");</SwitchOffMonsters>
      <w096>Action 33534 31305 7 gotolabel("CheckBpBegin");wait(500,1000)</w096>
      <Softs>Stand 33447 31324 7</Softs>
      <w098>Stand 33453 31340 7</w098>
      <w099>Stand 33453 31345 7</w099>
      <w100>Stand 33455 31347 8</w100>
      <w101>Stand 33457 31348 8</w101>
      <w102>Stand 33196 31980 8</w102>
      <w103>Stand 33188 31988 8</w103>
      <w104>Rope 33188 31988 8</w104>
      <w105>Stand 33189 31983 7</w105>
      <w106>Action 33189 31983 7 say("hi");wait(500,1000);npcsay("passage");wait(500,1000);npcsay("venore");wait(500,1000)</w106>
      <w107>Stand 32955 32024 6</w107>
      <w108>Action 32955 32024 6 if not islocation(1) gotolabel("Softs") else end</w108>
      <Softs2>Stand 32955 32025 6</Softs2>
      <w110>Stand 32954 32052 6</w110>
      <w111>Stand 32955 32076 6</w111>
      <w112>Stand 32951 32096 6</w112>
      <w113>Stand 32951 32108 6</w113>
      <w114>Stand 32952 32108 6</w114>
      <w115>Action 32952 32108 6 say("hi");wait(500,1000);npcsay("soft boots");wait(500,1000);npcsay("yes");wait(500,1000);</w115>
      <w116>Stand 32949 32103 6</w116>
      <w117>Stand 32954 32094 6</w117>
      <w118>Stand 32955 32073 6</w118>
      <w119>Stand 32954 32051 6</w119>
      <w120>Stand 32955 32021 6</w120>
      <w121>Action 32955 32021 6 reachcreature("Captain Fearless");wait(500,1500);say("hi");wait(500,1000);npcsay("passage");wait(500,1000);npcsay("gray island");wait(500,1000);npcsay("yes");wait(500,1000)</w121>
      <w122>Stand 33188 31987 7</w122>
      <w123>Stand 33188 31988 7</w123>
      <w124>Stand 33193 31985 8</w124>
      <w125>Stand 33199 31978 8</w125>
      <w126>Stand 33201 31977 8</w126>
      <w127>Stand 33453 31345 8</w127>
      <w128>Rope 33453 31345 8</w128>
      <w129>Stand 33452 31340 7</w129>
      <w130>Stand 33446 31323 7</w130>
      <w131>Action 33446 31323 7 if not islocation(1) gotolabel("Softs2") else end</w131>
      <w132>Action 33446 31323 7 gotolabel("CheckSofts")</w132>
    </Waypoints>
    <Pathfinding>
      <SpecialAreas>
      </SpecialAreas>
      <WalkThroughPlayers>yes</WalkThroughPlayers>
      <WalkingMethod>Map Clicks</WalkingMethod>
      <MapWalkDistance>20 to 50</MapWalkDistance>
      <WalkableIds>140;404;831;832;833;834;883;2118;2119;2120;2121;2122;2123;2124;2125;2126;2127;2131;2132;2133;2134;2135;2314;2315;2316;2319;2346;2347;2348;2349;2350;2351;2352;2353;2354;2355;2356;2357;2358;2359;2360;2361;2362;2363;2364;2365;2366;2367;2368;2369;2370;2371;2372;2373;2374;2375;2376;2377;2378;2379;2380;2381;2382;2383;2384;2385;2418;2419;2420;2421;2422;2423;2424;2425;2426;2431;2432;2433;2434;2441;2442;2443;2444;2469;2471;2472;2473;2478;2480;2481;2482;2483;2484;2485;2486;2519;2523;2775;2776;2777;2778;2779;2780;2781;2782;2783;2784;2785;2786;2787;2788;2789;2790;2791;2792;2793;2794;2795;2796;2797;2798;2799;2800;2801;2802;2803;2804;2805;2806;2807;2808;2809;2810;2811;2812;2981;2983;2982;2984;2985;2987;2988;3503;3504;3514;3807;5086;5087;5088;6114;6115;6355;6356;6357;6358;6359;6360;6361;6362;6371;6372;7864;8455;8763;9061;9062;10207;10209;10216;10286;10287;10288;11009;11800;11801;11802;11803;11804;11805;11806;11807;11808;11809;11810</WalkableIds>
    </Pathfinding>
    <Settings>
      <Rope>3003</Rope>
      <Shovel>3457</Shovel>
      <Pick>3456</Pick>
      <Machete>3308</Machete>
      <NodeRange>4</NodeRange>
      <Priority>Target and Looting</Priority>
      <OpenNextBp>yes</OpenNextBp>
      <AutoMount>yes</AutoMount>
      <Anti-idle>no</Anti-idle>
      <EatFood>yes</EatFood>
      <FoodToEat>3725;3587;3600;3595;3589;3598;8014;3583;3606;3578;3592;3582;3577;3593;3586;3585;3581;3723</FoodToEat>
      <PauseOnDeath>yes</PauseOnDeath>
    </Settings>
    <Enabled>no</Enabled>
  </CaveBot>
  <Looting>
    <List>
      <Dung-Ball>
        <Id>14225</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dung-Ball>
      <carapace-shield>
        <Id>14088</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </carapace-shield>
      <hive-scythe>
        <Id>14089</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </hive-scythe>
      <calopteryx-cape>
        <Id>14086</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </calopteryx-cape>
      <grasshopper-legs>
        <Id>14087</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </grasshopper-legs>
      <violet-gem>
        <Id>3036</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </violet-gem>
      <epee>
        <Id>3326</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </epee>
      <crusader-helmet>
        <Id>3391</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </crusader-helmet>
      <green-gem>
        <Id>3038</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </green-gem>
      <mastermind-potion>
        <Id>7440</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </mastermind-potion>
      <titan-axe>
        <Id>7413</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </titan-axe>
      <springsprout-rod>
        <Id>8084</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </springsprout-rod>
      <giant-shimmering-pearl>
        <Id>282</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </giant-shimmering-pearl>
      <platinum-amulet>
        <Id>3055</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </platinum-amulet>
      <war-hammer>
        <Id>3279</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </war-hammer>
      <death-ring>
        <Id>6299</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </death-ring>
      <yellow-gem>
        <Id>3037</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </yellow-gem>
      <emerald-bangle>
        <Id>3010</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </emerald-bangle>
      <crystal-sword>
        <Id>7449</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </crystal-sword>
      <spidris-mandible>
        <Id>14082</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </spidris-mandible>
      <spitter-nose>
        <Id>14078</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </spitter-nose>
      <waspoid-claw>
        <Id>14080</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </waspoid-claw>
      <ultimate-health-potion>
        <Id>7643</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </ultimate-health-potion>
      <black-pearl>
        <Id>3027</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </black-pearl>
      <small-emerald>
        <Id>3032</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </small-emerald>
      <small-topaz>
        <Id>9057</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </small-topaz>
      <crawler-head-plating>
        <Id>14079</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </crawler-head-plating>
      <small-amethyst>
        <Id>3033</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </small-amethyst>
      <great-health-potion>
        <Id>239</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </great-health-potion>
      <waspoid-wing>
        <Id>14081</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </waspoid-wing>
      <compound-eye>
        <Id>14083</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </compound-eye>
      <swarmer-antenna>
        <Id>14076</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </swarmer-antenna>
      <great-mana-potion>
        <Id>238</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </great-mana-potion>
      <time-ring>
        <Id>3053</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </time-ring>
      <platinum-coin>
        <Id>3035</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </platinum-coin>
      <gold-coin>
        <Id>3031</Id>
        <Destination>02</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </gold-coin>
    </List>
    <Condition>Corpses with listed items</Condition>
    <Style>After melee kill</Style>
    <OpenBodyTime>300</OpenBodyTime>
    <Range>10</Range>
    <EatFood>yes</EatFood>
    <Enabled>no</Enabled>
  </Looting>
  <Targeting>
    <Monsters>
      <CATEGORY-A>
        <Categories>-</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Reach</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Whirlwind Throw</Spell0>
              <Spell1>Brutal Strike</Spell1>
              <Spell2>No Action</Spell2>
              <Spell3>No Action</Spell3>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </CATEGORY-A>
      <Waspoid>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Waspoid>
      <Crawler>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Crawler>
      <Swarmer>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Swarmer>
      <Insectoid-Worker>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Insectoid-Worker>
      <Spitter>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Spitter>
      <Spidris>
        <Categories>A</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Spidris>
      <All>
        <Categories>-</Categories>
        <Danger>0</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>No movement</Stance>
            <Avoid>None</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </All>
    </Monsters>
    <Settings>
      <ListOrder>7</ListOrder>
      <Health>9</Health>
      <Proximity>3</Proximity>
      <Danger>5</Danger>
      <PlayerOnScreenSecurity>If cavebotting</PlayerOnScreenSecurity>
      <CooldownControl>yes</CooldownControl>
      <CheckItem>no</CheckItem>
      <MustBeReachable>yes</MustBeReachable>
      <MustBeShootable>no</MustBeShootable>
    </Settings>
    <Enabled>yes</Enabled>
  </Targeting>
  <Hud>
    <List>
      <Hudzior>
        <Script>-- [[ INIT START ]] --
	--
	--                       88                                                                
	--                       ""                                                ,d              
	--                                                                         88              
	--            ,adPPYba,  88  8b,dPPYba,  88,dPYba,,adPYba,   ,adPPYYba,  MM88MMM  ,adPPYba,
	--            I8[    ""  88  88P'   "Y8  88P'   "88"    "8a  ""     `Y8    88    a8P_____88
	--             `"Y8ba,   88  88          88      88      88  ,adPPPPP88    88    8PP"""""""
	--            aa    ]8I  88  88          88      88      88  88,    ,88    88,   "8b,   ,aa
	--   Author:  `"YbbdP"'  88  88          88      88      88  `"8bbdP"Y8    "Y888  `"Ybbd8"'
	--   
	--   Monitor My Hunting!
	--
	--   Version: 1.0
	--   Created: 7.09.2012
	--   Last update: 18.09.2012
	--
	
	MONITOR_MY_HUNTING = MONITOR_MY_HUNTING or {
		SCRIPT_NAME = "Monitor My Hunting",
		SCRIPT_VERSION = "1.0",
		
		CLEARED_STATS = false,
		INITIALIZED = false,
	}

	MONITOR_MY_HUNTING.SHOW_ALL_ITEMS = false
	MONITOR_MY_HUNTING.ITEMS_LIST = {
		{NAME = "gold coin", VALUE = 1},
		{NAME = "platinum coin", VALUE = 100},
		{NAME = "mastermind potion", VALUE = 500},
		{NAME = "spitter nose", VALUE = 340},
		{NAME = "small amethyst", VALUE = 200},
		{NAME = "dung ball", VALUE = 130},
		{NAME = "emerald bangle", VALUE = 800},
		{NAME = "waspoid claw", VALUE = 320},
		{NAME = "black pearl", VALUE = 280},
		{NAME = "small emerald", VALUE = 250},
		{NAME = "small topaz", VALUE = 200},
		{NAME = "crawler head plating", VALUE = 210},
		{NAME = "great health potion", VALUE = 190},
		{NAME = "waspoid wing", VALUE = 190},
		{NAME = "compound eye", VALUE = 150},
		{NAME = "swarmer antenna", VALUE = 130},
		{NAME = "great mana potion", VALUE = 120},
		{NAME = "carapace shield", VALUE = 32000},
		{NAME = "hive scythe", VALUE = 17000},
		{NAME = "grasshopper legs", VALUE = 30000},
		{NAME = "epee", VALUE = 8000},
		{NAME = "springsprout rod", VALUE = 3600},
		{NAME = "war hammer", VALUE = 1200},
		{NAME = "yellow gem", VALUE = 1000},
		{NAME = "calopteryx cape", VALUE = 15000},
		{NAME = "crusader helmet", VALUE = 8000},
		{NAME = "platinum amulet", VALUE = 2500},
		{NAME = "green gem", VALUE = 5000},
		{NAME = "crystal sword", VALUE = 600},
		{NAME = "time ring", VALUE = 1000},
	}
 
	MONITOR_MY_HUNTING.SHOW_ALL_SUPPLIES = false
	MONITOR_MY_HUNTING.SUPPLIES_LIST = {
		{NAME = "mana potion", PRICE = 45},
		{NAME = "great health potion", PRICE = 185},
		{NAME = "ultimate health potion", PRICE = 305},
	}
	
	-- [[ DO NOT CHANGE ANYTHING BELOW THIS LINE. ]] --
	
	MONITOR_MY_HUNTING.TEMP_ITEMS_LIST = MONITOR_MY_HUNTING.TEMP_ITEMS_LIST or {}
	MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST = MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST or {}
	MONITOR_MY_HUNTING.COLORS = MONITOR_MY_HUNTING.COLORS or {
		BLACK = rgbcolor(1, 1, 1),
		ORANGE = rgbcolor(255, 165, 0),
		BLUE = rgbcolor(30, 144, 255),
		CORNSILK = rgbcolor(205, 200, 177),
		WHITE = rgbcolor(255, 255, 255),
		GREEN = rgbcolor(107, 142, 35),
		RED = rgbcolor(178, 34, 34),
	}
	
	local function CreateMessageObject(MESSAGE_DATA)
		if (type(MESSAGE_DATA) ~= "userdata") then
			return setmetatable({__data = {TYPE = -1, TIME_STAMP = -1, SENDER_NAME = "", SENDER_LEVEL = -1, CONTENT = ""}}, MessageMetaTable)
		else
			return setmetatable({__data = {TYPE = MESSAGE_DATA.type, TIME_STAMP = Misc.ConvertToSeconds(string.sub(MESSAGE_DATA.text, 1, 5)), SENDER_NAME = MESSAGE_DATA.sender, SENDER_LEVEL = tonumber((tostring(string.match(MESSAGE_DATA.text, ".+ (%b[]): .+")):gsub("[^%d]", ""))) or 0, CONTENT = string.sub(MESSAGE_DATA.text, 7)}}, MessageMetaTable)
		end
	end
	
	local function addtextshadow(DISPLAY_TEXT, X_OFFSET, Y_OFFSET, FONT_COLOR)
		setfontcolor(MONITOR_MY_HUNTING.COLORS.BLACK)
		addtext(DISPLAY_TEXT, X_OFFSET + 1, Y_OFFSET + 1)
		setfontcolor(FONT_COLOR)
		addtext(DISPLAY_TEXT, X_OFFSET, Y_OFFSET)
	end
-- [[ INIT END ]] --

if (not Stats.Update()) then
	local SERVER_LOG_MESSAGES = getnewmessages("Server Log")
	local SERVER_LOG_MESSAGES_COUNT = SERVER_LOG_MESSAGES.count - 1
	
	for INDEX = 0, SERVER_LOG_MESSAGES_COUNT do
		local MESSAGE_OBJECT = CreateMessageObject(SERVER_LOG_MESSAGES[SERVER_LOG_MESSAGES_COUNT - INDEX])
		
		if (MESSAGE_OBJECT:Type() == 19 and MESSAGE_OBJECT:Content():lower():match("^loot of")) then
			local LOOT_INFO = Message.ParseLootMessage(MESSAGE_OBJECT, true)

			if (#LOOT_INFO.NAME > 0) then
				Stats.__data.MONSTERS_KILLED[LOOT_INFO.NAME] = (Stats.__data.MONSTERS_KILLED[LOOT_INFO.NAME] or 0) + 1
				
				for _, LOOT_ITEM in ipairs(LOOT_INFO.ITEMS) do
					if (Stats.__data.ITEMS_LOOTED[LOOT_ITEM.ID]) then
						Stats.__data.ITEMS_LOOTED[LOOT_ITEM.ID].QUANTITY = Stats.__data.ITEMS_LOOTED[LOOT_ITEM.ID].QUANTITY + LOOT_ITEM.QUANTITY
					else
						Stats.__data.ITEMS_LOOTED[LOOT_ITEM.ID] = {ID = LOOT_ITEM.ID, NAME = LOOT_ITEM.NAME, QUANTITY = LOOT_ITEM.QUANTITY, VALUE = Item.GetValue(LOOT_ITEM.ID)}
					end
				end
			end
		end
	end
end

local RESET_ITEMS_AND_SUPPLIES = #MONITOR_MY_HUNTING.ITEMS_LIST ~= MONITOR_MY_HUNTING.TEMP_ITEMS_LIST or #MONITOR_MY_HUNTING.SUPPLIES_LIST ~= MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST

if (not RESET_ITEMS_AND_SUPPLIES) then
	for INDEX, LOOT_ITEM in ipairs(MONITOR_MY_HUNTING.ITEMS_LIST) do
		if (LOOT_ITEM.NAME ~= MONITOR_MY_HUNTING.TEMP_ITEMS_LIST[INDEX].NAME or LOOT_ITEM.VALUE ~= MONITOR_MY_HUNTING.TEMP_ITEMS_LIST[INDEX].VALUE) then
			RESET_ITEMS_AND_SUPPLIES = true
			break
		end
	end
end

if (not RESET_ITEMS_AND_SUPPLIES) then
	for INDEX, SUPPLY_ITEM in ipairs(MONITOR_MY_HUNTING.SUPPLIES_LIST) do
		if (SUPPLY_ITEM.NAME ~= MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST[INDEX].NAME or SUPPLY_ITEM.PRICE ~= MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST[INDEX].PRICE) then
			RESET_ITEMS_AND_SUPPLIES = true
			break
		end
	end
end

if (not MONITOR_MY_HUNTING.INITIALIZED or RESET_ITEMS_AND_SUPPLIES) then
	if (not MONITOR_MY_HUNTING.CLEARED_STATS) then
		Stats.Clear(CLEAR_STATS_ALL)
		Stats.Update()
		
		MONITOR_MY_HUNTING.CLEARED_STATS = true
	end
	
	MONITOR_MY_HUNTING.TEMP_ITEMS_LIST, MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST = {}, {}
		
	for _, LOOT_ITEM in ipairs(MONITOR_MY_HUNTING.ITEMS_LIST) do
		local LOOT_ITEM_ID = Item.GetID(type(LOOT_ITEM.NAME) ~= "table" and LOOT_ITEM.NAME or unpack(LOOT_ITEM.NAME))
		
		Stats.AddItemsLooted(LOOT_ITEM_ID, 0, LOOT_ITEM.VALUE)
		table.insert(MONITOR_MY_HUNTING.TEMP_ITEMS_LIST, {ID = LOOT_ITEM_ID, NAME = LOOT_ITEM.NAME, VALUE = LOOT_ITEM.VALUE})
	end
	 
	for _, SUPPLY_ITEM in ipairs(MONITOR_MY_HUNTING.SUPPLIES_LIST) do
		local SUPPLY_ITEM_ID = Item.GetID(type(SUPPLY_ITEM.NAME) ~= "table" and SUPPLY_ITEM.NAME or unpack(SUPPLY_ITEM.NAME))
		
		Stats.AddSuppliesUsed(SUPPLY_ITEM_ID, 0, SUPPLY_ITEM.PRICE)
		table.insert(MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST, {ID = SUPPLY_ITEM_ID, NAME = SUPPLY_ITEM.NAME, PRICE = SUPPLY_ITEM.PRICE})
	end
	
	MONITOR_MY_HUNTING.INITIALIZED = true
end

setposition(Client.ClientWindow().right - 434, Client.WorldWindow().top + 5)

local Y_POSITION, INDEX, ITEMS_LOOTED_WORTH, SUPPLIES_USED_WORTH = 30, 0, 0, 0

addtextshadow(sprintf("%s v%s", MONITOR_MY_HUNTING.SCRIPT_NAME:upper(), MONITOR_MY_HUNTING.SCRIPT_VERSION), 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.ORANGE)

Y_POSITION = Y_POSITION + 20

addtextshadow("ITEMS LOOTED", 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.BLUE)

Y_POSITION = Y_POSITION + 20

for _, LOOT_ITEM in pairs(Stats.GetItemsLooted()) do
    if ((MONITOR_MY_HUNTING.SHOW_ALL_ITEMS or table.find(MONITOR_MY_HUNTING.TEMP_ITEMS_LIST, LOOT_ITEM.ID, "ID")) and LOOT_ITEM.QUANTITY > 0) then
	addtextshadow(((#LOOT_ITEM.NAME > 17 and sprintf("%s...", string.match(string.sub(LOOT_ITEM.NAME, 1, 17), "(.-)%s?$"))) or LOOT_ITEM.NAME):ucwords(), 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.CORNSILK)
	addtextshadow(sprintf("%s (%sK)", Misc.FormatNumber(LOOT_ITEM.QUANTITY), tostring(math.floor(LOOT_ITEM.VALUE * LOOT_ITEM.QUANTITY / 100) / 10)), 140, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.WHITE)

	INDEX, ITEMS_LOOTED_WORTH = INDEX + 1, ITEMS_LOOTED_WORTH + (LOOT_ITEM.VALUE * LOOT_ITEM.QUANTITY)
    end
end

addtextshadow("Total:", 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.WHITE)
addtextshadow(sprintf("%s GPs", Misc.FormatNumber(ITEMS_LOOTED_WORTH)), 10 + 35, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.ORANGE)

Y_POSITION = Y_POSITION + 20

addtextshadow("SUPPLIES USED", 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.BLUE)

Y_POSITION = Y_POSITION + 20

for _, SUPPLY_ITEM in pairs(Stats.GetSuppliesUsed()) do
    if ((MONITOR_MY_HUNTING.SHOW_ALL_SUPPLIES or table.find(MONITOR_MY_HUNTING.TEMP_SUPPLIES_LIST, SUPPLY_ITEM.ID, "ID")) and SUPPLY_ITEM.QUANTITY > 0) then
        addtextshadow(((#SUPPLY_ITEM.NAME > 17 and sprintf("%s...", string.match(string.sub(SUPPLY_ITEM.NAME, 1, 17), "(.-)%s?$"))) or SUPPLY_ITEM.NAME):ucwords(), 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.CORNSILK)
        addtextshadow(sprintf("%s (%sK)", Misc.FormatNumber(SUPPLY_ITEM.QUANTITY), tostring(math.floor(SUPPLY_ITEM.PRICE * SUPPLY_ITEM.QUANTITY / 100) / 10)), 140, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.WHITE)

        INDEX, SUPPLIES_USED_WORTH = INDEX + 1, SUPPLIES_USED_WORTH + (SUPPLY_ITEM.PRICE * SUPPLY_ITEM.QUANTITY)
    end
end

addtextshadow("Total:", 10, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.WHITE)
addtextshadow(sprintf("%s GPs", Misc.FormatNumber(SUPPLIES_USED_WORTH)), 10 + 35, Y_POSITION + (INDEX * 16), MONITOR_MY_HUNTING.COLORS.ORANGE)

Y_POSITION = Y_POSITION + 20

addtextshadow(sprintf("%s: %s GPs (%s K/H)", ((ITEMS_LOOTED_WORTH >= SUPPLIES_USED_WORTH and ("PROFIT")) or ("WASTE")), Misc.FormatNumber(ITEMS_LOOTED_WORTH - SUPPLIES_USED_WORTH), tostring(math.floor(((ITEMS_LOOTED_WORTH - SUPPLIES_USED_WORTH) * 3600) / (System.HuntingTime() / 1000) / 100) / 10)), 10, Y_POSITION + (INDEX * 16), ITEMS_LOOTED_WORTH >= SUPPLIES_USED_WORTH and MONITOR_MY_HUNTING.COLORS.GREEN or MONITOR_MY_HUNTING.COLORS.RED)</Script>
        <RefreshRate>1000</RefreshRate>
        <Enabled>yes</Enabled>
      </Hudzior>
    </List>
    <Show>If focused</Show>
    <Enabled>yes</Enabled>
  </Hud>
  <Input>
    <Keyboard>
      <Mode>Simulate</Mode>
      <StuckCtrlShift>If cavebot on, release after 1 sec</StuckCtrlShift>
      <TypingStyle>Keyboard keys</TypingStyle>
      <PressWaitTime>45 to 65</PressWaitTime>
    </Keyboard>
    <Mouse>
      <Mode>Simulate</Mode>
      <Scroll>Use mouse wheel</Scroll>
      <MoveSpeed>Instantaneous</MoveSpeed>
      <ClickWaitTime>30 to 50</ClickWaitTime>
    </Mouse>
    <OpenMenuPolicy>Confirm if cavebotting</OpenMenuPolicy>
    <Enabled>yes</Enabled>
  </Input>
</Settings>
 
Status
Not open for further replies.
Top