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