Signup Now
Results 1 to 4 of 4
  1. #1
    Free User
    Join Date
    Apr 2014
    Posts
    17
    Reputation
    13
    Rep Power
    0

    Knight hunting partner

    I got bored and needed to make my EK auto res crap
    so i made this script

    Let me know if there's anything you can think of to add to it

    ( Just put it in Scripter->Persistent )

    init start
    -- Lower case names only
    friends = {"friend one", "friend two"}
    local commands = {
    res = {
    friendOnly = true,
    action = function(from)
    cast("exeta res")
    waitping()
    end
    },
    follow = {
    friendOnly = true,
    action = function(from)
    follow(from)
    end
    },
    stay = {
    friendOnly = true,
    action = function(from)
    keyevent(VK_ESCAPE)
    end
    },
    attack = {
    friendOnly = true,
    action = function(from)
    setsetting('Targeting/Enabled', 'yes')
    end
    },
    stop = {
    friendOnly = true,
    action = function(from)
    setsetting('Targeting/Enabled', 'no')
    keyevent(VK_ESCAPE)
    end
    },
    w = {
    friendOnly = true,
    action = function(arg)
    dist = 1
    if tonumber(arg) ~= nil then
    dist = tonumber(arg)
    end
    moveto($posx, $posy-dist, $posz)
    end
    },
    a = {
    friendOnly = true,
    action = function(arg)
    dist = 1
    if tonumber(arg) ~= nil then
    dist = tonumber(arg)
    end
    moveto($posx-dist, $posy, $posz)
    end
    },
    s = {
    action = function(arg)
    dist = 1
    if tonumber(arg) ~= nil then
    dist = tonumber(arg)
    end
    moveto($posx, $posy+dist, $posz)
    end
    },
    d = {
    friendOnly = true,
    action = function(arg)
    dist = 1
    if tonumber(arg) ~= nil then
    dist = tonumber(arg)
    end
    moveto($posx+dist, $posy, $posz)
    end
    }
    }
    init end
    auto(200)
    foreach newmessage m do
    comm, arg = m.content:match('(.-) (.+)')
    if comm == nil then
    comm = m.content
    arg = m.sender
    end
    if commands[comm]~=nil then
    c = commands[comm]
    if not c.friendOnly or (c.friendOnly and table.find(friends, m.sender:lower())) then
    c.action(arg)
    end
    end
    end



    I.E

    follow -> follow me
    follow NAME -> follow player with NAME
    stay -> stop follow
    attack -> turn on targeting
    stop -> turn off targeting and stop attack
    res -> cast exeta res

    Use wasd to control the char

    w -> walk 1 spot north
    w 30 -> walk to pos 30 spots north (using pathfinding, not just step north)
    same for a,s,d in other directions



    If there's any other commands you think should be added let me know
    This was just a "bored between classes" code so don't be too critical lol
    Last edited by Leonardo; 09-03-2014 at 07:34 PM.

  2. #2
    Helper StaR's Avatar
    Join Date
    Dec 2013
    Location
    Manchester
    Posts
    713
    Reputation
    50
    Rep Power
    22
    This is quiet handy, haven't use it yet but I will in WZ!



  3. #3
    Free User
    Join Date
    Sep 2014
    Posts
    22
    Reputation
    10
    Rep Power
    0
    not working....

  4. #4
    Free User ash katchup's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    144
    Reputation
    15
    Rep Power
    21
    The script is quite interesting!

    I'll give a try later, but it seems to work.

 

 

Posting Permissions

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