Mob at Certain Location Check

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

Moderator: MacroQuest Developers

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Mob at Certain Location Check

Post by YKW-28983 » Mon Dec 30, 2002 8:51 pm

Hi , I need to figure out how to look for a mob at a certain location set via a command, such as...

Code: Select all

/macro checkspawn North
/macro checkspawn South
/macro checkspawn Back
If you can't tell it's IG camp I want to know if a certain Giant is up and if so to beep.. I can try and start the code but not a clue how..

Code: Select all

| Checkspawn.mac
| Yada-Yada

#define north <loc>
#define south <loc>
#define back <loc>

Sub Main

/if <variableafter /macro checkspawn > == up {
 /beep
 /delay 2s
 /beep
}

That's all I want. Please help if you can.

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

Hmmmm

Post by Malachi » Tue Dec 31, 2002 4:44 am

Well...hmmm. You know that MQ has a range of 50,000. That's enough to cover most of most zones....mebbe all. Look in at the "female here, be gentle plz" thread for info on setting alerts for certain spawns.

I also dunna know that you can target something by loc...I think you need to know the specific name or *if* every time the mob pops it has a static ID...that way you could set ID's to be sure "a poopy giant namedfred" didn't trigger when you wanted "a poopy giant".

But...yeah, check that other thread. or.....simple enuf....I do it all the time..../who npc poopy...and then /target poopy....and then /face...

Yeah.
~malachi
~Oh danny boy, the pipes the pipes are calling.~

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Tue Dec 31, 2002 1:15 pm

Well that wouldn't work because there are 3 giant camps, all with one giant.. All with same name. I think I may do it by looking for a giant that appears north of me but I don't want to do it that way.

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Re: Hmmmm

Post by YKW-28983 » Wed Jan 01, 2003 1:38 am

Malachi wrote:Well...hmmm. You know that MQ has a range of 50,000. That's enough to cover most of most zones....mebbe all. Look in at the "female here, be gentle plz" thread for info on setting alerts for certain spawns.

I also dunna know that you can target something by loc...I think you need to know the specific name or *if* every time the mob pops it has a static ID...that way you could set ID's to be sure "a poopy giant namedfred" didn't trigger when you wanted "a poopy giant".

But...yeah, check that other thread. or.....simple enuf....I do it all the time..../who npc poopy...and then /target poopy....and then /face...

Yeah.
~malachi
this won't work for me... I need to check to make sure that my giant is up and not someone elses. if it's targeting closes one and mines not up it's not my giant.

Is it possible my chance to see if a target is N, E, S, or W of you in code and then target the mob that's North of you?

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

Only thing I can think of

Post by Malachi » Wed Jan 01, 2003 1:46 am

The only thing I can think of is that /who returns distances and direction from you....perhaps somehow you could set the alert to include the distance or listen for the direction from a /who...But.....I really dunno.

~Malachi
~Oh danny boy, the pipes the pipes are calling.~

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Wed Jan 01, 2003 6:14 pm

distance won't work because if your camping one of towers back camp or other tower walks behind you when it's almost dead... need an

Code: Select all

/alert add 1 npc giant heading north
type thing for an alert.

such as the /face heading north thing.