Sign in to follow this  
Followers 0
MurviD

Ignores sleep command in loop

3 posts in this topic

#1 ·  Posted (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 = 0

Opt("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 = 1

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 =p

Ive 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 :P.

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 :mad2:

Cheers, and thanks in advance ^^/

MurviD

EDIT: 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 = 1

P.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. cheers

EDIT: 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 ^^:oops:.

Thx for the replies =)

Edited by MurviD

Share this post


Link to post
Share on other sites



maybe try this

Send("{-}")

or

Send(chr(45))

???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 =p

Ive 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 :P.

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 :mad2:

Cheers, and thanks in advance ^^/

MurviD

funny. 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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0