[EK][8][Port Hope] Swamp Trolls
Code:
<Settings>
<Port-Hope-swamp-trolls-by-Boget />
<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>yes</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>no</PauseBot>
<CloseTibia>no</CloseTibia>
<Disconnect>no</Disconnect>
<Screenshot>yes</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>no</Disconnect>
</Stamina>
<Disconnect>
<PlaySound>no</PlaySound>
<FlashClient>no</FlashClient>
<PauseBot>no</PauseBot>
</Disconnect>
<Enabled>yes</Enabled>
</Alerts>
<Healer>
<Rules>
<health-potion>
<HealRange>0 to 55 %</HealRange>
<ManaRange>0 to 100 %</ManaRange>
<HealMethod>Health Potion</HealMethod>
<ExtraCondition>No condition</ExtraCondition>
<CooldownControl>yes</CooldownControl>
<CheckItem>no</CheckItem>
<SpamRate>200 to 400</SpamRate>
<Enabled>yes</Enabled>
</health-potion>
<exura-ico>
<HealRange>55 to 90 %</HealRange>
<ManaRange>40 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-training>
<HealRange>90 to 100 %</HealRange>
<ManaRange>95 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>
</mana-training>
<anti-paralyze>
<HealRange>90 to 100 %</HealRange>
<ManaRange>40 to all</ManaRange>
<HealMethod>Wound Cleansing</HealMethod>
<ExtraCondition>If paralyzed</ExtraCondition>
<CooldownControl>yes</CooldownControl>
<CheckItem>no</CheckItem>
<SpamRate>200 to 400</SpamRate>
<Enabled>yes</Enabled>
</anti-paralyze>
</Rules>
<PingCompensation>10</PingCompensation>
<Enabled>yes</Enabled>
</Healer>
<FriendHealer>
<Rules />
<Enabled>no</Enabled>
</FriendHealer>
<Refiller>
<Rules />
<Enabled>no</Enabled>
</Refiller>
<HotKeys>
<List>
<Show-bot>
<Script>showbot()</Script>
<MainKey>66</MainKey>
<ComboKey>Alt</ComboKey>
<Enabled>yes</Enabled>
</Show-bot>
<Pause-bot>
<Script>if getsettings('Settings/CaveBot/Enabled') == 'no' or getsettings('Settings/Targeting/Enabled') == 'no' then
setcavebot('yes')
settargeting('yes')
setlooting('yes')
setalarms('yes')
setsettings('Settings\\Actions\\List\\Drop empty potion flasks\\Enabled', 'yes')
setsettings('Settings\\Hud\\Enabled', 'yes')
else
setcavebot('no')
settargeting('no')
setlooting('no')
setalarms('no')
setsettings('Settings\\Actions\\List\\Drop empty potion flasks\\Enabled', 'no')
setsettings('Settings\\Hud\\Enabled', 'no')
end</Script>
<MainKey>45</MainKey>
<ComboKey>None</ComboKey>
<Enabled>yes</Enabled>
</Pause-bot>
</List>
<Condition>Client focus required</Condition>
<Enabled>yes</Enabled>
</HotKeys>
<Actions>
<List>
<Drop-empty-potion-flasks>
<Script>if itemcount(283) + itemcount(284) + itemcount(285) > 10 and maround(5) == 0 and not lootbodies then
pausewalking(1000)
dropitems(283)
dropitems(284)
dropitems(285)
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Drop-empty-potion-flasks>
<Screenshot-on-death>
<Script>if hppc < 10 then
focusclient()
screenshot()
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Screenshot-on-death>
</List>
<Setup>--[[
Boget proudly presents:
Port Hope swamp trolls v1.0.0 for 8+ knight
--]]
-- Backpack settings
bpMain = 'backpack' -- 00
bpLoot = 'red backpack' -- 01
bpLootStack = 'orange backpack' -- 02
bpGold = 'golden backpack' -- 03
bpDepotMain = 'yellow backpack'
bpDepotLootStack = 'beach backpack'
bpDepotLoot = 'blue backpack'
-- Potion settings
mpType = 'mana potion'
mpMax = 5
mpMin = 2
mpCost = 50
hpType = 'health potion'
hpMax = 5
hpMin = 2
hpCost = 45
-- Hunt settings
capMin = 50
-- World settings
isPVP = true
-- DO NOT EDIT ANYTHING BELOW THIS LINE
-- Global functions
function closeAllAndOpenMainBackpack ()
closewindows()
wait(800, 1000)
openitem(bpMain, 'back')
wait(800, 1000)
minimizewindows('equip')
wait(800, 1000)
resizewindows()
wait(800, 1000)
end
function reopenBackpacks ()
closeAllAndOpenMainBackpack()
openitem(bpLoot, bpMain, true)
wait(800, 1000)
resizewindows()
wait(800, 1000)
openitem(bpLootStack, bpMain, true)
wait(800, 1000)
resizewindows()
wait(800, 1000)
openitem(bpGold, bpMain, true)
wait(800, 1000)
resizewindows()
wait(800, 1000)
end</Setup>
<Enabled>yes</Enabled>
</Actions>
<CaveBot>
<Waypoints>
<in-depot>Node 32632 32741 7</in-depot>
<d000>Action 32622 32745 7 setsettings('Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers', 'yes');setsettings('Settings\\Cavebot\\Settings\\OpenNextBp', 'no');setalarms('no');minimizewindows('equip')</d000>
<d001>Action 32622 32745 7 closeAllAndOpenMainBackpack();;reachgrounditem('depot');openitem('depot');wait(1000, 1500);openitem('depot chest', 'locker')</d001>
<d002>Action 32622 32745 7 openitem(bpDepotMain, 'depot chest');wait(1000, 1500)</d002>
<d003>Action 32622 32745 7 openitem(bpLootStack, bpMain, true);wait(1000, 1500)</d003>
<d004>Action 32622 32745 7 depotdeposit(bpDepotLootStack, 'pelvis bone', 'poison spider shell', 'spider fangs', 'swamp grass', 'troll green', 'wood');wait(1000, 1500)</d004>
<d005>Action 32622 32745 7 if itemcount(bpLootStack, bpLootStack) > 0 then; openitem(bpLootStack, bpLootStack); gotolabel(wpt.id - 1);else; closewindow(bpLootStack);end;wait(1000, 1500)</d005>
<d006>Action 32622 32745 7 openitem(bpDepotMain, 'depot chest');wait(1000, 1500)</d006>
<d007>Action 32622 32745 7 openitem(bpLoot, bpMain, true);wait(1000, 1500)</d007>
<d008>Action 32622 32745 7 depotdeposit(bpDepotLoot, 'medicine pouch');wait(1000, 1500)</d008>
<d009>Action 32622 32745 7 if itemcount(bpLoot, bpLoot) > 0 then; openitem(bpLoot, bpLoot); gotolabel(wpt.id - 1);else; closewindow(bpLoot);end;wait(1000, 1500)</d009>
<d010>Stand 32625 32750 7</d010>
<d011>Stand 32625 32749 7</d011>
<d012>Stand 32625 32748 6</d012>
<bank>Stand 32632 32738 6</bank>
<d013>Action 32632 32738 6 local totalCost = (positive(mpMax - itemcount(mpType))) * mpCost + (positive(hpMax - itemcount(hpType))) * hpCost + 7;turn('e');say('hi');wait(1000, 1500);npcsay('deposit all');wait(1000, 1500);npcsay('yes');wait(1000, 1500);if totalCost > 0 then; npcsay('withdraw ' .. totalCost); wait(1000, 1500); npcsay('yes'); wait(1000, 1500);end;npcsay('balance');if gold() < totalCost then; gotolabel(wpt.id - 1);end</d013>
<ladder>Ladder 32626 32742 6</ladder>
<d014>Stand 32626 32743 5</d014>
<d015>Action 32626 32743 5 if not islocation() then; gotolabel('ladder');end</d015>
<magic-shop>Stand 32624 32740 5</magic-shop>
<d016>Action 32624 32740 5 turn('w');say('hi');wait(1000, 1500);npcsay('vial');wait(1000, 1500);npcsay('yes');wait(1000, 1500);npcsay('yes');wait(1000, 1500);npcsay('trade');wait(1000, 1500);buyitemsupto(mpType, mpMax);wait(1000, 1500);buyitemsupto(hpType, hpMax);if itemcount(mpType) < mpMax or itemcount(hpType) < hpMax then; gotolabel(wpt.id - 1);end</d016>
<d017>Stand 32626 32741 5</d017>
<d018>Stand 32626 32742 5</d018>
<d019>Stand 32626 32742 6</d019>
<d020>Stand 32625 32748 6</d020>
<d021>Stand 32625 32749 6</d021>
<d022>Stand 32625 32750 7</d022>
<backpacks>Action 32622 32745 7 reopenBackpacks()</backpacks>
<backpackCheck>Action 32622 32745 7 if windowcount() ~= 4 then; gotolabel('backpacks');end</backpackCheck>
<d030>Stand 32623 32749 7</d030>
<d031>Action 32623 32749 7 if isPVP then; setsettings('Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers', 'no');end;setsettings('Settings\\Cavebot\\Settings\\OpenNextBp', 'If cavebot enabled');setalarms('yes')</d031>
<w000>Node 32628 32752 7</w000>
<w001>Node 32657 32747 7</w001>
<w002>Stand 32662 32742 7</w002>
<w003>Stand 32662 32741 7</w003>
<w004>Stand 32662 32741 8</w004>
<w005>Action 32662 32741 8 if not islocation() then;gotolabel(wpt.id - 3);end</w005>
<start-hunt>Action 32657 32707 9</start-hunt>
<w006>Node 32659 32713 8</w006>
<w007>Node 32656 32707 8</w007>
<w008>Stand 32654 32707 8</w008>
<w009>Stand 32654 32706 8</w009>
<w010>Stand 32654 32706 9</w010>
<w011>Action 32654 32706 9 if not islocation() then;gotolabel(wpt.id - 3);end</w011>
<w012>Node 32659 32698 9</w012>
<w013>Node 32688 32682 9</w013>
<w014>Node 32673 32679 9</w014>
<w015>Stand 32672 32678 9</w015>
<w016>Stand 32672 32677 9</w016>
<w017>Stand 32672 32677 10</w017>
<w018>Action 32672 32677 10 if not islocation() then;gotolabel(wpt.id - 3);end</w018>
<w019>Node 32679 32661 10</w019>
<w020>Node 32678 32641 10</w020>
<w021>Stand 32684 32639 10</w021>
<w022>Rope 32684 32639 10</w022>
<w023>Stand 32684 32640 9</w023>
<w024>Action 32684 32640 9 if not islocation() then;gotolabel(wpt.id - 3);end</w024>
<w025>Node 32696 32645 9</w025>
<w026>Node 32682 32616 9</w026>
<w027>Node 32691 32594 9</w027>
<w028>Node 32691 32591 9</w028>
<w029>Stand 32691 32589 9</w029>
<w030>Rope 32691 32589 9</w030>
<w031>Stand 32691 32590 8</w031>
<w032>Action 32691 32590 8 if not islocation() then;gotolabel(wpt.id - 3);end</w032>
<w033>Node 32702 32597 8</w033>
<w034>Node 32673 32592 8</w034>
<w035>Node 32685 32621 8</w035>
<w036>Node 32685 32597 8</w036>
<w037>Node 32690 32591 8</w037>
<w038>Stand 32690 32589 8</w038>
<w039>Stand 32691 32589 8</w039>
<w040>Stand 32691 32589 9</w040>
<w041>Action 32691 32589 9 if not islocation() then;gotolabel(wpt.id - 3);end</w041>
<w042>Node 32682 32605 9</w042>
<w043>Node 32682 32635 9</w043>
<w044>Stand 32684 32638 9</w044>
<w045>Stand 32684 32639 9</w045>
<w046>Stand 32684 32639 10</w046>
<w047>Action 32684 32639 10 if not islocation() then;gotolabel(wpt.id - 3);end</w047>
<w048>Node 32680 32655 10</w048>
<w049>Node 32675 32675 10</w049>
<w050>Stand 32672 32677 10</w050>
<w051>Rope 32672 32677 10</w051>
<w052>Stand 32672 32678 9</w052>
<w053>Action 32672 32678 9 if not islocation() then;gotolabel(wpt.id - 3);end</w053>
<w054>Node 32665 32693 9</w054>
<w055>Node 32657 32707 9</w055>
<w056>Stand 32654 32706 9</w056>
<w057>Rope 32654 32706 9</w057>
<w058>Stand 32654 32707 8</w058>
<w059>Action 32654 32707 8 if not islocation() then;gotolabel(wpt.id - 3);end</w059>
<w060>Node 32663 32729 8</w060>
<w061>Node 32664 32738 8</w061>
<hunt-check>Action 32657 32707 9 if cap < capMin or itemcount(mpType) <= mpMin or itemcount(hpType) <= hpMin then; gotolabel('go-deposit');else; gotolabel('start-hunt');end</hunt-check>
<go-deposit>Stand 32662 32741 8</go-deposit>
<w062>Rope 32662 32741 8</w062>
<w063>Stand 32662 32742 7</w063>
<w064>Action 32662 32742 7 if not islocation() then;gotolabel('go-deposit');end</w064>
<w065>Node 32652 32753 7</w065>
<w066>Node 32631 32751 7</w066>
</Waypoints>
<Pathfinding>
<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 and Looting</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>
<medicine-pouch>
<Id>12517</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</medicine-pouch>
<pelvis-bone>
<Id>11481</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</pelvis-bone>
<poison-spider-shell>
<Id>11485</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</poison-spider-shell>
<spider-fangs>
<Id>8031</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</spider-fangs>
<swamp-grass>
<Id>9686</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</swamp-grass>
<troll-green>
<Id>3741</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</troll-green>
<wood>
<Id>5901</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</wood>
<gold-coin>
<Id>3031</Id>
<Destination>03</Destination>
<AlarmOn>No Alarm</AlarmOn>
</gold-coin>
</List>
<Condition>Corpses with listed items</Condition>
<Style>After melee kill</Style>
<OpenBodyTime>150</OpenBodyTime>
<Range>10</Range>
<EatFood>yes</EatFood>
<Enabled>yes</Enabled>
</Looting>
<Targeting>
<Monsters>
<bug>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</bug>
<cave-rat>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</cave-rat>
<poison-spider>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</poison-spider>
<skeleton>
<Categories>-</Categories>
<Danger>3</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</skeleton>
<spider>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</spider>
<swamp-troll>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<normal>
<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>Chase/Offensive</AttackMode>
</normal>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</swamp-troll>
</Monsters>
<Settings>
<ListOrder>0</ListOrder>
<Health>0</Health>
<Proximity>9</Proximity>
<Danger>0</Danger>
<PlayerOnScreenSecurity>If cavebotting</PlayerOnScreenSecurity>
<CooldownControl>yes</CooldownControl>
<CheckItem>no</CheckItem>
<MustBeReachable>yes</MustBeReachable>
<MustBeShootable>no</MustBeShootable>
</Settings>
<Enabled>yes</Enabled>
</Targeting>
<Hud>
<List>
<Experience-counter>
<Script>function formatNumber (amount)
local formatted = amount
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
if k == 0 then
break
end
end
return formatted
end
function padNumber (num, len, char)
str = tostring(num)
len = len or 2
char = char or '0'
return string.rep(char, len - #str) .. str
end
setsize(100,100)
setfontcolor('white')
addtext('exp/hour:', 10, 45)
addtext(formatNumber(exphour), 110, 45)
addtext('exp left:', 10, 60)
addtext(formatNumber(exptolevel()), 110, 60)
addtext('time left:', 10, 75)
local totalSeconds = exptolevel() / exphour * 3600
local hoursLeft = math.floor(totalSeconds / 3600)
local remainder = totalSeconds % 3600
local minutesLeft = math.floor(remainder / 60)
remainder = remainder % 60
local secondsLeft = math.floor(remainder)
local timeleft = padNumber(hoursLeft) .. ':' .. padNumber(minutesLeft) .. ':' .. padNumber(secondsLeft)
addtext(timeleft, 110, 75)
addtext('exp gained:', 10, 90)
addtext(formatNumber(expgained), 110, 90)
addtext('hunt duration:', 10, 105)
addtext(timehunt, 110, 105)
if balance >= 0 then
addtext('bank balance:', 10, 120)
addtext(formatNumber(balance), 110, 120)
end</Script>
<RefreshRate>1000</RefreshRate>
<Enabled>yes</Enabled>
</Experience-counter>
</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>
<Port-Hope-swamp-trolls-by-Boget />
</Settings>