Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
FreQuency
- a hill giant

- Posts: 215
- Joined: Tue Sep 23, 2003 6:03 pm
Post
by FreQuency » Thu Sep 25, 2003 5:52 pm
Currently writing a macro for collect ground spawns in various zones but have a small problem. I have read though the read me looking for help but i am now stumped or missing something obvious.
Some items spawn in world objects such as trees and what not.
Is there anyway i could filter those locations out of the /item or /itemtarget?
Or my current thinking is set a #event for the /item list and check the loc of each storing them in an array and track down spawns ike that skipping over the locs of unatainable ones, but would a event grab all the lines fast enough so that it could record the locs of all in the zone?
Any help much appreciated. This talioring is the pain and i really like to be able to get talioring going a little faster w/o having to worry about my supply of leaves and acorns
BTW is it against the rules of the forum for me to drop this in the macro depot when finished?
-
MQSEQ
- Hypocrite fag
- Posts: 181
- Joined: Fri Sep 19, 2003 5:18 pm
Post
by MQSEQ » Thu Sep 25, 2003 7:35 pm
The best way is to creat an arry of the bad items but instead of using the event since it wont trigger one, is to use the collision logic to see if you can walk around the object. once you make a 360 add it to the list then move to the next one.
GL getting the Yew Leaves :)
You might do a search on ground spawns to see if anyone has posted them before and if so you can add your code here.
-
FreQuency
- a hill giant

- Posts: 215
- Joined: Tue Sep 23, 2003 6:03 pm
Post
by FreQuency » Thu Sep 25, 2003 7:54 pm
use the collision logic to see if you can walk around the object. once you make a 360 add it to the list then move to the next one.
i thought of that but is there a way to determine which spawn would be next closest?
-
blueninja
- a grimling bloodguard

- Posts: 541
- Joined: Thu Aug 28, 2003 7:03 am
- Location: Göteborg, Sweden
Post
by blueninja » Thu Sep 25, 2003 8:20 pm
I'm thinking you could get the distance to it and target using a minimum range just above the distance.
-
MQSEQ
- Hypocrite fag
- Posts: 181
- Joined: Fri Sep 19, 2003 5:18 pm
Post
by MQSEQ » Thu Sep 25, 2003 11:00 pm
The collision logic comment was just a check to see if it was somewhere on the other side of a tree for example. You can set the logic to try once, log it then move to next by using the distance.
There are several examples of finding the next closest target.