Signup Now
Results 1 to 2 of 2
  1. #1
    Free User Halpine's Avatar
    Join Date
    Apr 2015
    Location
    Kentucky, USA
    Posts
    41
    Reputation
    10
    Rep Power
    0

    knights trainging, anti idle and eat food.

    i need a script for knights skull training.

  2. #2
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Halpine View Post
    i need a script for knights skull training.
    eatfood:
    auto(1000,5000)
    eatfoodfull()


    AntiIdle:
    init start
    -- local SCRIPT_VERSION = '1.0.2'
    local idletime = {from = 180000, to = 600000}

    -- Do not change anything below
    local alldirs = {'n', 'e', 'w', 's'}
    local lastmove = 0
    idletime.current = math.random(idletime.from, idletime.to)
    init end

    auto(200)

    local isidle = ($standtime >= idletime.current and ($timems - lastmove) >= idletime.current)
    foreach newmessage m do
    if m.type == MSG_RED and m.content:match('disconnected') then
    isidle = true
    end
    end

    if $connected and isidle then
    local selfdir = $self.dir

    local dirs = {}
    for _, j in ipairs(alldirs) do
    if j ~= selfdir then
    table.insert(dirs, j)
    end
    end

    turn(dirs[math.random(1, #dirs)])
    turn(selfdir)

    idletime.current = math.random(idletime.from, idletime.to)
    lastmove = $timems
    end
    Helped you? REP+

 

 

Posting Permissions

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