What's new

Knight [PACC] [70] Edron Dragons

Status
Not open for further replies.

Xinum

Never Give Up!
Joined
Dec 23, 2009
Messages
578
Reaction score
66
[EK][70] Edron Dragons

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>
    </Player>
    <Creature />
    <Item>
      <mana-potion>
        <Id>268</Id>
        <Count>20</Count>
        <PlaySound>yes</PlaySound>
        <FlashClient>no</FlashClient>
        <PauseBot>no</PauseBot>
        <Disconnect>no</Disconnect>
      </mana-potion>
    </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>
    </Message>
    <Capacity>
      <Value>10</Value>
      <PlaySound>yes</PlaySound>
      <FlashClient>yes</FlashClient>
      <PauseBot>no</PauseBot>
      <Disconnect>no</Disconnect>
    </Capacity>
    <StandTime>
      <Value>90000</Value>
      <PlaySound>yes</PlaySound>
      <FlashClient>yes</FlashClient>
      <PauseBot>no</PauseBot>
      <Disconnect>no</Disconnect>
    </StandTime>
    <Disconnect>
      <PlaySound>yes</PlaySound>
      <FlashClient>yes</FlashClient>
      <PauseBot>no</PauseBot>
    </Disconnect>
    <Enabled>no</Enabled>
  </Alerts>
  <Healer>
    <Rules>
      <exura-ico>
        <HealRange>0 to 60 %</HealRange>
        <ManaRange>50 to all</ManaRange>
        <HealMethod>Wound Cleansing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </exura-ico>
      <mana-potion>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>0 to 120</ManaRange>
        <HealMethod>Mana Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </mana-potion>
      <hp>
        <HealRange>0 to 30 %</HealRange>
        <ManaRange>0 to 100 %</ManaRange>
        <HealMethod>Small Health Potion</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </hp>
      <full>
        <HealRange>0 to 100 %</HealRange>
        <ManaRange>98 to 100 %</ManaRange>
        <HealMethod>Wound Cleansing</HealMethod>
        <ExtraCondition>No condition</ExtraCondition>
        <CooldownControl>yes</CooldownControl>
        <CheckItem>no</CheckItem>
        <SpamRate>200 to 400</SpamRate>
        <Enabled>yes</Enabled>
      </full>
    </Rules>
    <PingCompensation>10</PingCompensation>
    <Enabled>no</Enabled>
  </Healer>
  <FriendHealer>
    <Rules />
    <Enabled>yes</Enabled>
  </FriendHealer>
  <Refiller>
    <Rules>
      <soft>
        <HealRange>85 to 100 %</HealRange>
        <ManaRange>0 to 80 %</ManaRange>
        <ItemRefiller>6529</ItemRefiller>
        <AmmoCount>0 to 0</AmmoCount>
        <ExtraCondition>No condition</ExtraCondition>
        <SpamRate>500 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </soft>
      <boh>
        <HealRange>85 to 100 %</HealRange>
        <ManaRange>90 to 100 %</ManaRange>
        <ItemRefiller>3079</ItemRefiller>
        <AmmoCount>0 to 0</AmmoCount>
        <ExtraCondition>No condition</ExtraCondition>
        <SpamRate>500 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </boh>
    </Rules>
    <Enabled>yes</Enabled>
  </Refiller>
  <HotKeys>
    <List>
      <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>27</MainKey>
        <ComboKey>Shift</ComboKey>
        <Enabled>yes</Enabled>
      </PauseBot>
    </List>
    <Enabled>yes</Enabled>
  </HotKeys>
  <Actions>
    <List>
      <Health-Points-Check>
        <Script>if hppc < 25 then
playsound("alert.wav")
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Health-Points-Check>
      <pzzone>
        <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>
      </pzzone>
      <Anti-Stuck>
        <Script>if ((standtime >= 90000) and (toptileitem(posx, posy, posz) == 2121))
then
    local randomMove = math.random(1, 4)
    
    if (randomMove == 1)
    then
        move("n")
        wait(1000)
    elseif (randomMove == 2)
    then
        move("e")
        wait(1000)
    elseif (randomMove == 3)
    then
        move("s")
        wait(1000)
    elseif (randomMove == 4)
    then
        move("w")
        wait(1000)
    end
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Anti-Stuck>
      <Auto-Haste>
        <Script>if (hasted == false) and (pzone == false) then
   cast('utani hur')
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>no</Enabled>
      </Auto-Haste>
      <Safe-Bank>
        <Script>for i=0,getmessages("NPCs").count-1 
do 
    if getmessages("NPCs")[getmessages("NPCs").count-1 ].text:find("There is not enough gold on your account.") 
    then 
        setcavebot("off") 
        settargeting("off") 
        setsettings("Settings\\Alerts\\Disconnect\\PlaySound", "no")
        setsettings("Settings\\Actions\\List\\Auto Reconnect\\Enabled", "no")
        wait(5000,10000) 
        closetibia()
    end 
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>no</Enabled>
      </Safe-Bank>
      <Drop-Vials>
        <Script>--Minimum count of vials to check:
local countDropVial = 40

if ((maround(7) == 0) and ((itemcount(285) + itemcount(284) + itemcount(283)) >= countDropVial)) 
then
    dropitems(285)
    wait(700, 900)
    dropitems(284)
    wait(700, 900)
    dropitems(283)
    wait(700, 900)
end</Script>
        <SpamRate>800 to 1000</SpamRate>
        <Enabled>yes</Enabled>
      </Drop-Vials>
    </List>
    <Setup>--  Backpack Setup
                                                                  
    MainBackpackName = ("Blue Backpack") -- Main Backpack Name:
    LootBackpackName = ("Brocade Backpack") -- Loot Backpack Name:
    GoldBackpackName = ("Expedition Backpack") -- Gold Backpack Name:
                                                                 
--  Supplies Setup                                                                  

    ManaPotionName = ("mana potion")
    AmountOfManaPotion = 300 
    ManaPotionID = 268 

    HealthPotionName = ("strong health potion") 
    AmountOfHealthPotion = 15 
    HealthPotionID = 236 
                                                                 
--  Leave Setup                                                                 
    
    HealthPotionsToLeave = 5 
    ManaPotionsToLeave = 35 
    CapToLeave = 30 
                                                                  
--  Bank Setup                                                                   

    HealthPotionCost = 100 
    ManaPotionCost = 50 
    ExtraMoney = 0 
                                                                   
--  Depot Setup                                                                 

    Depot_Main_Backpack_Name = ("Pirate Backpack")
    
    Depot_Stackacble_Items_Backpack = ("Red Backpack")

    Depot_Non_Stackable_Items_Backpack = ("Purple Backpack") 
    
    stackable_Items_To_Deposit = {"Small Sapphire", "Dragon's Tail", "Green Dragon Leather", "Green Dragon Scale", "Small Diamond", "Life Crystal", "green dragon scale", "red dragon scale"}
    
    Non_Stackable_Items_To_Deposit = {"Dragon Shield", "Wand of Inferno", "Dragon Hammer", "Serpent Sword", "Dragonbone Staff", "royal helmet", "dragon scale mail", "fire sword", "tower shield"}
                                                                   
--  Other Optional Settings                                                                 

    AutoHaste = true 
                                                                  
--  Waypoint Setup                                                                    

    HuntEastHole = ("yes") --Choose To Hunt The East Hole
    HuntNorthHole = ("yes") --Choose To Hunt The North Hole
    HuntWestHole = ("yes") --Choose To Hunt The West Hole
    HuntDragonLord = ("yes") --Choose To Hunt The Single Dragon Lord
    HuntWestStairs = ("yes") --Choose To Hunt The West Stairs At Entrence</Setup>
    <Library>Standard</Library>
    <Enabled>yes</Enabled>
  </Actions>
  <CaveBot>
    <Waypoints>
      <Start>Node 33098 31700 7</Start>
      <w001>Stand 33099 31699 7</w001>
      <w002>Node 33098 31690 8</w002>
      <w003>Stand 33089 31673 8</w003>
      <w004>Rope 33091 31666 9</w004>
      <w005>Node 33089 31658 8</w005>
      <w006>Node 33095 31652 8</w006>
      <Check_If_Hunt_East_Hole>Action 33101 31648 8 if (HuntEastHole == ("yes"));then;    gotolabel("Down_East_Hole");elseif ;    (HuntEastHole == ("no"));then;    gotolabel("Continue_Floor_Hunt");end</Check_If_Hunt_East_Hole>
      <Down_East_Hole>Stand 33102 31648 8</Down_East_Hole>
      <w008>Node 33104 31642 9</w008>
      <w009>Rope 33102 31648 9</w009>
      <Continue_Floor_Hunt>Node 33081 31646 8</Continue_Floor_Hunt>
      <w011>Node 33077 31637 8</w011>
      <Check_If_Hunt_North_Hole>Action 33077 31635 8 if (HuntNorthHole == ("yes"));then;    gotolabel("Down_North_Hole");elseif ;    (HuntNorthHole == ("no"));then;    gotolabel("Continue_Floor_Hunt_2");end</Check_If_Hunt_North_Hole>
      <Down_North_Hole>Stand 33077 31634 8</Down_North_Hole>
      <w012>Rope 33077 31634 9</w012>
      <Continue_Floor_Hunt_2>Node 33082 31646 8</Continue_Floor_Hunt_2>
      <w015>Node 33060 31656 8</w015>
      <Check_If_Hunt_West_Hole>Action 33053 31650 8 if (HuntWestHole == ("yes"));then;    gotolabel("Down_West_Hole");elseif ;    (HuntWestHole == ("no"));then;    gotolabel("Continue_Floor_Hunt_3");end</Check_If_Hunt_West_Hole>
      <Down_West_Hole>Stand 33053 31649 8</Down_West_Hole>
      <w016>Rope 33053 31649 9</w016>
      <Continue_Floor_Hunt_3>Node 33063 31657 8</Continue_Floor_Hunt_3>
      <w018>Node 33077 31654 8</w018>
      <Check_if_Hunt_Dragon_Lord>Action 33084 31655 8 if (HuntDragonLord == ("yes"));then;    gotolabel("Down_DL_Stairs");elseif ;    (HuntDragonLord == ("no"));then;    gotolabel("Continue_Floor_Hunt_4");end</Check_if_Hunt_Dragon_Lord>
      <Down_DL_Stairs>Stand 33084 31654 8</Down_DL_Stairs>
      <w038>Node 33084 31651 9</w038>
      <w039>Stand 33084 31654 9</w039>
      <Continue_Floor_Hunt_4>Stand 33091 31666 8</Continue_Floor_Hunt_4>
      <w021>Node 33090 31663 8</w021>
      <w023>Rope 33089 31673 9</w023>
      <w024>Node 33091 31682 8</w024>
      <w025>Node 33099 31688 8</w025>
      <w026>Stand 33099 31699 8</w026>
      <Check_If_Hunt_Entrence_West_Stairs_Spawn>Action 33098 31700 7 if (HuntWestStairs == ("yes"));then;    gotolabel("Up_West_Stairs");elseif ;    (HuntWestStairs == ("no"));then;    gotolabel("Check_Supplies");end</Check_If_Hunt_Entrence_West_Stairs_Spawn>
      <Up_West_Stairs>Stand 33096 31700 7</Up_West_Stairs>
      <w007>Node 33090 31702 6</w007>
      <w010>Node 33099 31697 6</w010>
      <w013>Stand 33096 31700 6</w013>
      <Check_Supplies>Action 33097 31700 7 if ((countitem(ManaPotionName) <= ManaPotionsToLeave) or (cap <= CapToLeave)) ;then;	gotolabel("Leave");else;        gotolabel("Start");end</Check_Supplies>
      <w000>Stand 33120 31700 7</w000>
      <w014>Stand 33179 31710 7</w014>
      <w017>Stand 33215 31756 7</w017>
      <w019>Stand 33216 31756 7</w019>
      <w020>Stand 33241 31767 6</w020>
      <Check_Location_1>Action 33242 31767 7 if not islocation();then;	gotolabel("Leave");end</Check_Location_1>
      <w022>Stand 33244 31802 7</w022>
      <w027>Stand 33235 31836 7</w027>
      <w028>Stand 33206 31843 7</w028>
      <In_Depot>Stand 33171 31813 7</In_Depot>
      <Check_Depot>Action 33171 31813 7 if not islocation();then;	gotolabel("Leave");end</Check_Depot>
      <Backpack_Opener>Action 33171 31813 7 setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no");closewindows();wait(2000);openitem(MainBackpackName, "back");wait(1500, 2000);resizewindows();wait(1500, 2000);openitem(LootBackpackName, MainBackpackName, true);wait(1500, 2000);resizewindows();;wait(1500, 2000);resizewindows();wait(1000)</Backpack_Opener>
      <Bank>Stand 33173 31803 7</Bank>
      <Check_Bank>Action 33173 31803 7 if not islocation();then;	gotolabel("Bank");end</Check_Bank>
      <Withdraw_Money>Action 33173 31803 7 local AmountOfManaPotion = (AmountOfManaPotion);local ManaPotionName = (ManaPotionName);local ManaPotionCost = (ManaPotionCost);local AmountOfHealthPotion = (AmountOfHealthPotion);local HealthPotionName = (HealthPotionName);local HealthPotionCost = (HealthPotionCost);local AmountOfWornSoftBoots = ("worn soft boots");local RepairSoftBootsCost = 1;local CountWornSoftBoots = itemcount(AmountOfWornSoftBoots);local CountManaPotions = itemcount(ManaPotionName);local CountHealthPotions = itemcount(HealthPotionName);;;local TotalAmountOfMoneyToWithdraw = positive((AmountOfManaPotion-CountManaPotions)*ManaPotionCost) + positive((AmountOfHealthPotion-CountHealthPotions)*HealthPotionCost) + positive(CountWornSoftBoots*RepairSoftBootsCost) + (ExtraMoney);;say("hi");wait(1500,2500);npcsay("deposit all");wait(200,300);npcsay("yes");wait(200,300);;if (TotalAmountOfMoneyToWithdraw > 0) ;then;   npcsay("withdraw "..TotalAmountOfMoneyToWithdraw);   wait(200,300);   npcsay("yes");   wait(200,300);end</Withdraw_Money>
      <Down_Depot>Stand 33168 31812 7</Down_Depot>
      <Check_Depot>Action 33168 31813 8 if not islocation();then;	gotolabel("Down_Depot");end</Check_Depot>
      <w029>Node 33168 31804 8</w029>
      <Deposit_Loot>Action 33168 31805 8 reachgrounditem("depot");wait(1000,2000);openitem("depot");wait(700,900);;while (windowcount("Depot Chest") == 0);do;	openitem(3502, "locker");	wait(700,900);end;;wait(1500, 2000);;while (windowcount(Depot_Main_Backpack_Name) == 0);do;	openitem(Depot_Main_Backpack_Name, "Depot Chest");	wait(700,900);end;;wait(1500, 2000);;;lastonto = 0;local itemsStacks = stackable_Items_To_Deposit;local _nexti = false;for i,j in pairs(itemsStacks) ;do;    _nexti = true;    while itemcount(itemsStacks[i]) > 0 and _nexti ;	do;        _nexti = moveitemsonto(itemsStacks[i], "all", Depot_Stackacble_Items_Backpack, 100, lastonto);        wait(400,500);    end;end;;lastonto = 0;local itemsNonStacks = Non_Stackable_Items_To_Deposit;local _nextii = false;for i,j in pairs(itemsNonStacks) ;do;    _nextii = true;    while itemcount(itemsNonStacks[i]) > 0 and _nextii ;	do;        _nextii = moveitemsonto(itemsNonStacks[i], "all", Depot_Non_Stackable_Items_Backpack, 100, lastonto);        wait(400,500);    end;end</Deposit_Loot>
      <Leave_Depot>Stand 33168 31812 8</Leave_Depot>
      <Check_Leave_Depot>Action 33168 31810 7 if not islocation();then;	gotolabel("Leave Depot");end</Check_Leave_Depot>
      <Go_To_Mana_Shop>Stand 33196 31837 7</Go_To_Mana_Shop>
      <w031>Node 33242 31841 7</w031>
      <w032>Stand 33247 31841 7</w032>
      <Up_Mana_Shop_Stairs>Stand 33255 31838 6</Up_Mana_Shop_Stairs>
      <Check_Mana_Shop>Action 33255 31839 7 if not islocation();then;	gotolabel("Go_To_Mana_Shop");end</Check_Mana_Shop>
      <Buy_Potions>Action 33255 31839 7 say("hi");wait(2000);while ((itemcount(285) + itemcount(284) + itemcount(283)) >= 10) ;do;  npcsay("flask");  wait(1000, 1200);  npcsay("no");  wait(1000, 1200);  npcsay("yes");  wait(1000, 1200);end;wait(1000, 1200);npcsay("trade");wait(1000, 1200);buyitemsupto(ManaPotionName, AmountOfManaPotion);wait(1000, 1200);wait(1000, 1200);npcsay("trade");wait(1000, 1200);buyitemsupto(HealthPotionName, AmountOfHealthPotion);wait(1000, 1200)</Buy_Potions>
      <Move_Potions>Action 33255 31839 7 wait(1000);setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes");wait(1000)</Move_Potions>
      <Leave_Mana_Shop>Stand 33255 31838 7</Leave_Mana_Shop>
      <w030>Stand 33247 31841 6</w030>
      <Check_If_Out_Of_Mana_Shop>Action 33247 31842 7 if not islocation();then;	gotolabel("Leave_Mana_Shop");end</Check_If_Out_Of_Mana_Shop>
      <Check_Mana_Potions_Before_Hunt>Action 33247 31841 7 if (itemcount(ManaPotionName) < AmountOfManaPotion);then;	gotolabel("Bank");end</Check_Mana_Potions_Before_Hunt>
      <Final_Backpack_Opener>Action 33247 31841 7 setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes");closewindows();wait(2000);openitem(MainBackpackName, "back");wait(1500, 2000);resizewindows();wait(1500, 2000);openitem(LootBackpackName, MainBackpackName, true);wait(1500, 2000);resizewindows();openitem(GoldBackpackName, MainBackpackName, true);wait(1500, 2000);resizewindows();;wait(1500, 2000);resizewindows();wait(1000)</Final_Backpack_Opener>
      <Check_Backpacks>Action 33247 31841 7 if (windowcount() < (3));then ;    gotolabel("Final_Backpack_Opener") ;end</Check_Backpacks>
      <Back_To_Hunt>Node 33237 31830 7</Back_To_Hunt>
      <w033>Node 33244 31796 7</w033>
      <w034>Stand 33241 31767 7</w034>
      <w035>Stand 33216 31757 6</w035>
      <w036>Stand 33178 31709 7</w036>
      <w037>Stand 33103 31705 7</w037>
      <Check_If_Back_In_Spawn>Action 33103 31705 7 if not islocation();then;	gotolabel("Back_To_Hunt");end</Check_If_Back_In_Spawn>
      <End>Action 33103 31705 7 gotolabel("Start")</End>
    </Waypoints>
    <Pathfinding>
      <SpecialAreas>
        <Dragon-Lord-Stairs>
          <Coordinates>33083 31653 8</Coordinates>
          <Dimensions>3 3</Dimensions>
          <ConsideredBy>Target</ConsideredBy>
        </Dragon-Lord-Stairs>
      </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>2</NodeRange>
      <Priority>Target and Looting</Priority>
      <OpenNextBp>yes</OpenNextBp>
      <AutoMount>no</AutoMount>
      <Anti-idle>yes</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>
      <Dragon-Hammer>
        <Id>3322</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragon-Hammer>
      <Dragon-Shield>
        <Id>3416</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragon-Shield>
      <Wand-of-Inferno>
        <Id>3071</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Wand-of-Inferno>
      <Dragonbone-Staff>
        <Id>7430</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragonbone-Staff>
      <Serpent-Sword>
        <Id>3297</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Serpent-Sword>
      <Life-Crystal>
        <Id>3061</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Life-Crystal>
      <Small-Diamond>
        <Id>3028</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Small-Diamond>
      <Green-Dragon-Scale>
        <Id>5920</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Green-Dragon-Scale>
      <Green-Dragon-Leather>
        <Id>5877</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Green-Dragon-Leather>
      <Dragons-Tail>
        <Id>11457</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragons-Tail>
      <Small-Sapphire>
        <Id>3029</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Small-Sapphire>
      <Gold-Coin>
        <Id>3031</Id>
        <Destination>Expedition Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Gold-Coin>
      <Dragon-Scale-Mail>
        <Id>3386</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragon-Scale-Mail>
      <Royal-Helmet>
        <Id>3392</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Royal-Helmet>
      <Dragon-Slayer>
        <Id>7402</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Dragon-Slayer>
      <Red-Dragon-Scale>
        <Id>5882</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Red-Dragon-Scale>
      <Red-Dragon-Leather>
        <Id>5948</Id>
        <Destination>Brocade Backpack</Destination>
        <AlarmOn>No Alarm</AlarmOn>
      </Red-Dragon-Leather>
    </List>
    <Condition>Corpses with listed items</Condition>
    <Style>After melee kill</Style>
    <OpenBodyTime>300</OpenBodyTime>
    <Range>100</Range>
    <EatFood>yes</EatFood>
    <Enabled>no</Enabled>
  </Looting>
  <Targeting>
    <Monsters>
      <Dragon>
        <Categories>-</Categories>
        <Danger>5</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Approach</Stance>
            <Avoid>Wave</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell />
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting0>
          <Setting1>
            <Count>2</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Approach</Stance>
            <Avoid>Wave</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Brutal Strike</Spell0>
              <Spell1>Whirlwind Throw</Spell1>
              <Spell2>Berserk</Spell2>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting1>
          <Setting2>
            <Count>2+</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Approach</Stance>
            <Avoid>Wave</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Brutal Strike</Spell0>
              <Spell1>Whirlwind Throw</Spell1>
              <Spell2>Berserk</Spell2>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>No Change</AttackMode>
          </Setting2>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Dragon>
      <Dragon-Hatchling>
        <Categories>-</Categories>
        <Danger>1</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Approach</Stance>
            <Avoid>Wave</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>no</OnlyIfTrapped>
      </Dragon-Hatchling>
      <Dragon-Lord>
        <Categories>-</Categories>
        <Danger>10</Danger>
        <ListSettings>
          <Setting0>
            <Count>Any</Count>
            <HpRange>0 to 100 %</HpRange>
            <Stance>Approach</Stance>
            <Avoid>Wave</Avoid>
            <Distance>0</Distance>
            <Attack>Attack</Attack>
            <ListSpell>
              <Spell0>Brutal Strike</Spell0>
              <Spell1>Whirlwind Throw</Spell1>
            </ListSpell>
            <SpellRate>500 to 1000</SpellRate>
            <AttackMode>Chase/Offensive</AttackMode>
          </Setting0>
        </ListSettings>
        <Looting>yes</Looting>
        <MustAttackMe>no</MustAttackMe>
        <OnlyIfTrapped>no</OnlyIfTrapped>
      </Dragon-Lord>
    </Monsters>
    <Settings>
      <ListOrder>8</ListOrder>
      <Health>9</Health>
      <Proximity>5</Proximity>
      <Danger>3</Danger>
      <PlayerOnScreenSecurity>If cavebotting</PlayerOnScreenSecurity>
      <CooldownControl>yes</CooldownControl>
      <CheckItem>no</CheckItem>
      <MustBeReachable>yes</MustBeReachable>
      <MustBeShootable>no</MustBeShootable>
    </Settings>
    <Enabled>yes</Enabled>
  </Targeting>
  <Hud>
    <List>
      <Hud0>
        <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 = "rope belt", VALUE = 66},
		{NAME = "cultish robe", VALUE = 150},
		{NAME = "cultish symbol", VALUE = 500},
		{NAME = "cultish mask", VALUE = 280},
		{NAME = "broken key ring", VALUE = 8000},
		{NAME = "small saphire", VALUE = 250},
		{NAME = "small ruby", VALUE = 250},
		{NAME = "small emerald", VALUE = 250},
		{NAME = "small diamond", VALUE = 300},
		{NAME = "strong mana potion", VALUE = 80},
		{NAME = "dwarven ring", VALUE = 500},
		{NAME = "life ring", VALUE = 500},
		{NAME = "terra rod", VALUE = 2000},
		{NAME = "time ring", VALUE = 500},
		{NAME = "Broadsword", VALUE = 500},
		{NAME = "Dragon's Tail", VALUE = 100},
		{NAME = "Green Dragon Leather", VALUE = 100},
		{NAME = "green Dragon Scale", VALUE = 100},
		{NAME = "serpent Sword", VALUE = 900},
		{NAME = "Small Diamond", VALUE = 300},
		{NAME = "Strong Health Potion", VALUE = 500},
		{NAME = "wand of inferno", VALUE = 3000},
		{NAME = "Dragon Hammer", VALUE = 2000},
		{NAME = "Wand of Inferno", VALUE = 3000},
		{NAME = "Life Crystal", VALUE = 1000},
		{NAME = "Dragonbone Staff", VALUE = 3000 },
		{NAME = "Dragon Shield", VALUE = 4000},
	{NAME = "royal helmet", VALUE = 30000},
	{NAME = "Dragon scale mail", VALUE = 40000},
	{NAME = "Dragon Slayer", VALUE = 15000},
	{NAME = "fire sword", VALUE = 4000},
	{NAME = "tower Shield", VALUE = 8000},
	}
 
	MONITOR_MY_HUNTING.SHOW_ALL_SUPPLIES = false
	MONITOR_MY_HUNTING.SUPPLIES_LIST = {
		{NAME = "mana potion", PRICE = 50},
		{NAME = "great health potion", PRICE = 190},
		{NAME = "ultimate health potion", PRICE = 310},
	}
	
	-- [[ 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>
      </Hud0>
    </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