Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpawnee
    • CommentTimeJul 4th 2008
     
    You modificate pawnees travianbot? Great!

    From today till 1. September 2008 you can post you modifications here.

    How can you join the contest:

    1. Write your modification

    2. Write a small description what the mod does and how to install

    2. Send you modificated travianbot and the descriptian to support.openmatchbox at gmail.com

    We will create a new discussion for your mod with the description in it and provide a link to the bot.


    At the 1. September 2008 we will start a poll to vote the best bot.
    • CommentAuthordimas
    • CommentTimeDec 22nd 2008
     
    ###################################
    # Main
    # change the main block code from origin pawnee bot
    #@author : dimas
    # bittenova@yahoo.com
    ###################################


    begin
    puts ''
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts '>>>>>>>>>>>>>> BOT START <<<<<<<<<<<<<<<<<<<'
    puts '>>>>>>>>>>>>>> BOT START <<<<<<<<<<<<<<<<<<<'
    puts '>>>>>>>>>>>>>> BOT START <<<<<<<<<<<<<<<<<<<'
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts ''
    #puts 'Build queue is :'+ sBuildQueue.to_s
    #puts 'CastleId is :'+ sResdId.to_s
    #puts 'EmbassyId is :'+ sEmbassyId
    puts ''
    while true
    for iBuildId in sBuildQueue
    begin # add
    puts ''
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts 'Upgrade Buildingid : '+iBuildId.to_s
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts ''
    if(authorize(http, parser, usrname, passwd))
    puts ''
    puts 'authorize success ...'
    puts 'try to build ...'
    res = build(http, parser, iBuildId)
    else
    puts '(!!!) Login failure'
    puts '(!!!) Login retry'
    retry
    end
    sSleep = rand(sSleeptime)
    puts ''
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts '(!!!) Will be sleep for '+sSleep.to_s+' seconds'
    puts '(!!!) Wake up @:' + (Time.new + sSleep).to_s
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts ''
    sleep(sSleep)
    rescue
    puts ''
    puts '(!!!) retry ... '
    puts '(!!!) reconnect '
    puts ''
    end # add
    end
    end
    rescue
    #iBuildId = iBuildId.next
    puts ''
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts 'last fail buildId : '+iBuildId.to_s
    puts 'Final code section'
    puts '++++++++++++++++++++++++++++++++++++++++++++'
    puts ''
    retry
    end