What's new

Paladin [PACC] Yalahar Necro/Hero East ~ Full Afk

Status
Not open for further replies.

Xinum

Never Give Up!
Joined
Dec 23, 2009
Messages
578
Reaction score
66
[RP] Yalahar Necro/Hero East ~ Full Afk

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>yes</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>yes</PlaySound>
      <FlashClient>no</FlashClient>
      <PauseBot>no</PauseBot>
    </Disconnect>
    <Enabled>no</Enabled>
  </Alerts>
  <Healer>
    <Rules>
      <exura>
        <HealRange>55 to 90 %</HealRange>
        <ManaRange>20 to all</ManaRange>
        <HealMethod>Light Healing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </exura>
      <exura-gran>
        <HealRange>0 to 55 %</HealRange>
        <ManaRange>70 to all</ManaRange>
        <HealMethod>Intense Healing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </exura-gran>
      <mp>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>0 to 65 %</ManaRange>
        <HealMethod>Strong Mana Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </mp>
      <paraheal>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>20 to all</ManaRange>
        <HealMethod>Light Healing</HealMethod>
        <ExtraCondition>If paralyzed</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </paraheal>
    </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>
      <Drop-vials>
        <Script>if itemcount(284) > 15 or itemcount(283) > 15 or itemcount(285) > 15 and cap < 50 then
moveitems(283,"ground")
moveitems(284,"ground")
moveitems(285,"ground")
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Drop-vials>
      <Safebanker>
        <Script>-- NPC name
local npcname = 'Znozel'

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>
      </Safebanker>
      <Anit-warlock>
        <Script>local creatures = {"Warlock", "Infernalist", "Stone golem", "Fire elemental"}
local minimum = 1

if (maround(8, unpack(creatures)) >= minimum)
then
move('s')
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Anit-warlock>
      <Safestrikes>
        <Script>if pvp_world
then
setsettings("Settings\\Targeting\\Settings\\PlayerOnScreenSecurity", "Always")
else
setsettings("Settings\\Targeting\\Settings\\PlayerOnScreenSecurity", "Do nothing")
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Safestrikes>
      <softschanger>
        <Script>-- ID change boots 
changeboots = 'boots of haste'  

if mppc > 90 or pzone then 
   if boots ~= changeboots then 
      if itemcount(changeboots) > 0 then 
         moveitems(changeboots,"all","boots",1) 
      end 
   end 
else 
   if boots ~= 3549 then 
      if itemcount("soft boots") > 0 then 
         moveitems("soft boots","all","boots",1) 
      end 
   end 
end  </Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>no</Enabled>
      </softschanger>
      <usesoftschecker>
        <Script>if use_softs 
then 
setsettings("Settings\\Actions\\List\\softschanger\\Enabled", "yes")
else
setsettings("Settings\\Actions\\List\\softschanger\\Enabled", "no")
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </usesoftschecker>
      <Usemountchecker>
        <Script>if use_mount
then 
setsettings("Settings\\CaveBot\\Settings\\AutoMount", "yes")
else
setsettings("Settings\\CaveBot\\Settings\\AutoMount", "no")
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Usemountchecker>
    </List>
    <Setup>-- Setup --

-----Backpack setup-------

mainbp = "Backpack" -- Main backpack
lootbp = "Grey backpack" -- Loot Backpack
goldbp = "Brocade backpack" -- Gold Backpack

maindpbp = "Red backpack" -- Main backpack inside Depot
lootdpbp = "Orange backpack" -- Backpack for loot
stackdpbp = "Minotaur backpack" -- Backpack for stackable loot


----Mana setup----

Manapot = "Strong mana potion" -- Name of manapotion
Manaamount = 200 -- How many manas to buy
Manaprice = 80 -- Price of mana
--Make sure you change inside "Healer" if you change Manapot--

ammoname = "Royal spear" -- Name of ammo
ammotobuy = 35 -- How much ammo to buy
ammoprice = 15 -- Price of ammo

-----Depositing setup------

Mpstoleave = 50 -- Manas to leave for deposit
ammoleave = 7 -- Manas to leave for deposit
Captoleave = 20 -- Cap to leave for deposit

-----Other setup----

hunt_hero = true -- true/false if you want to kill Heros
pvp_world = false -- true/false if you play on pvp server
softboots_refill = false -- true/false if you want to refill softs
use_softs = false -- true/false if you'd like to use softs
use_mount = false -- true/false if you want to mount</Setup>
    <Enabled>yes</Enabled>
  </Actions>
  <CaveBot>
    <Waypoints>
      <start_at_dp>Stand 32797 31246 7</start_at_dp>
      <w087>Action 32796 31246 6 if not islocation() then gotolabel('start_at_dp');end</w087>
      <w001>Stand 32781 31247 6</w001>
      <backpack_for_dp>Action 32781 31247 6 wait(500, 1000);closewindows();setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no");wait(500, 1000);openitem(mainbp, 'back') ;wait(500, 1000);resizewindows();wait(500, 1000);openitem(lootbp, mainbp, true);wait(500, 1000);resizewindows();wait(500, 1000)</backpack_for_dp>
      <w004>Action 32781 31247 6 reachgrounditem("depot");wait(2000);openitem("depot");wait(2000);openitem("depot chest", "locker");wait(2000);openitem(maindpbp, "depot chest");;wait(2000);depotdeposit(stackdpbp, "red piece of cloth", "Necromantic robe", "book of necromantic rituals", "scroll of heroic deeds", "small notebook", "Jewelled belt");wait(500,1000);depotdeposit(lootdpbp, "skull staff", "spellbook of warding", "mystic turban", "boots of haste", "noble axe", "crown armor", "crown shield", "crown helmet", "crown legs", "fire sword", "war hammer", "reins", "wand of decay", "necrotic rod");wait(500,1000)</w004>
      <w027>Stand 32797 31246 6</w027>
      <bank_wp>Stand 32819 31249 7</bank_wp>
      <w007>Action 32819 31249 7 if not islocation() then gotolabel('bank_wp');end</w007>
      <w008>Action 32819 31249 7 local mana = positive(Manaamount - itemcount(Manapot)) * Manaprice;local ammo = positive(ammoamount - weaponamount) * ammoprice ;local vials = positive(itemcount(283) + itemcount(284) + itemcount(285)) * 5;local softs = positive(itemcount('worn soft boots')) * 10000;local Total = mana - vials + ammo + softs + 2000;;say("hi");wait(1500,2500);npcsay("deposit all");wait(200,300) ;npcsay("yes");wait(200,300) ;;if Total > 0 then   ;   npcsay("withdraw "..Total)   ;   wait(200,300)    ;   npcsay("yes")   ;   wait(200,300);   npcsay("Balance");   wait(200,300);end</w008>
      <w002>Stand 32790 31233 7</w002>
      <to_manashop>Stand 32790 31239 7</to_manashop>
      <w003>Stand 32789 31239 6</w003>
      <w006>Action 32789 31238 5 if not islocation() then gotolabel('to_manashop');end;</w006>
      <w009>Action 32789 31238 5 wait(1500,2000);opentrade();wait(600);sellflasks();buyitemsupto(Manapot, Manaamount)</w009>
      <w092>Stand 32790 31239 5</w092>
      <w096>Stand 32789 31239 4</w096>
      <w097>Stand 32789 31238 3</w097>
      <w098>Action 32789 31238 3 wait(1500,2000);opentrade();wait(600);buyitemsupto(ammoname, (ammotobuy - weaponamount))</w098>
      <w012>Stand 32789 31239 3</w012>
      <w075>Stand 32790 31239 4</w075>
      <w010>Stand 32789 31239 5</w010>
      <w011>Stand 32790 31239 6</w011>
      <w033>Stand 32790 31240 7</w033>
      <w035>Action 32790 31240 7 if softboots_refill and itemcount('worn soft boots') > 0 then;gotolabel('soft_boots') else;gotolabel('walk_to_spawn');end</w035>
      <soft_boots>Stand 32801 31255 7</soft_boots>
      <w056>Stand 32815 31277 6</w056>
      <w061>Ladder 32815 31277 6</w061>
      <w065>Action 32815 31278 5 if not islocation() then gotolabel('soft_boots');end</w065>
      <to_venore>Action 32815 31278 5 reachcreature('Karith');wait(500,800);say('Hi');wait(500,800);npcsay('venore');wait(500,800);npcsay('yes')</to_venore>
      <w066>Action 32954 32023 6 if not islocation() then gotolabel('to_venore');end</w066>
      <w038>Stand 32954 32050 6</w038>
      <w069>Stand 32954 32079 6</w069>
      <refill_softs>Stand 32952 32108 6</refill_softs>
      <w071>Action 32952 32108 6 if not islocation() then gotolabel('refill_softs');end</w071>
      <w088>Action 32952 32108 6 say('hi');while itemcount("worn soft boots") > 0 do;npcsay('repair');wait(1000,1200);npcsay('yes');end</w088>
      <w089>Action 32952 32108 6 if itemcount('worn soft boots') > 0 then gotolabel('refill_softs');else;gotolabel('back_to_yala');end</w089>
      <back_to_yala>Stand 32949 32101 6</back_to_yala>
      <w090>Stand 32954 32051 6</w090>
      <to_yala>Stand 32955 32023 6</to_yala>
      <w093>Action 32955 32023 6 if not islocation() then gotolabel('to_yala');end</w093>
      <travel_yala>Action 32955 32023 6 reachcreature('Captain Fearless');wait(500,800);say('Hi');wait(500,800);npcsay('Yalahar');wait(500,800);npcsay('Yes')</travel_yala>
      <w091>Action 32816 31272 6 if not islocation() then gotolabel('travel_yala');end</w091>
      <down_from_dock>Stand 32803 31256 6</down_from_dock>
      <w094>Action 32803 31254 7 if not islocation() then gotolabel('down_from_dock');end</w094>
      <w095>Action 32803 31254 7 if itemcount('soft boots') > 0 then gotolabel('walk_to_spawn2');else;gotolabel('soft_boots');end</w095>
      <walk_to_spawn>Stand 32817 31223 7</walk_to_spawn>
      <walk_to_spawn2>Stand 32828 31198 7</walk_to_spawn2>
      <w000>Stand 32844 31179 7</w000>
      <stair_from_town>Stand 32835 31155 7</stair_from_town>
      <w015>Stand 32835 31153 6</w015>
      <w016>Stand 32835 31145 5</w016>
      <w014>Stand 32835 31143 6</w014>
      <w017>Action 32835 31142 7 if not islocation() then gotolabel('stair_from_town');end;</w017>
      <w018>Stand 32848 31117 7</w018>
      <w019>Stand 32868 31092 7</w019>
      <w020>Stand 32884 31052 7</w020>
      <spawn_stair>Stand 32885 31052 7</spawn_stair>
      <w023>Action 32887 31052 6 wait(500, 1000);closewindows();setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes");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)</w023>
      <w021>Stand 32888 31052 6</w021>
      <w022>Action 32889 31052 7 if not islocation() then gotolabel('spawn_stair');end</w022>
      <hunt>Stand 32885 31069 7</hunt>
      <w025>Stand 32886 31069 6</w025>
      <w026>Stand 32885 31069 5</w026>
      <first_tower>Stand 32885 31069 4</first_tower>
      <w024>Stand 32886 31069 5</w024>
      <w028>Stand 32885 31069 6</w028>
      <w30>Stand 32892 31069 7</w30>
      <w031>Stand 32891 31069 6</w031>
      <w032>Stand 32892 31069 5</w032>
      <second_tower>Stand 32892 31069 4</second_tower>
      <w030>Stand 32891 31069 5</w030>
      <w034>Stand 32892 31069 6</w034>
      <w36>Stand 32878 31077 7</w36>
      <w037>Stand 32879 31077 6</w037>
      <third_tower>Stand 32879 31077 5</third_tower>
      <w039>Stand 32878 31077 6</w039>
      <w036>Action 32878 31078 7 if not islocation() then gotolabel('third_tower');end</w036>
      <w040>Action 32878 31078 7 if hunt_hero then gotolabel('hero_checker1');else gotolabel('fourth_tower');end</w040>
      <hero_checker1>Action 32907 31103 7 if itemcount(Manapot) > Mpstoleave and (itemcount(ammoname) + weaponamount) > ammoleave and cap > Captoleave then;gotolabel('hero_tower1');else gotolabel('deposit');end</hero_checker1>
      <hero_tower1>Stand 32880 31089 7</hero_tower1>
      <w041>Stand 32878 31089 6</w041>
      <w042>Stand 32878 31089 5</w042>
      <w043>Stand 32880 31089 6</w043>
      <w044>Action 32880 31090 7 if not islocation() then gotolabel('hero_tower1');end</w044>
      <fourth_tower>Stand 32893 31097 7</fourth_tower>
      <w046>Stand 32893 31095 6</w046>
      <w047>Stand 32893 31095 5</w047>
      <w045>Stand 32893 31097 6</w045>
      <w048>Action 32893 31098 7 if not islocation() then gotolabel('fourth_tower');end</w048>
      <fifth_tower>Stand 32907 31102 7</fifth_tower>
      <w049>Stand 32908 31102 6</w049>
      <w050>Stand 32907 31102 5</w050>
      <w051>Stand 32908 31102 4</w051>
      <w052>Stand 32908 31102 3</w052>
      <w053>Stand 32907 31102 4</w053>
      <w054>Stand 32908 31102 5</w054>
      <w055>Stand 32907 31102 6</w055>
      <w057>Action 32907 31103 7 if itemcount(Manapot) > Mpstoleave and (itemcount(ammoname) + weaponamount) > ammoleave and cap > Captoleave then;gotolabel('go_up');else gotolabel('deposit');end</w057>
      <go_up>Stand 32896 31085 7</go_up>
      <w060>Stand 32895 31080 6</w060>
      <sixth_tower>Stand 32904 31074 5</sixth_tower>
      <w062>Stand 32905 31074 4</w062>
      <w063>Action 32904 31073 2 if hunt_hero then gotolabel('hero_tower2');else gotolabel('continue1');end</w063>
      <hero_tower2>Stand 32904 31074 3</hero_tower2>
      <w013>Stand 32904 31073 2</w013>
      <w058>Stand 32904 31074 2</w058>
      <continue1>Stand 32905 31074 3</continue1>
      <w064>Stand 32904 31074 4</w064>
      <seventh_tower>Stand 32928 31079 5</seventh_tower>
      <w059>Action 32928 31078 4 if hunt_hero then gotolabel('hero_tower3');else gotolabel('continue2');end</w059>
      <hero_tower3>Stand 32927 31079 4</hero_tower3>
      <w067>Stand 32927 31079 3</w067>
      <continue2>Stand 32928 31079 4</continue2>
      <w068>Action 32928 31080 5 if itemcount(Manapot) > Mpstoleave and (itemcount(ammoname) + weaponamount) > ammoleave and cap > Captoleave then;gotolabel('eight_tower');else gotolabel('go_down');end</w068>
      <eight_tower>Stand 32933 31113 5</eight_tower>
      <w070>Stand 32936 31106 4</w070>
      <w71>Stand 32936 31106 3</w71>
      <w029>Stand 32936 31107 4</w029>
      <w005>Action 32936 31107 4 if not islocation() then gotolabel('eight_tower');end;</w005>
      <w072>Stand 32933 31113 4</w072>
      <go_down>Stand 32895 31080 5</go_down>
      <w073>Stand 32895 31085 6</w073>
      <w074>Action 32895 31086 7 if not islocation() then gotolabel('go_down');end</w074>
      <deposit>Action 32895 31086 7 if itemcount(Manapot) > Mpstoleave and (itemcount(ammoname) + weaponamount) > ammoleave and cap > Captoleave then;gotolabel('hunt');else gotolabel('back_to_town');end</deposit>
      <back_to_town>Stand 32888 31052 7</back_to_town>
      <w077>Stand 32886 31052 6</w077>
      <w078>Action 32884 31052 7 if not islocation() then gotolabel('back_to_town');end</w078>
      <w076>Stand 32868 31096 7</w076>
      <w079>Stand 32844 31121 7</w079>
      <stair_to_town>Stand 32835 31143 7</stair_to_town>
      <w080>Stand 32835 31145 6</w080>
      <w081>Stand 32835 31153 5</w081>
      <w082>Stand 32835 31155 6</w082>
      <w083>Action 32835 31156 7 if not islocation() then gotolabel('stair_to_town');end</w083>
      <w084>Stand 32844 31180 7</w084>
      <w085>Stand 32826 31208 7</w085>
      <w086>Stand 32817 31230 7</w086>
    </Waypoints>
    <Pathfinding>
      <SpecialAreas>
        <NewArea0>
          <Coordinates>32936 31103 5</Coordinates>
          <Dimensions>1 1</Dimensions>
          <ConsideredBy>All</ConsideredBy>
        </NewArea0>
      </SpecialAreas>
      <WalkThroughPlayers>no</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</Priority>
      <OpenNextBp>if cavebot enabled</OpenNextBp>
      <AutoMount>no</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>
      <Gold-coin>
        <Id>3031</Id>
        <Destination>02</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Gold-coin>
      <War-hammer>
        <Id>3279</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </War-hammer>
      <Red-piece-of-cloth>
        <Id>5911</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Red-piece-of-cloth>
      <Crown-armor>
        <Id>3381</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Crown-armor>
      <Crown-shield>
        <Id>3419</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Crown-shield>
      <Crown-helmet>
        <Id>3385</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Crown-helmet>
      <Crown-legs>
        <Id>3382</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Crown-legs>
      <Fire-sword>
        <Id>3280</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Fire-sword>
      <Wand-of-decay>
        <Id>3072</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Wand-of-decay>
      <Book-of-necromantic-rituals>
        <Id>10320</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Book-of-necromantic-rituals>
      <Mystic-turban>
        <Id>3574</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Mystic-turban>
      <Necromantic-robe>
        <Id>11475</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Necromantic-robe>
      <Skull-staff>
        <Id>3324</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Skull-staff>
      <Spellbook-of-warding>
        <Id>8073</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Spellbook-of-warding>
      <Boots-of-haste>
        <Id>3079</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Boots-of-haste>
      <Noble-axe>
        <Id>7456</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Noble-axe>
      <Scroll-of-heroic-deeds>
        <Id>11510</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Scroll-of-heroic-deeds>
      <Small-notebook>
        <Id>11450</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Small-notebook>
      <Necrotic-rod>
        <Id>3069</Id>
        <Destination>01</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Necrotic-rod>
      <Reins>
        <Id>12308</Id>
        <Destination>00</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Reins>
      <Strong-mana-potion>
        <Id>237</Id>
        <Destination>00</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Strong-mana-potion>
    </List>
    <Condition>Corpses with listed items</Condition>
    <Style>After melee kill</Style>
    <OpenBodyTime>300</OpenBodyTime>
    <Range>10</Range>
    <EatFood>yes</EatFood>
    <Enabled>yes</Enabled>
  </Looting>
  <Targeting>
    <Monsters>
      <Necromancer>
        <Categories>-</Categories>
        <Danger>9</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Reach</Stance>
            <Avoid>None</Avoid>
            <Distance>3</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Divine Missile</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Necromancer>
      <Hero>
        <Categories>-</Categories>
        <Danger>9</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Keep Away</Stance>
            <Avoid>None</Avoid>
            <Distance>3</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Ethereal Spear</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Hero>
      <Mad-Scientist>
        <Categories>-</Categories>
        <Danger>6</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>Divine Missile</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Mad-Scientist>
      <Dark-Magician>
        <Categories>-</Categories>
        <Danger>8</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>Divine Missile</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Dark-Magician>
      <Dark-Apprentice>
        <Categories>-</Categories>
        <Danger>4</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>Divine Missile</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Dark-Apprentice>
      <Ghost>
        <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>
              <Spell0>Divine Missile</Spell0>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Ghost>
      <Ghoul>
        <Categories>-</Categories>
        <Danger>10</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 />
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Ghoul>
      <Mummy>
        <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 />
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>yes</OnlyIfTrapped>
      </Mummy>
    </Monsters>
    <Settings>
      <ListOrder>7</ListOrder>
      <Health>9</Health>
      <Proximity>3</Proximity>
      <Danger>5</Danger>
      <PlayerOnScreenSecurity>Do nothing</PlayerOnScreenSecurity>
      <CooldownControl>yes</CooldownControl>
      <CheckItem>no</CheckItem>
      <MustBeReachable>yes</MustBeReachable>
      <MustBeShootable>no</MustBeShootable>
    </Settings>
    <Enabled>yes</Enabled>
  </Targeting>
  <Hud>
    <List>
      <Monitor-my-hunt>
        <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 = "[RP] Necro/hero",
		SCRIPT_VERSION = "2.2",
		
		CLEARED_STATS = false,
		INITIALIZED = false,
	}

	MONITOR_MY_HUNTING.SHOW_ALL_ITEMS = false
	MONITOR_MY_HUNTING.ITEMS_LIST = {
		{NAME = "gold coin", VALUE = 1},
		{NAME = "Scroll of heroic deeds", VALUE = 230},
		{NAME = "Small notebook", VALUE = 480},
		{NAME = "War hammer", VALUE = 1200},
		{NAME = "Red piece of cloth", VALUE = 0},
		{NAME = "Crown armor", VALUE = 12000},
		{NAME = "Crown shield", VALUE = 8000},
		{NAME = "Crown helmet", VALUE = 2500},
		{NAME = "Crown legs", VALUE = 12000},
		{NAME = "Fire sword", VALUE = 4000},
		{NAME = "Book of necromantic rituals", VALUE = 180},
		{NAME = "Mystic turban", VALUE = 0},
		{NAME = "Necromantic robe", VALUE = 250},
		{NAME = "Skull staff", VALUE = 6000},
		{NAME = "Spellbook of warding", VALUE = 8000},
		{NAME = "Boots of haste", VALUE = 30000},
		{NAME = "Noble axe", VALUE = 10000},
		{NAME = "Wand of decay", VALUE = 1000},
		{NAME = "Necrotic rod", VALUE = 1000},
		{NAME = "Reins", VALUE = 0},
		{NAME = "Strong mana potion", VALUE = 0},
	}
 
	MONITOR_MY_HUNTING.SHOW_ALL_SUPPLIES = false
	MONITOR_MY_HUNTING.SUPPLIES_LIST = {
		{NAME = "strong mana potion", PRICE = 80},
		{NAME = "royal spear", PRICE = 15},
	}
	
	-- [[ 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().left + 5, 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>
      </Monitor-my-hunt>
      <Generalinfo>
        <Script>local x = worldwin.right+10
local x2 = worldwin.right+15
local y = worldwin.top
local y2 = worldwin.top+58

setfontcolor("darkorange")
setfontstyle("Alba Matter", 14, "orange")
addtext("Character status", x, y+30)
addtext("Botting status", x, y+190)

------Character status---------
setfontcolor("red")
setfontstyle("Candara", 9, "red")
addtext("Name: " .. name, x2, y2+2)
addtext("Level: " .. level, x2, y2+14)
addtext("Magic level: " .. mlevel .. "(" .. 100-mlevelpc .. "%)", x2, y2+26)
addtext("Health: " .. hp .. "/" .. maxhp, x2, y2+38)
addtext("Mana: " .. mp .. "/" .. maxmp, x2, y2+50)
addtext("Club: " .. club .. "(" .. 100-clubpc .. "%)", x2, y2+72)
addtext("Sword: " .. sword .. "(" .. 100-swordpc .. "%)", x2, y2+84)
addtext("Axe: " .. axe .. "(" .. 100-axepc .. "%)", x2, y2+96)
addtext("Dist: " .. distance .. "(" .. 100-distancepc .. "%)", x2, y2+108)
addtext("Shield: " .. shielding .. "(" .. 100-shieldingpc .. "%)", x2, y2+120)

------Botting status----------
addtext("Time played: " .. timehunt, x2, y2+160)
addtext("Time to level: " .. timetolevel, x2, y2+172)
addtext("Exp to lvl: " .. exptolevel(), x2, y2+184)
addtext("Exp/h: " .. exphour, x2, y2+196)
addtext("Exp gained: " .. expgained, x2, y2+208)

addtext("Balance: " .. balance, x2, y2+232)

addtext("Caveboting: ", x2, y2+254)
addtext("Targeting: ", x2, y2+266)
addtext("Looting: ", x2, y2+278)

if cavebot then
setfontcolor("limegreen")
addtext("ON", x2+65, y2+254)
else
setfontcolor("darkgray")
addtext("OFF", x2+65, y2+254)
end

if targeting then
setfontcolor("limegreen")
addtext("ON", x2+53, y2+266)
else
setfontcolor("darkgray")
addtext("OFF", x2+53, y2+266)
end

if looting then
setfontcolor("limegreen")
addtext("ON", x2+45, y2+278)
else
setfontcolor("darkgray")
addtext("OFF", x2+45, y2+278)
end
</Script>
        <RefreshRate>1000</RefreshRate>
        <Enabled>yes</Enabled>
      </Generalinfo>
    </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