Welcome
Welcome to the first ever XenoBot Lua competition. Before I introduce the challenge, I will first go over the rules, to clarify, since this is the first contest. The first thing you should do is thoroughly read this introduction thread. If you decide to enter, you should post your private pastebin link below. That should be your only post in the thread. This specific contest has a deadline of November 6th, 2012. This means that your pastebin link must be public by then, with a modification date no later than November 5th, 2012.
The Competition
The competition is to make an auto-fisher. The guidelines are as follows:
- It should continue fishing whenever possible and indefinitely.
- It should ignore cap and worm count.
- It should only fish on fishy tiles. Ids: {4597, 4598, 4599, 4600, 4601, 4602}
- It should fish every tile. Will be tested in open locations so fishing through walls wont matter.
- It should sleep for 1000 MS between fishing attempts.
- It should, essentially, do everything the base script does, and nothing more.
- It should not have anything that somehow circumvents it's intended purpose in ways not mentioned in the above guidelines. You know what the fuck an auto-fisher is, just make one.
Base script:
lua code:local WATER_FISH = {4597, 4598, 4599, 4600, 4601, 4602}
while (true) do
for x = -7, 7, 1 do
for y = -5, 5, 1 do
local item = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
if (table.contains(WATER_FISH, item.id)) then
Self.UseItemWithGround(3483, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1000)
end
end
end
end
The deadline is November 6th. Goodluck!