XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Contest #1 - Autofisher

  1. #1
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)

    Contest #1 - Autofisher

    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:
    1. It should continue fishing whenever possible and indefinitely.
    2. It should ignore cap and worm count.
    3. It should only fish on fishy tiles. Ids: {4597, 4598, 4599, 4600, 4601, 4602}
    4. It should fish every tile. Will be tested in open locations so fishing through walls wont matter.
    5. It should sleep for 1000 MS between fishing attempts.
    6. It should, essentially, do everything the base script does, and nothing more.
    7. 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!

  2. #2
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Here's my entry:
    http://pastebin.com/n1J3UjH2

  3. #3
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    My entry:
    http://pastebin.com/b0hrCBuy

    Soo close. Damn you number returning functions.
    Last edited by Syntax; 11-06-2012 at 03:53 PM.

  4. #4
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    My entry: http://pastebin.com/85KAcG5j

    I'm not going to win this one...

  5. #5
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    My entry: http://pastebin.com/uMrHjVZq

    I'm not even gonna be close to winning this ;D

  6. #6
    jonman715's Avatar
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what do you get if you win

  7. #7
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by jonman715 View Post
    what do you get if you win
    Nothing for the first round. I'll throw in a prize for the next competition if enough people join.

  8. #8
    CrazySwe's Avatar
    Join Date
    Dec 2010
    Location
    Varberg, Sweden
    Posts
    43
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    http://pastebin.com/QDyi6bqy

    Beginner stuff here!

    // CrazySwe

  9. #9
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Pastes need to be public by tomorrow at 10AM EST. That's exactly 20 hours and 20 minutes from this post.

  10. #10
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    I'm giving everyone an extra few hours since a few people seem like they haven't been on yet. Deadline will be either when all posts are made public or 8PM EST (10:15 from now), whichever comes first.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •