revised Itemfarm.mac request

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Shark
a lesser mummy
a lesser mummy
Posts: 47
Joined: Wed May 21, 2003 12:23 pm

Post by Shark » Sat May 31, 2003 1:00 pm

MoveMouse is called if you supply x y coords (they are not verified to be within the limits of your current resolution), or at the end of parsemouseloc ONLY IF you supplied a valid location. Otherwise it dumps an error message and does not try to move the mouse.

It would be better to compute the area you want to click in within your macro function and just call click with the computed x and y locations if you are trying to click everywhere within an area until you either complete the area finding nothing or something shows up on the cursor.

Doing this manually a few times you can readily establish what are of the screen to look for the item in and then code it into your macro.

If you manually position the mouse and then do

/echo Mouse is at $mouse(x) $mouse(y)

you can find use these returned values at the spots at 4 corners around the spawn and again in the middle of the spawn itsself. Do this a few times after having the above macro run up to the item and verify they always fall within a certain small bounding rectangle.

Once you establish the bounding rectangle just use a loop and click at intervals within that rectangle until you find the item or run out of rectangle. Ideally you should be in the overhead view so you are looking straight down and the item should be directly in front of you, only real issue is how far in front. This will vary by viewport size, location, resolution but will be consistant for a particular setup.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Hey Grim, this for u :P

Post by Draekz » Mon Aug 25, 2003 8:14 am

Hey :)

I would just like to bump this script :P Im at a point ina chars life where i need to forage innothule shr00ms and wondered if ther ewas any command to target "untargettable" items :)

Any chance grim could take a look at this? :D thanks!

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Mon Aug 25, 2003 8:18 am

btw just tried /itemtarget Innothule, went to the item, then /face item and /click left item and it crashed me :P just so ya know!

thx

Draekz

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Aug 25, 2003 10:22 am

Stupid question, but... latest CVS offsets?

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Tue Aug 26, 2003 12:30 am

Well i certainly hope so :P dunno how else i been using MQ otherwise!

BTW, just before my uncle died, he left me a quote and i still follow it to this day! (not sure whether its true, but i follow it :P)

Anyway

"There's no such thing as a stupid question, only a stupid answer"

lol..hey it works for me :P

Umm as for latest, yes, I have latest! unless they changed it in the last 5 ish days :P

Take it easy!

Draekz

Zeus
a hill giant
a hill giant
Posts: 180
Joined: Wed Feb 19, 2003 10:03 am
Contact:

Post by Zeus » Tue Aug 26, 2003 8:44 am

There was a bad offset for /click left i thinkmight wanna look for that post, haven't tested it tho since I don't really use click at all :(

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Wed Aug 27, 2003 8:27 am

"There's no such thing as a stupid question, only a stupid answer"
Wow, did i actually say something as stupid as that lol..sorry was working off 2 hours sleep in the last 48 hours (thats with work) lol..man im a loser...
but anyway onto newer things

I'll check on that offset thinger u mentioned! thanks!

Draekz