Xinum
Never Give Up!
- Joined
- Dec 23, 2009
- Messages
- 578
- Reaction score
- 66
[MS][60] Liberty Bay Earth Elementals
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>no</PlaySound>
<FlashClient>no</FlashClient>
<PauseBot>no</PauseBot>
<CloseTibia>yes</CloseTibia>
<Disconnect>no</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>60000</Value>
<PlaySound>yes</PlaySound>
<FlashClient>yes</FlashClient>
<PauseBot>no</PauseBot>
<Disconnect>no</Disconnect>
</StandTime>
<Stamina>
<Value>841</Value>
<PlaySound>yes</PlaySound>
<FlashClient>yes</FlashClient>
<PauseBot>yes</PauseBot>
<CloseTibia>no</CloseTibia>
<Disconnect>yes</Disconnect>
</Stamina>
<Disconnect>
<PlaySound>no</PlaySound>
<FlashClient>yes</FlashClient>
<PauseBot>no</PauseBot>
</Disconnect>
<Enabled>yes</Enabled>
</Alerts>
<Healer>
<Rules>
<Anti-Paralyzed>
<HealRange>75 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>
</Anti-Paralyzed>
<Light-Healing>
<HealRange>55 to 75 %</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>
</Light-Healing>
<Intense-Healing>
<HealRange>35 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>
</Intense-Healing>
<Ultimate-Healing>
<HealRange>0 to 35 %</HealRange>
<ManaRange>160 to all</ManaRange>
<HealMethod>Ultimate Healing</HealMethod>
<ExtraCondition>No condition</ExtraCondition>
<CooldownControl>yes</CooldownControl>
<CheckItem>no</CheckItem>
<SpamRate>200 to 400</SpamRate>
<Enabled>yes</Enabled>
</Ultimate-Healing>
<Strong-Mana-Potion>
<HealRange>0 to 100 %</HealRange>
<ManaRange>0 to 60 %</ManaRange>
<HealMethod>Strong Mana Potion</HealMethod>
<ExtraCondition>No condition</ExtraCondition>
<CooldownControl>yes</CooldownControl>
<CheckItem>no</CheckItem>
<SpamRate>200 to 400</SpamRate>
<Enabled>yes</Enabled>
</Strong-Mana-Potion>
</Rules>
<PingCompensation>10</PingCompensation>
<Enabled>yes</Enabled>
</Healer>
<FriendHealer>
<Rules />
<Enabled>yes</Enabled>
</FriendHealer>
<Refiller>
<Rules />
<Enabled>yes</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>
<Vial-Droper>
<Script>Vials = itemcount(283)+itemcount(284)+itemcount(285)
if Vials >= 5 and cap <= MinCap+50 then
dropitems(283,284,285)
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Vial-Droper>
<Recconect>
<Script>if Recconect then
local accounts =
{
{acc = Account, pass = Password, name = Character}
}
local serversavetime = {from = '6:00', to = '6:20'}
serversavetime = {from = tosec(serversavetime.from), to = tosec(serversavetime.to)}
local randdelay = {min = 0, max = 300}
local startlabel = ''
local curchar = 1
--dont change things below
local randomdelay = math.random(randdelay.min, randdelay.max)
if not connected then
setcavebot('off')
local curtime = tosec(time())
if curtime < serversavetime.from or curtime > serversavetime.to+randomdelay then
connect(accounts[curchar].acc, accounts[curchar].pass, accounts[curchar].name)
wait(3000,4000)
updateworld()
if connected then
if startlabel ~= '' then
gotolabel(startlabel)
end
while windowcount() < 3 do
closewindows()
wait(400, 600)
openitem(MainBp, 'back')
wait(400, 600)
resizewindow(MainBp, 0)
wait(400, 600)
openitem(LootBp, MainBp, true)
wait(400, 600)
resizewindow(LootBp, 0)
wait(400, 600)
openitem(GoldBp, MainBp, true)
wait(3000, 5000)
resizewindow(GoldBp, 0)
wait(1000, 2000)
resizewindows()
wait(1000, 2000)
end
setcavebot('on')
end
end
end
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Recconect>
<Spells>
<Script>if target.name == "Nightstalker" and cancast('exori vis') then
cast('exori vis')
else if target.name == "Earth Elemental" and cancast('exori flam') then
cast('exori flam')
end
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Spells>
<Death>
<Script>local templeNpcNames = {"Alia", "Tyrias", "Brewster", "Rahkem", "Kasmir", "Amanda", "Isimov", "Yberius", "Maealil", "Quentin", "Lynda", "Lorietta", "Prezil", "Kjesse", "Asralius"}
if ((pzone == true) and (maround(10, false, unpack(templeNpcNames)) >= 1)
or (pzone == true) and (islocationxyz(32787, 31276, 7, templePositionRange))
or (pzone == true) and (islocationxyz(32595, 32744, 6, templePositionRange))
or (pzone == true) and (islocationxyz(33213, 32454, 1, templePositionRange))
or (pzone == true) and (islocationxyz(32213, 31133, 7, templePositionRange))
or (pzone == true) and (islocationxyz(33004, 31490, 11, templePositionRange))
or (pzone == true) and (islocationxyz(32649, 31925, 11, templePositionRange))
or (pzone == true) and (islocationxyz(33217, 31814, 8, templePositionRange))
or (pzone == true) and (islocationxyz(32317, 32826, 7, templePositionRange))
or (pzone == true) and (islocationxyz(33194, 32853, 8, templePositionRange))
or (pzone == true) and (islocationxyz(32369, 32241, 7, templePositionRange))
or (pzone == true) and (islocationxyz(32360, 31782, 7, templePositionRange))
or (pzone == true) and (islocationxyz(32957, 32076, 7, templePositionRange))
or (pzone == true) and (islocationxyz(32732, 31634, 7, templePositionRange))
or (pzone == true) and (islocationxyz(33447, 31323, 9, templePositionRange))) then
wait(1500)
closetibia()
wait(1500)
message("Reconnect Message: Tibia client has been closed because character was inside a temple. This is to protect your character from being killed by other players.")
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Death>
<SoftBoots>
<Script>local iBoots = { soft = "soft boots", normal = OtherBoots}
local ManaToSoft = 85 --%
if EquipSoftBoots then
if mppc <= ManaToSoft and pzone == false and boots ~= 3549 and itemcount(iBoots.soft) >= 1 then
setlooting("no")
pausewalking(1500)
moveitems(iBoots.soft, "all", "boots", 1) wait(800)
pausewalking(0)
setlooting("yes")
elseif mppc > ManaToSoft and boots ~= itemid(iBoots.normal) then
setlooting("no")
pausewalking(1500)
moveitems(iBoots.normal, "all", "boots", 1) wait(800)
pausewalking(0)
setlooting("yes")
elseif pzone == true and boots ~= itemid(iBoots.normal) then
pausewalking(1500)
moveitems(iBoots.normal, "all", "boots", 1) wait(800)
pausewalking(0)
elseif boots == itemid("worn soft boots") then
setlooting("no")
pausewalking(1500)
moveitems(iBoots.normal, "all", "boots", 1) wait(800)
pausewalking(0)
setlooting("yes")
end
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</SoftBoots>
<Targeting>
<Script>if maround(9) >= 4 then
setsettings("Settings\\Targeting\\Monsters\\Earth Elemental\\ListSettings\\Setting0\\Stance", "Keep Away Wait")
setsettings("Settings\\Targeting\\Monsters\\Earth Elemental\\ListSettings\\Setting0\\AttackMode", "Stand Defensive")
setsettings("Settings\\Targeting\\Monsters\\Nightstalker\\ListSettings\\Setting0\\Stance", "Keep Away Wait")
setsettings("Settings\\Targeting\\Monsters\\Nightstalker\\ListSettings\\Setting0\\AttackMode", "Stand Defensive")
else
setsettings("Settings\\Targeting\\Monsters\\Earth Elemental\\ListSettings\\Setting0\\Stance", "Circle")
setsettings("Settings\\Targeting\\Monsters\\Earth Elemental\\ListSettings\\Setting0\\AttackMode", "Chase Defensive")
setsettings("Settings\\Targeting\\Monsters\\Nightstalker\\ListSettings\\Setting0\\Stance", "Circle")
setsettings("Settings\\Targeting\\Monsters\\Nightstalker\\ListSettings\\Setting0\\AttackMode", "Chase Defensive")
end</Script>
<SpamRate>800 to 1000</SpamRate>
<Enabled>yes</Enabled>
</Targeting>
</List>
<Setup>-- Setup
--{Backpacks}--
MainBp = "Red Backpack"
LootBp = "Golden Backpack"
GoldBp = "Blue Backpack"
--{DepotBps}--
MainDpBp = "Fur Backpack"
StackableDpBp = "Grey Backpack"
OtherDpBp = "Beach Backpack"
--{Mana Potions}--
ManaRefill = true
Mana = "Strong Mana Potion"
MaxMana = 150
MinMana = 50
ManaPrice = 80
--{FoodRefill}--
FoodRefill = true
MaxFood = 200
FoodToRefill = 75
MinFood = 50
--{SoftBoots Refill}--
EquipSoftBoots = false
OtherBoots = 'Boots of Haste'
RefillSoftBoots = false
SoftBootsToRefill = 1
--{Hunt}--
MinCap = 100
--{Reconect}--
Recconect = false
Account = 'XXX'
Password = 'XXX'
Character = 'XXX'</Setup>
<Enabled>yes</Enabled>
</Actions>
<CaveBot>
<Waypoints>
<w000>Node 32330 32834 7</w000>
<w001>Action 32330 32834 7 setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no");closewindows();while windowcount() < 2 do;closewindows();wait(400, 600);openitem(MainBp, 'back');wait(400, 600);resizewindow(MainBp, 0);wait(400, 600);openitem(LootBp, MainBp, true);wait(1000, 2000);resizewindows();wait(1000, 2000);end</w001>
<w002>Action 32330 32834 7 reachgrounditem("depot") ;wait(1000,2000) ;openitem("depot") ;wait(700,900) ;openitem(3502, "locker") ;wait(700,900) ;openitem(MainDpBp, "depot chest") ;;depotdeposit(StackableDpBp, 'lump of earth', 'small topaz');wait(1000,2000);depotdeposit(OtherDpBp, 'boots of haste', 'chaos mace', 'haunted blade', 'platinum amulet', 'crystal of balance', 'spirit cloak', 'crystal ring');wait(1000,2000);;depotdeposit(StackableDpBp, 'lump of earth', 'small topaz');wait(1000,2000);depotdeposit(OtherDpBp, 'boots of haste', 'chaos mace', 'haunted blade', 'platinum amulet', 'crystal of balance', 'spirit cloak', 'crystal ring');wait(1000,2000);;setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "yes")</w002>
<w003>Stand 32338 32836 7</w003>
<w004>Stand 32339 32836 7</w004>
<w005>Action 32339 32836 7 local Money = 0;local Cash = 0;local Extra = 100 --Helps script move smoothly;;if ManaRefill and itemcount(Mana) < MaxMana then;Money = Money + positive(MaxMana - itemcount(Mana)) * ManaPrice;end;if FoodRefill and itemcount("Brown Mushroom") <= FoodToRefill then;Money = Money + positive(MaxFood - itemcount("Brown Mushroom")) * 10;Money = Money+400;end;if SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill then ;Money = Money + positive(itemcount("Soft Boots")) * 10000;Money = Money+400;end ;if Money - positive(itemcount(283)+itemcount(284)+itemcount(285))*5 >= Extra then;Money = Money - positive(itemcount(283)+itemcount(284)+itemcount(285))*5;end;Money = Money + Extra;;say("hi") wait(500,700);npcsay("deposit all") wait(500,700);npcsay("yes") wait(500,700);npcsay("withdraw "..Money) wait(500,700);npcsay("yes") wait(500,700);npcsay("balance") ;wait(2000,4000);;Cash = Cash + (itemcount("Gold Coin")) + (itemcount("Platinum Coin")* 100) + (itemcount("Crystal Coin") * 10000);if Cash ~= Money then;gotolabel(wpt.id-2);end;</w005>
<w006>Action 32339 32836 7 closewindows();while windowcount() < 3 do;closewindows();wait(400, 600);openitem(MainBp, 'back');wait(400, 600);resizewindow(MainBp, 0);wait(400, 600);openitem(LootBp, MainBp, true);wait(400, 600);resizewindow(LootBp, 0);wait(400, 600);openitem(GoldBp, MainBp, true);wait(3000, 5000);resizewindow(GoldBp, 0);wait(1000, 2000);resizewindows();wait(1000, 2000);end</w006>
<w007>Node 32341 32822 7</w007>
<w008>Node 32346 32811 7</w008>
<w009>Stand 32345 32810 7</w009>
<w010>Action 32345 32810 7 say("hi") wait(500,700);while itemcount(283) >= 1 or itemcount(284) >= 1 or itemcount(285) >= 1 do;npcsay("flask") wait(500,700);npcsay("yes") wait(500,700);end;;npcsay("trade") wait(1000,2000);if ManaRefill and itemcount(Mana) < MaxMana then;buyitemsupto(Mana,MaxMana) wait(1000,2000);end</w010>
<w011>Action 32345 32810 7 if FoodRefill and itemcount("Brown Mushroom") <= FoodToRefill;or SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill then;gotolabel("w012");else;gotolabel("w071");end</w011>
<w012>Node 32342 32828 7</w012>
<w013>Node 32340 32850 7</w013>
<w014>Node 32322 32863 7</w014>
<w015>Stand 32306 32868 7</w015>
<w016>Ladder 32306 32868 7</w016>
<w017>Action 32306 32868 7 if posz ~= 6 then;gotolabel(wpt.id-2);end</w017>
<w018>Node 32281 32873 6</w018>
<w019>Node 32277 32888 6</w019>
<w020>Stand 32285 32892 6</w020>
<w021>Action 32285 32892 6 if SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill then;gotolabel("w022");else;gotolabel("w036");end</w021>
<w022>Action 32285 32892 6 wait(1000,2000);reachcreature("Jack Fate");say("hi") wait(500,700);npcsay("venore") wait(500,700);npcsay("yes") wait(500,700);wait(1000,2000)</w022>
<w023>Stand 32954 32023 6</w023>
<w024>Action 32954 32023 6 if not islocation() then;gotolabel(wpt.id-4);end</w024>
<w025>Node 32954 32049 6</w025>
<w026>Node 32954 32086 6</w026>
<w027>Node 32953 32107 6</w027>
<w028>Stand 32953 32108 6</w028>
<w029>Action 32953 32108 6 say("hi") wait(500,700);while itemcount("Worn Soft Boots") >= 1 do;npcsay("soft boots") wait(500,700);npcsay("yes") wait(500,700);end</w029>
<w030>Node 32953 32089 6</w030>
<w031>Node 32954 32056 6</w031>
<w032>Stand 32955 32022 6</w032>
<w033>Action 32955 32022 6 wait(1000,2000);reachcreature("Captain Fearless");say("hi") wait(500,700);npcsay("liberty bay") wait(500,700);npcsay("yes") wait(500,700);wait(1000,2000)</w033>
<w034>Stand 32283 32893 6</w034>
<w035>Action 32283 32893 6 if not islocation() then;gotolabel(wpt.id-3);end</w035>
<w036>Stand 32285 32892 6</w036>
<w037>Action 32285 32892 6 if FoodRefill and itemcount("Brown Mushroom") <= FoodToRefill then;gotolabel("w038");else;gotolabel("w065");end</w037>
<w038>Action 32285 32892 6 wait(1000,2000);reachcreature("Jack Fate");say("hi") wait(500,700);npcsay("edron") wait(500,700);npcsay("yes") wait(500,700);wait(1000,2000)</w038>
<w039>Stand 33175 31764 6</w039>
<w040>Action 33175 31764 6 if not islocation() then;gotolabel(wpt.id-4);end</w040>
<w041>Stand 33175 31775 6</w041>
<w042>Action 33177 31776 7 if posz ~= 7 then;gotolabel(wpt.id-1);end</w042>
<w043>Node 33197 31791 7</w043>
<w044>Node 33197 31819 7</w044>
<w045>Node 33207 31843 7</w045>
<w046>Node 33240 31841 7</w046>
<w047>Stand 33247 31841 7</w047>
<w048>Stand 33258 31840 6</w048>
<w049>Action 33257 31841 5 if posz ~= 5 then;gotolabel(wpt.id-2);end</w049>
<w050>Stand 33256 31840 5</w050>
<w051>Action 33256 31840 5 wait(1000);if FoodRefill and itemcount("Brown Mushroom") <= FoodToRefill then;say("hi") wait(500,700);npcsay("trade") wait(1000,2000);buyitemsupto("Brown Mushroom",MaxFood);end</w051>
<w052>Stand 33258 31840 5</w052>
<w053>Stand 33247 31841 6</w053>
<w054>Action 33243 31842 7 if posz ~= 7 then;gotolabel(wpt.id-2);end</w054>
<w055>Node 33206 31844 7</w055>
<w056>Node 33200 31813 7</w056>
<w057>Node 33193 31789 7</w057>
<w058>Stand 33175 31775 7</w058>
<w059>Ladder 33175 31775 7</w059>
<w060>Action 33175 31776 6 if posz ~= 6 then;gotolabel(wpt.id-2);end</w060>
<w061>Stand 33176 31764 6</w061>
<w062>Action 33176 31764 6 wait(1000,2000);reachcreature("Captain Seahorse");say("hi") wait(500,700);npcsay("liberty bay") wait(500,700);npcsay("yes") wait(500,700);wait(1000,2000)</w062>
<w063>Stand 32283 32893 6</w063>
<w064>Action 32283 32893 6 if not islocation() then;gotolabel(wpt.id-3);end</w064>
<w065>Node 32277 32881 6</w065>
<w066>Node 32302 32871 6</w066>
<w067>Stand 32306 32868 6</w067>
<w068>Action 32307 32863 7</w068>
<w069>Node 32314 32840 7</w069>
<w070>Node 32332 32835 7</w070>
<w071>Action 32332 32835 7 if ManaRefill and itemcount(Mana) <= MaxMana-5;or FoodRefill and itemcount("Brown Mushroom") <= FoodToRefill-20;or SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill then;gotolabel("w072");else;gotolabel("w074");end</w071>
<w072>Node 32332 32835 7</w072>
<w073>Action 32332 32835 7 gotolabel("w000")</w073>
<w074>Node 32346 32814 7</w074>
<w075>Node 32371 32799 7</w075>
<w076>Node 32364 32753 7</w076>
<w077>Node 32367 32731 7</w077>
<w078>Stand 32368 32729 7</w078>
<w079>Stand 32371 32731 6</w079>
<w080>Stand 32373 32731 5</w080>
<w081>Stand 32376 32729 4</w081>
<w082>Action 32378 32729 3 if posz ~= 3 then;gotolabel(wpt.id-4);end</w082>
<w083>Stand 32378 32729 3</w083>
<w084>Action 32381 32728 4 if posz ~= 4 then;gotolabel(wpt.id-1);end</w084>
<w085>Stand 32381 32730 4</w085>
<w086>Use 32381 32731 4</w086>
<w087>Stand 32381 32732 4</w087>
<w088>Action 32381 32732 4 if not islocation() then;gotolabel(wpt.id-3);end</w088>
<w089>Node 32388 32737 4</w089>
<w090>Node 32391 32749 4</w090>
<w091>Node 32413 32767 4</w091>
<w092>Node 32391 32751 4</w092>
<w093>Node 32391 32777 4</w093>
<w094>Node 32415 32783 4</w094>
<w095>Node 32432 32766 4</w095>
<w096>Node 32413 32740 4</w096>
<w097>Node 32399 32731 4</w097>
<w098>Action 32388 32736 4 if ManaRefill and itemcount(Mana) <= MinMana;or FoodRefill and itemcount("Brown Mushroom") <= MinFood;or SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill ;or cap <= MinCap then;gotolabel("w099");else;gotolabel("w089");end</w098>
<w099>Stand 32381 32732 4</w099>
<w100>Use 32381 32731 4</w100>
<w101>Stand 32381 32730 4</w101>
<w102>Action 32381 32730 4 if not islocation() then;gotolabel(wpt.id-3);end</w102>
<w103>Stand 32378 32729 4</w103>
<w104>Action 32376 32729 3 if posz ~= 3 then;gotolabel(wpt.id-1);end</w104>
<w105>Stand 32376 32729 3</w105>
<w106>Stand 32373 32731 4</w106>
<w107>Stand 32371 32731 5</w107>
<w108>Stand 32368 32729 6</w108>
<w109>Action 32366 32729 7 if posz ~= 7 then;gotolabel(wpt.id-4);end</w109>
<w110>Node 32350 32755 7</w110>
<w111>Node 32341 32792 7</w111>
<w112>Node 32341 32828 7</w112>
<w113>Node 32332 32835 7</w113>
</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</Priority>
<OpenNextBp>yes</OpenNextBp>
<AutoMount>yes</AutoMount>
<Anti-idle>no</Anti-idle>
<EatFood>yes</EatFood>
<FoodToEat>3725;3587;3600;3595;3589;3598;8014;3583;3606;3578;3592;3582;3577;3593;3586;3585;3581;3723</FoodToEat>
<PauseOnDeath>yes</PauseOnDeath>
</Settings>
<Enabled>no</Enabled>
</CaveBot>
<Looting>
<List>
<boots-of-haste>
<Id>3079</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</boots-of-haste>
<chaos-mace>
<Id>7427</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</chaos-mace>
<haunted-blade>
<Id>7407</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</haunted-blade>
<platinum-amulet>
<Id>3055</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</platinum-amulet>
<crystal-of-balance>
<Id>9028</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</crystal-of-balance>
<spirit-cloak>
<Id>8042</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</spirit-cloak>
<crystal-ring>
<Id>3007</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</crystal-ring>
<small-topaz>
<Id>9057</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</small-topaz>
<lump-of-earth>
<Id>10305</Id>
<Destination>01</Destination>
<AlarmOn>No Alarm</AlarmOn>
</lump-of-earth>
<strong-mana-potion>
<Id>237</Id>
<Destination>00</Destination>
<AlarmOn>No Alarm</AlarmOn>
</strong-mana-potion>
<gold-coin>
<Id>3031</Id>
<Destination>02</Destination>
<AlarmOn>No Alarm</AlarmOn>
</gold-coin>
</List>
<Condition>Corpses with listed items</Condition>
<Style>After melee kill</Style>
<OpenBodyTime>300</OpenBodyTime>
<Range>30</Range>
<EatFood>yes</EatFood>
<Enabled>yes</Enabled>
</Looting>
<Targeting>
<Monsters>
<Earth-Elemental>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<Setting0>
<Count>Any</Count>
<HpRange>0 to 100 %</HpRange>
<Stance>Circle</Stance>
<Avoid>None</Avoid>
<Distance>3</Distance>
<Attack>Attack</Attack>
<ListSpell />
<SpellRate>500 to 1000</SpellRate>
<AttackMode>Chase Defensive</AttackMode>
</Setting0>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</Earth-Elemental>
<Nightstalker>
<Categories>-</Categories>
<Danger>0</Danger>
<ListSettings>
<Setting0>
<Count>Any</Count>
<HpRange>0 to 100 %</HpRange>
<Stance>Circle</Stance>
<Avoid>None</Avoid>
<Distance>3</Distance>
<Attack>Attack</Attack>
<ListSpell />
<SpellRate>500 to 1000</SpellRate>
<AttackMode>Chase Defensive</AttackMode>
</Setting0>
</ListSettings>
<Looting>yes</Looting>
<MustAttackMe>no</MustAttackMe>
<OnlyIfTrapped>no</OnlyIfTrapped>
</Nightstalker>
</Monsters>
<Settings>
<ListOrder>0</ListOrder>
<Health>9</Health>
<Proximity>8</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>
<GeneralInfo>
<Script>--~~{Settings}~~--
--~~{Settings}~~--
---Position--
local PositionX = 10 --Where the Hud sits "left to right"
local PositionY = 35 --Where the hud sits "up and down"
---Color's--
local TitleColor = "Orange" --The title's for each sections color
local OutlineColor = "Silver" --The color that is around each headline
local ItemColor = "gold" --The color of each subsection eg "Exp/Hr, Sword Skill, Name ect"
local InfoColor = "White" --The color of the actual return of what each thing is eg "Exp/Hr Is 1000, Your Sword Skill is 78, Your Name Is (Im A Noob) ect"
--Options To Show--
local General = true --General info eg "Name, Position and Cursor ID"
local BottingInfo = true --Botting info eg "Everything with exp and what you have Enabled"
TimeLevelStyle = true --If true then time level based on bots exp if false time level based on tibia exp
local Skills = true --Skills.... Self explanatory
--~~{Settings}~~--
--~~{Settings}~~--
--Engine--
--Do Not Edit!--
--Engine--
setsize(100,100)
local a = 25
local b = PositionY
local c = 25+PositionY
local d = 25+PositionY
local e = 5+PositionY
local f = PositionX
local g = false
local h = 0
--General Info--
if General then
setfontcolor(TitleColor)
addtext("General Info",f+70,e) e=e+80
setfontcolor(OutlineColor)
addtext("___________________",f+35,a) a=a+20
addtext("___________________",f+35,a) a=a+60
addtext("|",f+33,b)
addtext("|",f+165,b) b=b+10
addtext("|",f+165,b)
addtext("|",f+33,b) b=b+70
setfontcolor(ItemColor)
addtext("PosX : ",f,c)
addtext("Name : ",f+140,c) c=c+15
addtext("PosY : ",f,c)
addtext("Balance : ",f+140,c) c=c+15
addtext("PosZ : ",f,c)
addtext("Mouse Id : ",f+140,c) c=c+50
setfontcolor(InfoColor)
addtext(posx,f+35,d)
addtext(name,f+180,d) d=d+15
addtext(posy,f+35,d)
addtext(balance,f+192,d) d=d+15
addtext(posz,f+35,d)
addtext(cursorinfo().id,f+200,d) d=d+50
end
--General Info--
--Botting Status
if BottingInfo then
setfontcolor(TitleColor)
addtext("Botting Status",f+65,e) e=e+125
setfontcolor(OutlineColor)
addtext("___________________",f+35,a) a=a+20
addtext("___________________",f+35,a) a=a+105
addtext("|",f+33,b)
addtext("|",f+165,b) b=b+10
addtext("|",f+165,b)
addtext("|",f+33,b) b=b+115
setfontcolor(ItemColor)
addtext("Level : ",f+140,c)
addtext("Caveboting : ",f,c) c=c+15
addtext("Tibia Exp/Hr : ",f+140,c)
addtext("Targeting : ",f,c) c=c+15
addtext("Bot Exp/Hr : ",f+140,c)
addtext("Looting : ",f,c) c=c+15
addtext("Time To level : ",f+140,c)
addtext("Walk Through : ",f,c) c=c+15
addtext("Exp Left : ",f+140,c)
addtext("Stamina : ",f,c) c=c+15
addtext("Exp Gained : ",f+140,c)
addtext("Time Online : ",f,c) c=c+50
if cavebot then setfontcolor("Green") addtext("On",f+73,d) else setfontcolor("Red") addtext("Off",f+73,d) end
setfontcolor(InfoColor)
addtext(level,f+180,d) d=d+15
if targeting then setfontcolor("Green") addtext("On",f+62,d) else setfontcolor("Red") addtext("Off",f+62,d) end
setfontcolor(InfoColor)
if tibiaexphour > 10000 then addtext(math.ceil(tibiaexphour/1000).."k/Hr",f+217,d) d=d+15 else addtext(tibiaexphour,f+217,d) d=d+15 end
if looting then setfontcolor("Green") addtext("On",f+52,d) else setfontcolor("Red") addtext("Off",f+52,d) end
setfontcolor(InfoColor)
if exphour > 10000 then addtext(math.ceil(exphour/1000).."k/Hr",f+209,d) d=d+15 else addtext(exphour,f+209,d) d=d+15 end
if getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'yes' then setfontcolor("Green") addtext("On",f+87,d) else setfontcolor("Red") addtext("Off",f+87,d) end
setfontcolor(InfoColor)
if exphour > 0 then addtext(string.format("%.2d:%.2d:%.2d", exptolevel()/exphour, exptolevel()/exphour*60%60, exptolevel()/exphour*60*60%60),f+224,d) d=d+15 else addtext("Infinit",f+224,d) d=d+15 end
if stamina <= 14*60 then setfontcolor("Red") elseif stamina >= 40*60 then setfontcolor("Green") else setfontcolor("Orange") end
addtext(string.format("%.2d:%.2d", stamina/60, stamina%60),f+55,d)
setfontcolor(InfoColor)
if exptolevel() > 10000 then addtext(math.ceil(exptolevel()/1000).."k",f+193,d) d=d+15 else addtext(exptolevel(),f+193,d) d=d+15 end
addtext(string.format("%.2d:%.2d:%.2d", timems/1000/60/60, timems/1000/60%60, timems/1000%60),f+75,d)
if expgained > 10000 then addtext(math.ceil(expgained/1000).."k",f+210,d) d=d+50 else addtext(expgained,f+210,d) d=d+50 end
end
--Botting Status--
--Skills--
if Skills then
setfontcolor(TitleColor)
addtext("Skills & Stats",f+68,e) e=e+95
setfontcolor(OutlineColor)
addtext("___________________",f+35,a) a=a+20
addtext("___________________",f+35,a) a=a+75
addtext("|",f+33,b)
addtext("|",f+165,b) b=b+10
addtext("|",f+165,b)
addtext("|",f+33,b) b=b+85
setfontcolor(ItemColor)
addtext("Sword : ",f,c)
addtext("Distance : ",f+140,c) c=c+15
addtext("Axe : ",f,c)
addtext("Shielding : ",f+140,c) c=c+15
addtext("Club : ",f,c)
addtext("Fishing : ",f+140,c) c=c+15
addtext("Fist : ",f,c)
addtext("Magic : ",f+140,c) c=c+50
setfontcolor(InfoColor)
addtext(sword.."-"..swordpc.."%",f+43,d)
addtext(distance.."-"..distancepc.."%",f+197,d) d=d+15
addtext(axe.."-"..axepc.."%",f+30,d)
addtext(shielding.."-"..shieldingpc.."%",f+199,d) d=d+15
addtext(club.."-"..clubpc.."%",f+31,d)
addtext(fishing.."-"..fishingpc.."%",f+187,d) d=d+15
addtext(fist.."-"..fistpc.."%",f+28,d)
addtext(mlevel.."-"..mlevelpc.."%",f+182,d) d=d+50
end
--Skills--</Script>
<RefreshRate>1000</RefreshRate>
<Enabled>yes</Enabled>
</GeneralInfo>
<Loot-Counter>
<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 = "boots of haste", VALUE = 30000},
{NAME = "chaos mace", VALUE = 9000},
{NAME = "haunted blade", VALUE = 8000},
{NAME = "platinum amulet", VALUE = 2500},
{NAME = "crystal of balance", VALUE = 1000},
{NAME = "spirit cloak", VALUE = 350},
{NAME = "crystal ring", VALUE = 250},
{NAME = "small topaz", VALUE = 250},
{NAME = "lump of earth", VALUE = 130},
{NAME = "strong mana potion", VALUE = 0},
{NAME = "gold coin", VALUE = 1},
}
MONITOR_MY_HUNTING.SHOW_ALL_SUPPLIES = false
MONITOR_MY_HUNTING.SUPPLIES_LIST = {
{NAME = "strong mana potion", PRICE = 80},
}
-- [[ 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>
</Loot-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>
</Settings>