XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Contest #1 - Autofisher

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

    @DarkstaR, 148 characters
    lua code:
    i=0 while(1)do p=Self.Position()x,y=p.x+i-7,p.y+i-5 wait(getTileUseID(x,y,p.z).idE97<6 and selfUseItemWithGround(3483,x,y,p.z)+999)i=i+1 end


    @Syntax, 151 characters
    lua code:
    i=0;while(1)do p=Self.Position()x,y=i-7+p.x,i-5+p.y;wait(getTileUseID(x,y,p.z).idE97<6 and selfUseItemWithGround(3483,x,y,p.z)and 1E3)i=i+1;end


    @Infernal Bolt, 213 characters
    lua code:
    while(1)do for a=-7,7 do p=Self.Position()for b=-5,5 do if(table.isStrIn({4597,4598,4599,4600,4601,4602},getTileUseID(p.x+a,p.y+b,p.z).id))then selfUseItemWithGround(3483,p.x+a,p.y+b,p.z)wait(1000)end end end end


    @CrazySwe - The point of the competition is shortest code. Nice scripting, though
    @Spectrus - Fine don't make public, loser. fffffffuuuuuuuuuuu

    Feel free to discuss now.
    Last edited by Syntax; 02-26-2013 at 08:51 PM. Reason: added syntax coloring in codes

  2. #12
    Banned
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,460
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    It's cool to see that DarkstaR's and Syntax' are almost the same.

    It's also quite obvious that this stuff is way to advanced for me

  3. #13
    CrazySwe's Avatar
    Join Date
    Dec 2010
    Location
    Varberg, Sweden
    Posts
    43
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @DarkstaR, I know :P I just wanted to challenge myself since i don't script so much Lua.
    I didn't entered to win, just to try script a autofisher since i have never done it.
    I'm more of a C# guy! So not really used to program LUA, yet!
    Thanks for the encouragement! You really made my day!

    // CrazySwe

  4. #14
    Senior Member XtrmJosh's Avatar
    Join Date
    Apr 2012
    Location
    Cambridge, England
    Posts
    1,324
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    The IOCCC might be of interest to you, gentlemen:

    http://www.ioccc.org/
    You cannot fail, so I'm lowering the standard.

  5. #15
    Senior Member Hypn0ticKi11er's Avatar
    Join Date
    Aug 2012
    Location
    NYC
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    When's the next contest?

  6. #16
    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 Hypn0ticKi11er View Post
    When's the next contest?
    Whenever someone has a good idea for one.

  7. #17
    Yinnlos's Avatar
    Join Date
    Aug 2012
    Location
    Leoben
    Posts
    273
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    i=0 while(1)do p=Self.Position()x,y=p.x+i%15-7,p.y+i%11-5 wait(getTileUseID(x,y,p.z).id%4597<6 and selfUseItemWithGround(3483,x,y,p.z)+999)i=i+1 end

    So this is the whole script?

    @DarkstaR @Syntax
    Yinnlos Scripts

    Sold Lvl 271 RP to kelviner1 OK
    Sold Lvl 140 EK to smeg OK

  8. #18
    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 Yinnlos View Post
    i=0 while(1)do p=Self.Position()x,y=p.x+i%15-7,p.y+i%11-5 wait(getTileUseID(x,y,p.z).id%4597<6 and selfUseItemWithGround(3483,x,y,p.z)+999)i=i+1 end

    So this is the whole script?

    @DarkstaR @Syntax
    Yes it does what the base script in the first post does.

  9. #19
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    I wouldn't recommend using it to fish, though. Haha.

  10. #20
    Lifetime Subscriber
    Join Date
    Dec 2011
    Location
    Michigan
    Posts
    2,644
    Mentioned
    81 Post(s)
    Tagged
    0 Thread(s)
    syntax for president no offense nick :C.


    next could be harder? like for example moving the dead bodys when there are bodys stacked (for loot everything)

    idk really

    nice job thought

    edit: or a 100% safe rune shoter as ibot made just ideas..
    Last edited by Y2Quake; 12-05-2012 at 02:41 PM.

Posting Permissions

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