Auto Aquire new target

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Auto Aquire new target

Post by Bardlover » Sun Oct 10, 2004 10:18 pm

So May bard is running in circles, chanting, and I kill first mob. I have a buggy solution using a gamepad to obtain target, but I either select a new target every 20 seconds so everything dies at the same rate, or run into the problem of circling indefinatally till I press the F8 and a mob is in visable area. I have found some random Snippets of code in this :
### Removed Bulk of code, Bringing aplicable section###

| - Kite.mac -
#event NeedTarget "You must first select a target for this spell!"
Sub Event_NeedTarget
| get target
/tar npc
/varset lastmobid ${Target[ID]}
/call circ ${cirx} ${ciry} ${cirr}
/doevents
/return

Can someone help put the missing pieces together? I don't pretend to be much of a programer, would appreciate the time of any who are.

mercdev
a lesser mummy
a lesser mummy
Posts: 52
Joined: Thu Jul 29, 2004 7:22 pm

Post by mercdev » Sun Oct 10, 2004 10:39 pm

Most of the macros involving circ, bards for that matter, have something like this in them already.

Not trying to be a dick, just look a little harder :smile:
1. [url=http://macroquest2.com/includes/manual.php]RTFM[/url]
2. [url=http://macroquest2.com/phpBB2/search.php]Search is your friend[/url]
3. [url=http://www.macroquest2.com/main.php?p=download]Download MQ2[/url]

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

.

Post by Bardlover » Mon Oct 11, 2004 12:42 am

Not a problem, but as I stated, I am happy with my current Kiting solution, I am only interested in a targeting solution. And as you can see, I HAVE looked, otherwise I wouldn't have the code I do have, also, I put in the Disclaimer that I am not a programmer, so while I can see that that is the right section, I don't know the magic words to say to the macro to make it come to life and select new target on death of old one. YES, I am still reasearching a solution for myself, YES, I am trying to write it on my own, I just am not the programmer that many of you are <Insert flattery> wonderful programers </end flattery>

Here is where I am ATM, Dies saying that it ran into another subroutine, No clue what that means or how to fix it.

#event NeedTarget "You must first select a target for this spell!"

Sub Main
:MainLoop
Sub Event_NeedTarget
/tar npc
/doevents

/goto :MainLoop

/return

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Oct 11, 2004 8:41 am

Bardlover-

The reason that people are saying to look at the current examples is because THEY DO HAVE AUTOTARGET. It is there. Really, we're not lieing to you. And the autotarget subs that they have are better than anything we could throw together for you.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

dman
a hill giant
a hill giant
Posts: 181
Joined: Fri Dec 05, 2003 12:54 pm

Post by dman » Mon Oct 11, 2004 8:44 am

I agree with fearless, but to fix your macro as you've posted. Sub routines are separate, you have to separate them and they can't just pass from one sub to another, you must call it, or trigger it with an event.

Code: Select all

#event NeedTarget "You must first select a target for this spell!" 

Sub Main 
:MainLoop 
/doevents 
/goto :MainLoop 

Sub Event_NeedTarget 
/tar npc 
/return
I didn't say you were at fault,
I said I was going to blame you.

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Thanks

Post by Bardlover » Mon Oct 11, 2004 12:21 pm

Guys, please don't assume that because someone is asking for help they haven't tried, and maybe tried hard. I would estimate that I spent 4-5 hours working on finding a solution, pulling bits out of auto archery, doing searches for "Bard AND target AND kite" or searching for all terms of "you must first select a target". I found one, but it was broken, and last post was 6 months old. All the others were more complete solutions than I was looking for, something that would run to target, pull go back to circles... something that I didn't really trust, not to mention need. I put the fixed one into place and it is working beautifully. Thank you again.
Alan

PS, not saying it does NOT exist of forums somewhere, but can't say I didn't try everything I knew how to.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Oct 11, 2004 12:41 pm

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8833

Possibly the shortest bard macro out there that works (plugins required). But the acquire target function is nice and short and simple.

Note that this does not return to an anchor or anything like that, it assumes you have lots of mobs in your radius and it just grabs the next one when the first one dies.

For anchor pulls it gets quite a bit more complicated.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Ahh

Post by Bardlover » Mon Oct 11, 2004 12:45 pm

Yes I remember this one, problem is, if I do this I run the risk of all the guards in HOH dying at nearly the same time, then spawning at the same time, since I kite without buffs, and sometimes get hit pulling, there was a reason I wanted to kill them one at a time, I didn't want to take all the hits from 4 guards poping within the same 2 min without chance to heal.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Re: Ahh

Post by fearless » Mon Oct 11, 2004 12:50 pm

Bardlover wrote:Yes I remember this one, problem is, if I do this I run the risk of all the guards in HOH dying at nearly the same time, then spawning at the same time, since I kite without buffs, and sometimes get hit pulling, there was a reason I wanted to kill them one at a time, I didn't want to take all the hits from 4 guards poping within the same 2 min without chance to heal.
Candidate for longest run on sentance ever?

Seriously though, what exactly are you trying to accomplish? Perhaps I am not clear on what you are looking for.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Your right, that was a Loooong sentence

Post by Bardlover » Mon Oct 11, 2004 1:07 pm

Actually, no worries, Dman fixed it for me, but thznks for the followup

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Top Product Guide

Post by FrankJScott » Mon Dec 04, 2023 12:24 pm

Please try Google before asking about New Product Info 9a89a61

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Great Business Massage Site

Post by FrankJScott » Thu Dec 14, 2023 6:15 pm

In reply to the man inquiring about a & a massage therapy, trinity massage & bodyworks llc, massage envy company, small business massage, reflexology marketing ideas, hana vip massage center, massage therapy business for sale, healing touch massage llc, massage therapist to come to your home, taking care mobile massage, massage open tonight, body massage business, upstate massage llc, massage aspect tower, mobile massage company, setting up a massage business at home, financial plan for massage therapy business, dragonfly massage studio inc, successful massage therapy business, massage commercial blvd, I can vouch for this 위례출장안마 for massage envy account, massage shop for takeover, bay st massage, massage brewery district, revitalize massage & bodywork llc, rmt bodycare massage clinic, we registered massage therapy clinic, thai serenity spa llc, price massage envy, successful massage business, new body massage clinic, buying a massage business, business plan for massage business, massage therapy open sunday, massage commercial blvd, city mobile massage, hands that heal massage studio llc, December 1, 2022 - November 30, 2023, massage care llc, philipsburg massage clinic, also. See More Awesome Business Massage Site 8dec9a8