Command help

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

sysdamnjr
decaying skeleton
decaying skeleton
Posts: 5
Joined: Tue Apr 06, 2004 10:29 pm

Command help

Post by sysdamnjr » Fri Apr 09, 2004 9:47 pm

Is there a way to do a /quit I have been working on a monk macro that can FD but cannot seem to get it to /q out to clear agro if I have 3 or more mobs sitting on me

any help would be greatly appricated

Also looking for a GM check snippet I have seen code in some of the posted macros in the depot as part of other kinds of macros but i will be damed if I can find it now that I am looking for it.

again any help would be appricated

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Sat Apr 10, 2004 12:49 am

You don't need to /q out to clear agro, just stay FD for 2 minutes.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Apr 10, 2004 1:31 am

GM check?
/newif ${Spawn[gm].ID} /echo gm present
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

sysdamnjr
decaying skeleton
decaying skeleton
Posts: 5
Joined: Tue Apr 06, 2004 10:29 pm

Post by sysdamnjr » Sat Apr 10, 2004 8:24 pm

This line of code
/newif ${Spawn[gm].ID} /echo gm present
Finds all GM's in game

This line of code
/newif $gm==TRUE /echo gm present
Returns all pc's in zone

I am looking for code th show just if there is a GM in the zone I am currently in.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Apr 10, 2004 11:37 pm

uhh... no, it does not find all GMs in game. If you'd like to explain your theory as to how it does that please do, until then I know what I'm talking about ;)

${Spawn[gm].ID} will return the ID of the first GM it sees in the list of spawns in your zone, or NULL. This is effectively telling you if a GM is in the zone or not. If it is reporting someone as a gm that isnt a gm, then report a bug. Note that this will be the same person you target if you do /target gm
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

sysdamnjr
decaying skeleton
decaying skeleton
Posts: 5
Joined: Tue Apr 06, 2004 10:29 pm

Post by sysdamnjr » Sun Apr 11, 2004 2:19 am

Here is the section of code I am having trouble with.

code
sub gmcheck
/newif ${Spawn[gm].ID} /echo Guide in zone bot ending.
/newif ${Spawn[gm].ID} /endmacro

This always returning gm present. Even when a /who all gm does not show any GM's in game

Awhile back in a now broken macro this worked

Code:
/if $gm==TRUE /echo GM in zone!
/if $gm==TRUE /endmacro

bonehand
a lesser mummy
a lesser mummy
Posts: 48
Joined: Tue Feb 17, 2004 5:16 pm

Post by bonehand » Sun Apr 11, 2004 3:34 am

Isn't it the case that /IF and /NEWIF only work on a TRUE or FALSE(As opposed to (0 or 1) or a (Value or NULL)? If so, that means that your NULL value(for no GM's) is making the arguement always true(because it is never "FALSE") and thus triggering the /endmacro.

Try:

Code: Select all

sub gmcheck 
/newif ${Spawn[gm].ID}<>"NULL" {
    /echo Guide in zone bot ending. 
    /endm
}
/return
At least that should be right...not able to test atm.

dok
a ghoul
a ghoul
Posts: 127
Joined: Mon Mar 15, 2004 3:38 pm

Post by dok » Sun Apr 11, 2004 3:18 pm

for results I'm checking if they return null, I'm using the following:

Code: Select all

/newif ${Bool[${Spawn[gm].ID}]} /echo GM
at one time, I think /newif was returning false if the result was null, but that is no longer the case.

As per Lax's guide:
bool Bool[text]: Make a bool object using text. Value is set to TRUE unless text is "NULL" "FALSE" or "0" (capitalization does not count)

sysdamnjr
decaying skeleton
decaying skeleton
Posts: 5
Joined: Tue Apr 06, 2004 10:29 pm

Post by sysdamnjr » Sun Apr 11, 2004 8:58 pm

Still getting the /echo <whatever text here>
no matter what
/who all gm returns correct zone of gms if any on
/tar gm returns no <correct text here> 0-100 blah blah blah

I am at a loss tried every code I can think of and all the suggestions that have been posted sheesh this should be simple :evil:

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Sun Apr 11, 2004 11:15 pm

I just tried this:

Code: Select all

/newif ${Spawn[gm].ID} /echo Guide in zone bot ending.
It appears to work fine for me. I have the April 09 2004 16:42:37 source version, and have booth Parm and Data activated.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Mon Apr 12, 2004 3:48 am

Code: Select all

/newif ${Bool[${Spawn[gm].ID}]} /echo GM
useless.. dont make a bool out of it, thats just a waste. it just gets converted back to a number for newif. again, /newif looks for 0 or non-zero. any TRUE,FALSE,NULL get converted to 1.00,0.000,0.00 before ever getting to newif

Code: Select all

/newif ${Spawn[gm].ID}<>"NULL" { 
wont work at all.
#1 <> isnt valid
#2 "text" isnt valid
#3 NULL gets converted to 0.00 before /newif ever sees it

IF you need to do a string comparison, you need to use string.Equal, etc. this isnt the way to do this, but this is more correct than above

Code: Select all

/newif ${String[${Spawn[gm].ID}].NotEqual[NULL]} {
But, why do a string comparison when we're working with numbers?

Code: Select all

/newif ${Spawn[gm].ID} {
Just like i posted in the fucking second post on this thread. Amazingly more than one person posted on this thread with different ways of doing it than the one person that knows the most about the system... one that would work but is silly, and one that wouldnt even parse

and finally:
Still getting the /echo <whatever text here>
stupid fucker, you need to turn on mq2data first. If you want to use MQ2Parm you need to use "$gm" or whatever instead.

Code: Select all

/newif $gm {
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Mon Apr 12, 2004 4:57 am

That's one on the things I like about Lax, he's not afraid to speak his mind.

Like this tread, question asked, answered, debated, then answered again pointing out the dumb shits.

Or "- To String: ... this IS a string, assface"

Or RTFM


GO GO GO, Lax!

:)