Please note, that the follow script is confusing as hell. Chances are it WONT work as copy and paste. But you might be lucky as I used it for awhile.
I do heavily recommend over-basic experience with AutoIt for this one.
Onto the script::
The Client must be Windowed (might work in fullscreen, never tested)
PasteBin: View Download
Few notes, if (when) it doesn't work, change all the settings to the minimum possible. Background range exempt (plasma count as "background") this will help prevent clicking/attacking demons in the field (i recommend using an alt that you don't mind have die over-and-over, the script auto-revives on field)
Ctrl+Spacebar is a generic "on"/"off" for the script, and "Pause/Break" key simply pauses the script (I constantly switched between clients and scripts, and this one in particular would cause me to spin around :P
If the script is ON and UNPAUSED and doing nothing but spinning in place despite there being plasma try the following:
- (Most common) Adjust the brightness settings IN GAME!
- Update the colour of the plasma using the AutoIt Window Info tool (take a screenshot and get a solid plasma-color from that, careful not to make it too close to a "captured" plasma)
Please note that the script doesn't work minimized or out of focus (it simulates keypresses, and mouse movements to the entire windows platform).
Also there is a timer in the script to "auto log off" after X amount of hours, so you don't simply run around plasma locking and get banend after doing it for 8hours straight ;D
The script doesn't account for going from 11pm (2300) + 2 hours (1 am // 0100). It waits until 2500 to logoff, which doesn't exist. Simple flaw, but I had no personal reason to remedy it.
The "Sleep [ ]" box does nothing, I was going to have a use for it but never bothered.
That covered most of it, just add "ConsoleWrite("Blah")" if you're trying to find out where the program stops working is the simplest imo.
Oh, and definately use Scite for editting/running.
Whew, think I covered most of it.
Theres also a good chance it will attempt to click your 'toolbar' and 'chatbar'. Minimizing them works.
Subscribe to:
Post Comments (Atom)
I would love to try this out but the links to your script aren't working.
ReplyDeleteI have never worked with autoIt before but now I am very interested and I hope to learn how to use it.
Also, I'd like to thank you for your multi-client tutorial.
Keep up the good work and I hope to see more from you. Take care.
This comment has been removed by a blog administrator.
ReplyDeleteWell it seems just copying your script wont work.
ReplyDeleteI compiled and ran it with Scite, but it didn't do anything it just showed the window with the sleep box.
Oh well guess I'll have to learn how to build one on my own. But Thanks again for putting this up. I greatly Appreciate it.
Hit Control and Spacebar simultaneously to turn the script "on"
ReplyDeletethen hit pause/break to start/pause the script.
It's annoying, yes. search for $Toggle and get rid of it if you want.
The script does work, just has several 'kinks' to it :P
As for being new to autoIt, I'd suggest trying to create a simple script first, like one for spamming to raise expertise levels (ie, mashing "1" every x seconds to raise magic and then hitting "2" to use a candy for replenishing mp).
I don't play much, can't promise I'll be doing much.
If people are STILL having problems, I can post screen shots of exactly what I am doing. Possibly download fraps/make a vid. But that depends on me being bored.
THANK YOU FOR THIS! please keep up the good work it means alot i really need this bot i cant buy ap cuz im poor so i need macca
ReplyDeleteDo you think you can make a lvling bot you know to fight not for runs but field lvling
ReplyDeletei got it to find plasma and click on it but it wont click on the grey rectangle to connect with the plasma the orange line just goes back and forth but doesnt click on anything them it times out and connetion is failed
ReplyDeletere: THANK YOU~
ReplyDelete- Welcome, I never bought AP either. Plenty of legitimate ways to earn a mil though :P
re: Do you think~
- Leveling bot? Possible, but not happening. Much easier to making an expertise-grinding bot and the fly-through dungeon runs with high/maxed expertise.
re: i got it to find~
- Finding / Clicking plasma is usually the main issue, but nonetheless an easy fix!
All you have to do is replace the colour of the orange bar and the box it intersects with.
My variables are hard to follow, but $Color[0] is the 'Orange Bar' that goes back and forth. While $ConnectionColor is the box in the background you're supposed to "intersect".
Simply take a screenshot, and run AutoIt Window Info to get a new colour based on the screenshot (mouse_color)
-OR-
After " ;Locate Box" add this line 'ConsoleWrite("-Connecting with plasma." & @CRLF)' So you may physically see if the script is waiting to connect.
If it's not waiting, change the line to 'ConsoleWrite(PixelGetColor(243,491))' and replace the value of color[1] with that. color[1] is the variable used to check to see if the 'start' button is highlighted // able to be pressed.
Hopefully that works.
I trust the resolution is windowed @ 1028x768. Else you'll have to change all the x/y coords yourself. All my scripts are based off that.
~g'luck
i did what you said but it doesnt work still
ReplyDeleteHmm, the only thing I can think of is that it isn't searching for the right colours.
ReplyDeleteTry and see if it's any of these lines which are not finding the proper colour (make an else case):
If PixelGetColor(243,491) = $Color[1] Then
;Locate Box
$Connection = PixelSearch(262,485,789,494,$ConnectionColor,15)
If Not @error Then
$Connector = PixelSearch(262,485,789,494,$Color[0],35)
If Not @error Then
They all require a specific colour.
$ConnectionColor is the grey box
$Color[0] is the Orange Bar
$Color[1] is the Button that gets clicked at exactly 243,491. The button must be not be highlighted but the plasma-game must be active (orange bar moving)
Uhmm,, how to make this bot works? ? i really dun have any idea when i downloaded the scripts
ReplyDeleteit doesnt recognize the color of the plasma.. and what should i change the brightness too and how do i change the script to match the plasma color i anayzed with autoit window info
ReplyDelete;Plasmas:
ReplyDelete; 0xD8A6B0 - White
; 0x9ACF75 - Green
; 0x3869D8 - Blue
; 0xEA5E7D / 0xE6498A - Red
~
$PlasmaColor = 0x3869D8
You want to change the 0x3869D8 to whichever plasma you're farming.
The comments are there for my reference
As for brightness, put it at 0 (far left) and let the bot "spin" (uses a keyboard stroke) to slowly move the brightness gauge higher. If it stops spinning and clicks a plasma, that's the brightness.
To make the bot work, get used to AutoIt.
If you don't know how to use auto it, then you'll simply be more confused.
For the most part, the bot works. It recognizes the Plasma colours and goes to connect with them. However, I just can't get it to connect for anything. I've tried using the ConsoleWrite(PixelGetColor(243,491)) and ConsoleWrite("-Connecting with plasma." & @CRLF) statements like you said, but unless I've missed something, I'm confused as to where to see the data ConsoleWrite is supposed to display.
ReplyDeleteI'm also slightly unsure if I'm supposed to put those statements on a line just below ;Locate Box or on the same line after it. But judging from the other coding, I'd say it goes below it.
Hmm, okay got it to move me and succesfully find and click the plasma, but the problem is getting the orange bar to stop on the connect rectangle.
ReplyDeleteAwesome bot, by the way, even if it's not working currently for me.. xD
(basically having same problem as above anonymous)
I see, I see.
ReplyDeleteWell I can't troubleshoot those 100% for you (sorry), but if the most of it works for you, then you might be able to get it working yourself :)
ConsoleWrite("") writes to the Output on Scite.
and... here I highlighted the likely coding that will need updating for that orange bar.
The math /should/ be fine, just make sure the x,y coords havn't changed and the pixel colours are correct.
Here is a screenshot highlighting it all:
LARGE IMAGE!
I pointed out what I could, MSPaint ftw (I have photoshop too, but this was more fun ;P ).
For whatever reason, it just doesn't display anything in the Output Box. I am, however, wondering if this isn't related to the $Color[1] = 14406143 statement being incorrect. That probably isn't the case, but I'm grasping at straws here. Changing the various around doesn't seem to be helping, either, but since I can't get anything to show up in the Output Box I can't tell if I'm doing it right or not.
ReplyDeleteThis is frustrating, but I don't wanna give up, you know? This'd be extremely useful if I can get it to work. Oh, and I'm trying to connect with Red Plasmas if that helps at all.
$Color[1] = 14406143
ReplyDelete^Is the "button"'s highlighted colour.
To check it, hit print screen with Megaten open, and paste it into MSPaint.
Don't use the actual screenshot, as that doesn't have window's borders around it.
After that, run Autoit Window Info to get the color at 243,491. And check it to color[1].
You can also replace the following and hit f2 ingame to get color[1]
Func _getColor()
$Mouse = MouseGetPos()
ConsoleWrite( "X: " & string($Mouse[0]) & " Y: " & string($Mouse[1]) & @CRLF)
ConsoleWrite( string(PixelGetColor($Mouse[0],$Mouse[1])) & @CRLF)
EndFunc
TO
Func _getColor()
ConsoleWrite( "X: 243 Y: 491 Colour:")
ConsoleWrite(string(PixelGetColor(243,491)) & @CRLF)
EndFunc
Just hit F2 when the orange bars start moving. It'll write to the console. If the console STILL is not working, then try a message box (msgbox).
If color[1] matches fine, takes a screenshot of the 'connection bars' and check their colors via autoit window info aswell. the x/y coords should be fine, so only the colors might be wrong.
i did ctrl + space and the script did say "toggle true" but theres no spinning or start collecting in the game..just doesnt move
ReplyDeletestrange
actually i starting making it to work, but problem is does it not auto "walk" at all the character? because i need to "walk" the character close to plasma in order to make it work
ReplyDeleteAlright i got it to work so far, it finds the plasma, clicks the button when it hits the orange bar, but it wont pick up the loot unless i pause it and do it my self, was it made to do that part?
ReplyDeletehey im a real noob at this
ReplyDeletei juss converted the txt file in exe in auto it
& now im stuck with the sleep box & a msgbox that says client is paused
i juss want a simple chart for the hot keys of the bot
i apreciate wat ur doin & thank u for such a noble act
heya..sir.. why the script says paused.. when i click ctrl space nothing happens??
ReplyDeleteThis script is a bit off on the colors and a few timing quirks, but it did make a good starting point. With a little patience, and a little programming practice, i was easily able to rebuild it successfully. As well as make a second one for basic battling and looting of safe demons in the area.
ReplyDeleteI took a long hiatus from Megaten, and I also switched to Windows 7, which skewed window positions quite a bit so my old bots don't work for me :P
ReplyDeletepda:
Press your [Pause Break] key on your keyboard.
anon (last):
Thank you, it was never meant as a final version, and hearing that it was used to be built upon is exactly what I wanted to be done, as it was how I learned.
The other megaten plasma bot I uploaded does away with things such as the "Sleep box" and other things that were useless.
Yes, it was simple to work with once i'd read the code a few times. It's similar enough to most programming lang's. I required the sleep-timers to organize events, and since my pc is slow, give it time to process cleanly. Also enhanced the death-detection into an auto-heal/MP for me and the active pet. Lets me tour runs without worrying about things.
ReplyDeleteNo problem, granted auto-recovering WILL be an actual feature sometime in the future for NA.
ReplyDeletesorry, im really a noob at this, but, could u plz explain to me how i do it? :) i mean like, from the start..
ReplyDeletesorry for this noobish question :)
where do i use this? how do i convert it to exe?
ReplyDeleteHey, Kevin.
ReplyDeleteI am very interested in helping with this project, I have written one myself, and I think if we combined our knowledge and codes we could actually make this great.
Please leave me an Email at JustADeclaration@gmail.com and i'll show you mine. ^.^
My code is up there.
ReplyDeleteAs for Anon, google AutoIT.
I don't do collaborations.
Hey Kevin!
ReplyDeletei must tell u this is very good work!
i dont understand how u guys cant get it to work tho.. u just need to change ur brightness and everything's fine
altho the only problem is that its a bit slow to detect plasmas and that it cant loot things...
I also noticed that at line 233 u wrote Cohrds..idk if its good or not :P
So yeh... i guess its not really good when u just lock plasmas xp
hey is this still working?:) if it is what program do i use to enable the script?
ReplyDeleteHello? Question? Sorry noob here.
ReplyDeleteAfter adjusting the brightness, it clicks one plasma and nothing follows. It just keeps spinning. xD
I can't get this to work. Usually I can't get the script to unpause while the game is running. On the one time I was able to, though, it just wouldn't do anything.
ReplyDeleteIs there any way to know where the window is placed onscreen by default, because I feel like that might be a part of my problem?
On it's own, the script won't work much. if you have any coding savy, it can easily be used as a base. If youi have no code savy at all.. don't bother. It's not a miricle end-all bot, it was a preliminary attempt that needs work to function.
ReplyDeleteLearn, Experement, Fiddle..
Even now, i adjust it tiny bits constantly as i use it. Every run out isn't the same. and it will need tuning.
Too lazy to log in,
ReplyDeleteLast Anon (^) has it right.
Also if you didn't notice, I've quit Aeria Games' games in all entirety.
Customer service goes a long way y'know?
I was working 7/days a week (8 to 13hours a shift too) from may until just last week. had no time anyways.
There was a point where a little fine-tuning could get the bot to work 100%, filled my inventory numerous times.
Unfortunately without buying inc of mastery 5x/10x (several of them), even 100k iron/plastic/bronze doesn't get Blades to a high enough rank to make pay for the incense.
+ You've gotta level.
+ Invest in a full kaiwan tarot-set with +luck and vit/int gear.
I even had the Score Crown, Pyro Hagoita, other FCs and syringes.
Enjoy if you want, I've gone back to helping random n00bs with simple questions on forums.
I suggest everyone quit, play SC2 for a month, and FF14 until whatever new mmo-entices you.
//I still lulz at my deleted nocturne set//
(same Anon from near the top)
ReplyDeleteHonestly, it's an easy to understand scripting language for anyone who's touched on any programming. even html. The scripts posted are crude, but with practice and recoding, they work.
I even made subroutines to auto-battle simple demons when encountered. Don't ask for the scripts.. they won't make you a pro or cheat your way to the top.
well to get it to loot just add to the scrpt where the cordinates are on the take all option its pretty easy and if you want you can make it take certain things with pixel detection
ReplyDelete