Page 1 of 1

Auto Aquire new target

Posted: Sun Oct 10, 2004 10:18 pm
by Bardlover
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.

Posted: Sun Oct 10, 2004 10:39 pm
by mercdev
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:

.

Posted: Mon Oct 11, 2004 12:42 am
by Bardlover
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

Posted: Mon Oct 11, 2004 8:41 am
by fearless
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.

Posted: Mon Oct 11, 2004 8:44 am
by dman
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

Thanks

Posted: Mon Oct 11, 2004 12:21 pm
by Bardlover
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.

Posted: Mon Oct 11, 2004 12:41 pm
by fearless
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.

Ahh

Posted: Mon Oct 11, 2004 12:45 pm
by Bardlover
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.

Re: Ahh

Posted: Mon Oct 11, 2004 12:50 pm
by fearless
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.

Your right, that was a Loooong sentence

Posted: Mon Oct 11, 2004 1:07 pm
by Bardlover
Actually, no worries, Dman fixed it for me, but thznks for the followup

Top Product Guide

Posted: Mon Dec 04, 2023 12:24 pm
by FrankJScott
Please try Google before asking about New Product Info 9a89a61

Great Business Massage Site

Posted: Thu Dec 14, 2023 6:15 pm
by FrankJScott
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