ZoLeN Posted January 4, 2007 Posted January 4, 2007 Hello everyone, This is the first time i am attempting to write a script for auto it, so far it works perfect. I would just like to add a few things. CODEOpt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("Dark Age of Camelot, Copyright © 2001-06 Mythic Entertainment, Inc.","") If Not WinActive("Dark Age of Camelot, Copyright © 2001-06 Mythic Entertainment, Inc.","")Then WinActivate("Dark Age of Camelot, Copyright © 2001-06 Mythic Entertainment, Inc.","") WinWaitActive("Dark Age of Camelot, Copyright © 2001-06 Mythic Entertainment, Inc.","") $craftn = 250 ;set number of items you wish to make While $craftn > 0 Send ("2") ;button of item you wish to craft Sleep (1500) MouseMove(860,315) ;Open inventory first slot in 1024x768 resolution MouseDown("left") MouseUp("left") Send("{CTRLDOWN}s{CTRLUP}") ;Must have a merchant targeted in order to sell Sleep (42000) ; Delay in milliseconds $craftn = $craftn - 1 WEnd Send ("/quit") Send ("{ENTER}") ;Log off when through with batch of items great for overnight crafting I would like to make a GUI, to change the 2nd sleep time. To enable or disable the mouse move section, and also to change the number of $craftn. Any help and or tips would be much appreciated. Thanks. -Z
Eliah Posted January 4, 2007 Posted January 4, 2007 instead of mousedown then mouseup, use mouseclick instead of ctrldown s ctrlup, use ^s instead of 42000 use ($secs * 1000) and then whenever you figure out changing a variable with a GUI you can easily modify $secs I reccommend for gaming scripts that you put in some amont of randomness so that the gameserver doesnt notice that you are being scripted. (most games dont appreciate scripted players, so hiding your scriptedness is a good idea. look up Random() and apply it to your timing functions. youre going to need an exit scenario, as it is that code wont care if DaoC is closed, it will keep clicking on that one spot 250 times!! so youll want to put in an if $exiting then exitloop endif and set $exiting at an appropriate time in your GUI. oh, and look up mousemove's options, youll want to make it move as fast as possible.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now