View Full Version : Wondering if anyone has made some scripts.
GameTester1993
07-29-2011, 02:14 AM
Im looking to make a local watch/Rat watch dog script that will warp all fleet members to a safe spot or POS when a non corp/alliance/blue member comes into local and dispatch of rats in the current grid if they warp in. or if anyone has made any variations of that.
Let me know, thanks in advance.
tehgeek
07-30-2011, 09:01 PM
Making a simple image search for the rats is the easy part, but for the local monitoring, I haven't figured that out yet
GameTester1993
07-31-2011, 08:46 AM
yes well the local monitoring im thinking just having it up one side of the screen and checking the area where peoples portraits are on the right of local and if it finds any reds or neuts warp to SS, but also thinking of having it search each portrait individually because people can have no standing what so ever and class them as a neut if it does notice that there is no icon to indicate their friendliness towards the pilot using this, and if there is so mnay people in local it has a scroll bar, it can at user choice, scroll and check each time, or just stay at SS till it goes back to norm.
Pluckyduck
07-31-2011, 10:10 AM
GameTester1993,
You can set up so that anyone that dont have a standing is set to a red standing. it is newer option.
MouseMan
07-31-2011, 12:06 PM
first thing you have to do is make sure everyone has an icon, that can be any color you decide.
now for monitoring it you can use a simple imagesearch in a given area to look for any of those icons, you can also have it look for the gray of the scroll bar
if any icons found or scroll bar found then execute some function.
GameTester1993
08-01-2011, 04:16 AM
Thanks Plucky i had no idea, and essentially a refined version, thanks mouseMan
GameTester1993
08-01-2011, 07:08 AM
i've started planning all the subs and it's looking pretty good so far, just have to figure out how to communicate to the miners when im warping them away to the SS so they can call in drones and know they are gonna be waiting for another signal letting them know it's safe
LulzBot
08-01-2011, 07:50 AM
Broadcast maybe ?
MouseMan
08-01-2011, 04:07 PM
use the gang chat window, and use imagsearch for specific phrases
Will have to be very specific on the search are as not to have the whole window searched each time or older commands will effect operation
just a thought
Username
08-01-2011, 04:26 PM
use the gang chat window, and use imagsearch for specific phrases
Will have to be very specific on the search are as not to have the whole window searched each time or older commands will effect operation
just a thought
Better still, forget image search and just have it text search in the chat logs, if nothing has changed those logs are updated in real time, then you can even have it search for an appropriate time stamp (Ex: within the last minute?) and you wouldn't even need to have the chat visible on your screen (Saving that space for local which you'd have to use image search for) The time stamp part would take some doing, but other than that it should be easy enough, though I'm not so sure AHK would be the way to go for that part but seems to me someone had a chat monitor that worked somewhat like that at one point... If memory serves it would look for key words (Bot/Macro/Botter/Botting ETC ETC) and signal the macro to GTFO for a while if those words showed up in local.
LulzBot
08-01-2011, 06:17 PM
Hum, yeah the chat log is even better. But could the fact of openning the log file not cause an access error if eve tries to open it back up, or write on it ?
Username
08-01-2011, 08:11 PM
Hum, yeah the chat log is even better. But could the fact of openning the log file not cause an access error if eve tries to open it back up, or write on it ?
From my limited understanding of how this works, as long as you're not writing to the file and just passively reading it you're safe.
LulzBot
08-01-2011, 08:23 PM
From my limited understanding of how this works, as long as you're not writing to the file and just passively reading it you're safe.
Yeah, that should be the way it works. But you never know with Windows.
Its quite funny when you get the error message saying the file is still in use while it isnt :D
It would also be quite stupid if it happens with eve, and messes up something and sends an error report to CCP ... Then sends a second one, and another one ...
GameTester1993
08-01-2011, 11:31 PM
well screen sapce isn't important (especially because ill be using a 1650x1050 screen with this little guy), Local is gonna be along the entire side of one side, and overview and other such stuff will be on the left. i won't need P&P open because i will be using the little marker up the top left next to system name for BM warping. i will need to also figure out a method of calculating how big the scroll bar is. i might just use image search in Fleet chat for the miners as this would be the easiest Method for the moment. i will just have to make sure the window is small enough to hold only 1 body of text from the watchdog at a time, maybe mix it up a little with varying ones to send.
Username
08-02-2011, 04:49 AM
Yeah, that should be the way it works. But you never know with Windows.
Its quite funny when you get the error message saying the file is still in use while it isnt :D
It would also be quite stupid if it happens with eve, and messes up something and sends an error report to CCP ... Then sends a second one, and another one ...
I don't think it's an issue... but I guess you could just write the commands to a shared text file and have the other clients check it from there, that'd completely bypass Eve which is likely to avoid complications, Added bonus is that you'd be able to have the bot clear the text file before writing a command to it so that'll make it easier to avoid repeating old commands.
Also, in order to avoid complications with the network sharing between multiple computers you could mount the share as a "Network Drive", More info available here:
http://support.microsoft.com/kb/308582
The link is for Windows XP but Vista/7 both have similar functions and so does linux and mac, It's just a matter of knowing which OS you'll be using.
A "Network drive" Can be accessed much like a normal drive under windows so that will make things a tad easier as far as getting AHK (OR w/e language you plan to use) to locate the file.
(Yes, that was basic stuff and you probably already knew that, but I figure it may help someone somewhere at some point)
MouseMan
08-02-2011, 07:13 AM
you could just set a value in a shared ini file and have the other bots load the value every so often and if value =1 then they are in warp to safe spot, if value =0 they should continue doing there thing. Tie the local check into writing the value to the ini file after each check if you are having a hard time setting up the shares use dropbox will work pretty fast for a small file.
just some thoughts
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.