Sign in to follow this  
Followers 0

Fusion Is A Beautiful Thing

20 posts in this topic

Posted

Ok, I've managed to really fiddle around with some stuff and come out with a working 1024x768 autofish and *working autosort* script.

All the credit for this really belongs to Ealric because it's his script that I've modified, and to Fishinforgils little 1024x768 Mouse pointer sorter in my "Autosort problems" thread.

I added his sorter into Earlics script and turned on hardware mouse (which I didn't try the first time) and it seems to autosort on it's own. Now if I can just get a mithran rod I'd be set B)

For those of you with autosort problems, I'd suggest trying this method out.

I'm hesitant to post the script, because now I've become a little paranoid myself :whistle:

Share this post


Link to post
Share on other sites



Posted

Ok, I'm still playing around with this and for the most part it works just fine, however, the autosort is something I'm still having a bit of a problem with.

It DOES work... sometimes...

Here's what I got

Func autosort()

AutoItSetOption("SendKeyDelay", 225);

Sleep (0125);

Send ("!i");

Sleep (0500);

Send ("{NUMPADADD}");

Sleep (0250);

Send ("{ENTER}");

Sleep (0250);

MouseClick("left", 955, 121); Click Yes

Sleep (0250);

Send ("{ESCAPE}");

Send ("{ESCAPE}");

Send ("{ESCAPE}");

Sleep (0125);

EndFunc

I know this is standard fare and I put that extra escape at the end on purpose. Just in case.

However, sometimes, when I pull something up, instead of hitting Alt-1, it hits ENTER first and brings up the menu at the bottom left with CHAT - MAGIC - ABILITIES - FISH etc etc

I'm trying to figure out WHY, but I can't.

Here's the part of the script where it's in.

If PixelGetColor(228,735) = 16777215 AND PixelGetColor(200,735) = 16777215 AND PixelGetColor(175,735) = 16777215 Then

AutoItSetOption("SendKeyDelay", 40);

Sleep(Random(600,1000));

Send("{ENTER}");

Sleep(6000);

autosort()

Sleep(2500);

If PixelGetColor(128,735) = 16777215 AND PixelGetColor(74,1168) = 16777215 Then

$logtime = $logtime + 1;

EndIf

Sleep(3000);

$biteyes = 1;

$sortnow = 1;

EndIf

Earlic should recognize this, because it's his. The fishing part itself works PERFECTLY. I couldn't ask for anything better.

However, something is just not right with the autosort. It's on the tip of things... it's BEGGING to get working properly there's just something missing. :whistle:

If you have a possible solution, lay it out for us B)

Share this post


Link to post
Share on other sites

Posted

Alright I got it working just perfect now.

The problem was that the script wasn't waiting long enough for the fishing "Emote" to cool down. Typically when you catch something, you go through the motion of CATCHING the fish, then putting your rod away. This takes time, however, after reeling the fish in, it only waits 6 seconds (I.E Sleep (6000))

I've increased this number to 9 seconds (Sleep 9000) and the autosort works like a charm now. Just thought I'd update.

Share this post


Link to post
Share on other sites

Posted

Been there done that.

Ive had a working version for a week now =P

Share this post


Link to post
Share on other sites

Posted

Hey good for you, I'm just trying to help out others, you know, GIVE TO THE COMMUNITY. You should try it.

Share this post


Link to post
Share on other sites

Posted

I have.

Share this post


Link to post
Share on other sites

Posted

Good job Breckenridge! AutoSort seems to give a lot people fits. :whistle:

My script was messing up for the exact same reason as yours was. I kept forgetting about all the little delays FFXI puts into the actual fishing animations.

Now I'm just trying to figure out a way to implement a little script that plays a .wav everytime someone sends me a /tell. At first I thought it would be fairly easy till I realized that since the game puts everyones name at the beginning of the sentence, it's difficult to use exact pixel locations as a trigger.

Share this post


Link to post
Share on other sites

Posted

Actually, you can just search a row of pixels..

Basicly, your just looking for a color.

Use Or's Not and's.

PixelGetColor(x,x) = x OR PixelGetColor(x,x) = x OR PixelGetColor(x,x) = x

Autoit does use OR's right? LoL

Share this post


Link to post
Share on other sites

Posted

Ah-hah! Didn't know about that one since I'm pretty new to this still. Many thanks Neesnu!

Share this post


Link to post
Share on other sites

Posted

You could probably use the PixelSearch() command too. I haven't figured out the exact sentax for it yet but it should work in theory. It searchs a box to see if it contains the specified color anywhere.

I have a working rusty item and crayfish drop script also ^^

Share this post


Link to post
Share on other sites

Posted

I didnt know of the search, thats probably a great solution.

Share this post


Link to post
Share on other sites

Posted

Yeah, PixelSearch sounds like a good solution to a lot of thing things I want to do. Now to just figure out the syntax.

Of course it would help if I wasn't at work, too! Must get home to test!

Share this post


Link to post
Share on other sites

Posted

If you figure the syntax, you gotta let us know how it works.

Share this post


Link to post
Share on other sites

Posted

atleast give fair credit if you are gunna post scripts, the whole pixelgetcolor part is mine, except earlic changed some timing. Everyone is still using the same pixel locations to wow... :whistle:

Share this post


Link to post
Share on other sites

Posted

Ummm.. I could have SWORN someone gave you the IDEA to use "Getpixel"

Share this post


Link to post
Share on other sites

Posted

yeh teh IDEA but not the code, or even the pixel locations :whistle:

im not yelling at anyone or even trying to point out much. It doesnt really matter to me.

Share this post


Link to post
Share on other sites

Posted

I never took credit for anything, I'm just giving out possible solutions.

Share this post


Link to post
Share on other sites

Posted

Well my attempts to find a working syntax for PixelSearch were unsuccessful. I couldn't even really try out the OR statements because after closer examination, the pixel colors in my /tells were very screwed up. For each letter there was a ton of varying shades of red, with almost no two pixels being of the same shade.

Has anyone ever messed with the PixelSearch command and can offer some help on how to properly implement it?

Thanks!

Share this post


Link to post
Share on other sites

Posted

yeh teh IDEA but not the code, or even the pixel locations  :whistle:

im not yelling at anyone or even trying to point out much. It doesnt really matter to me.

Why are you even still here? Don't you have money to make?

Share this post


Link to post
Share on other sites

Posted

This is a working autosort. The up and down function works, perfectly.

**NOTE: i didnt code the following. found it in one of the many fishing posts ; ;

Func autosort()
Sleep (0200);Sleep for a little bit
AutoItSetOption("SendKeyDelay", 50);slow key delay a bit
Send("{ESC}");
Sleep(200);
Send("{ESC}");
Sleep(200);
Send("{NUMPADSUB}");
Sleep(500);
Send("{ENTER}");
Sleep(500);
Send("{NUMPADADD}");
Sleep(500);
Send("{ENTER}");
Sleep(1000);
Send("{UP down}");
Sleep(200);
Send('{UP}');
sleep(200);
Send("{UP up}")
Sleep(500);
Send("{ENTER}");
Sleep(500);
Send("{ESC}");
Sleep(500);
Send("{ESC}");
Sleep(500);
Send("{ESC}");
AutoItSetOption("SendKeyDelay", 23);slow key delay a bit
Sleep (0200);Sleep for a little bit
Send ("/equip ammo ""Little Worm""{ENTER}");equip bait
Sleep (0200);Sleep for a little bit
Send ("/equip ammo ""Insect Ball""{ENTER}");equip bait
EndFunc

If you speed it up too much, it screws up after a while.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.