MurviD Posted September 21, 2005 Posted September 21, 2005 (edited) Hiya I created a minor bot for FFXI, a kinda trade bot, designed for a quest where you have to trade godly amounts of small cheap vegetables lol.Anyways, here the code comes >>Sleep(1000)MsgBox(0,"ffxi trade_Bot","alt+tab to ffxi, push up the menu and highlight "trade", hit esc and alt tab back, press Ok and alt tab in to ffxi, enjoyi")Sleep(5000)$var = 0Opt("SendKeyDelay", 400)Do Send("{ESC 3}") Send("{F8}") Sleep(2000) Send("{NUMPADSUB}") Sleep(1000) Send("{ENTER}") Sleep(500) Send("{ENTER}") Sleep(500) Send("{DOWN down}") Sleep(3000) Send("{DOWN up}") Sleep(500) Send("{ENTER}") Sleep(500) Send("{LEFT down}") Sleep(500) Send("{LEFT up}") Sleep(300) Send("{ENTER}") Sleep(500) MouseClick("left", 176, 87, 1) Sleep(1000) Send("{ENTER}") Sleep(2000) Send("{ENTER}") Sleep(1800)Until $var = 1Basically, it opens up menu, chooses to trade and selects which items to trade. After that it accepts some dialogues, and then starts over.Now, first time it always works nice, SECOND time it ignores the sleep part and pressing subtraction-mark at numpad. This results in standing near the npc looking all possible ways and then starts to talk with him. Fortunately, the other players cant see that Im looking around. Anywho, third time it works perfect, strangely enough, and so it goes on, half of the time failing and half of the time succeeding.Now, it gets the job done without me being there.. So thats not the proböem (well, it could go a bit faster but .. hey, nothings free right? ;p) so mainly its me wondering why this isnt working. And, hopefully learning something =pIve tried to search for this but cant find anything similar, if there is and Ive missed it Im terribly sorry, would be great if you could post a link to that thread then .Ive also tried looking through help-file but hasnt found anything about this particular thing, please post a quote/tell me which example/file it would be in that case Cheers, and thanks in advance ^^/MurviDEDIT: argh, I found out myself, doh ><had to increase the bold sleep commands to 4000 each, and it worked. Really sry for taking up space ; ;MouseClick("left", 176, 87, 1) Sleep(1000) Send("{ENTER}") Sleep(2000) Send("{ENTER}") Sleep(1800)Until $var = 1P.S. For those whom are interested, its for "Only The Best" quest in Selbina, get as much millicorn as possible, autosort inv and start close by him. cheersEDIT: forgot, you have to change the mouse coords to ones that works with your res, ive got 1400*1050 (its supposed to match the "ok" button for trade). Im using the mouse because my FFXI refuses to accept the keyboard-arrows from autoit lol, only !/5 or so is really executed (yes ive tried with different sleeps ^^.Thx for the replies =) Edited September 21, 2005 by MurviD
Valuater Posted September 21, 2005 Posted September 21, 2005 maybe try this Send("{-}") or Send(chr(45)) ??? 8)
seandisanti Posted September 21, 2005 Posted September 21, 2005 Hiya I created a minor bot for FFXI, a kinda trade bot, designed for a quest where you have to trade godly amounts of small cheap vegetables lol.Anyways, here the code comes >>Basically, it opens up menu, chooses to trade and selects which items to trade. After that it accepts some dialogues, and then starts over.Now, first time it always works nice, SECOND time it ignores the sleep part and pressing subtraction-mark at numpad. This results in standing near the npc looking all possible ways and then starts to talk with him. Fortunately, the other players cant see that Im looking around. Anywho, third time it works perfect, strangely enough, and so it goes on, half of the time failing and half of the time succeeding.Now, it gets the job done without me being there.. So thats not the proböem (well, it could go a bit faster but .. hey, nothings free right? ;p) so mainly its me wondering why this isnt working. And, hopefully learning something =pIve tried to search for this but cant find anything similar, if there is and Ive missed it Im terribly sorry, would be great if you could post a link to that thread then .Ive also tried looking through help-file but hasnt found anything about this particular thing, please post a quote/tell me which example/file it would be in that case Cheers, and thanks in advance ^^/MurviDfunny. last night i started working on a script to do the exact same thing because i have a few hundred moss to trade. i started it too late though, and bedtime came before i was able to finish it. i'll post the code when i get home and finish it.
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