main.lua stucks
Started by Seekenn




3 posts in this topic
Seekenn
Junior Member

Moonrock

0
32 posts 8 threads Joined: Jan 2022
01-04-2022, 08:29 AM -
#1
So, as it is in "LUA Scripting.txt", i made a main.lua with a scripts to use.
In result bot uses MWD on approach to ores, but not doing anything at all, it is all it executes.
How do i fix it? (it's example mwd file, soo it should be working)
uid0
Administrator

Administrators

3
401 posts 36 threads Joined: Feb 2021
01-05-2022, 01:03 PM -
#2
(01-04-2022, 08:29 AM)Seekenn Wrote: So, as it is in "LUA Scripting.txt", i made a main.lua with a scripts to use.
In result bot uses MWD on approach to ores, but not doing anything at all, it is all it executes.
How do i fix it? (it's example mwd file, soo it should be working)

If you name it main.lua it will replace ALL the bot logic, if you want to use specific scripts on some actions you have to specify in the comment when to run (in that file you can find ther events).

Ex [this runs when ganked]: 
Code:
-- run_on: on_gank
-- author:
-- description:

function moonrock()
SendTap(1125, 575)
SendTap(1150, 575)
SendTap(1070, 575)
SendTap(990, 575)
end
[Image: moonstats.php?user=uid0]
Seekenn
Junior Member

Moonrock

0
32 posts 8 threads Joined: Jan 2022
01-07-2022, 12:52 AM -
#3
(01-05-2022, 01:03 PM)uid0 Wrote: If you name it main.lua it will replace ALL the bot logic, if you want to use specific scripts on some actions you have to specify in the comment when to run (in that file you can find ther events).

So how can i make mine barges to mwd to a nodes with all others functions working?
uid0
Administrator

Administrators

3
401 posts 36 threads Joined: Feb 2021
01-07-2022, 03:43 PM -
#4
(01-07-2022, 12:52 AM)Seekenn Wrote:
(01-05-2022, 01:03 PM)uid0 Wrote: If you name it main.lua it will replace ALL the bot logic, if you want to use specific scripts on some actions you have to specify in the comment when to run (in that file you can find ther events).

So how can i make mine barges to mwd to a nodes with all others functions working?

use on_asteroid_approach as trigger. You can use the script above, you can name it whatever you want and it will detect it as long it has the run_on flag set and it's nin the /lua dir
[Image: moonstats.php?user=uid0]


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bot stucks after a few hours of working Seekenn 6 336 01-11-2022, 08:58 PM
Last Post: uid0

Forum Jump:


Users browsing this thread: 1 Guest(s)