draadloos
12-24-2015, 12:03 AM
If someone could do this, that would be great ;)
I prefer also if first backpack is empty, it will open the next one.
But this is not neccesary.
Greetings
shadowart
12-28-2015, 08:07 PM
local blacklist = {}
local function countMadSheep(dist, doBlacklist)
local count = 0
for name, c in Creature.iMonsters(dist or 7) do
local id = c:ID()
if name:lower() == "mad sheep" and not blacklist[id] then
count = count + 1
if doBlacklist then blacklist[id] = true end
end
end
return count
end
countMadSheep(7, true) -- Blacklist those who have already spawned
local function spawnMadSheep()
while Self.ItemCount("Spellwand") > 0 and countMadSheep(1) == 0 do
Self.UseItemWithMe("Spellwand")
end
return countMadSheep(1) > 0
end
local function openBackpacks()
Self.CloseContainers()
wait(math.random(350, 750) + Self.Ping())
local mainBp = Self.OpenMainBackpack(true)
local count = 0
for spot = 0, mainBp:ItemCount() - 1 do
if Item.isContainer(mainBp:GetItemData(spot).id) and mainBp:GetItemData(spot).id ~= 3503 then
mainBp:UseItem(spot)
count = count + 1
wait(math.random(350, 750) + Self.Ping())
Container.Minimize(count)
end
end
end
openBackpacks()
spawnMadSheep()
Targeting.Start()
-- That you currently isn't facing!
local function getRandomDir()
local dir = math.random(1,4) - 1
if dir ~= Self.LookDirection()
then return dir
else
return getRandomDir()
end
end
Module("Anti-Idle", function(self)
for i = 2, math.random(2, 4) do
Self.Turn(getRandomDir())
wait(200, 1000)
end
self:Delay(math.random(3, 14)*1000*60)
end)
Module("Logout if sheep is killed", function(self)
if countMadSheep(2) == 0 then
os.exit()
end
self:Delay(10000)
end)
Combine this with an xbst that has mad sheeps on targeting and you can schedule it with oxtools.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.