Help with GM code

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

Macronewbie
decaying skeleton
decaying skeleton
Posts: 2
Joined: Wed Apr 21, 2004 1:48 pm

Help with GM code

Post by Macronewbie » Wed Apr 21, 2004 1:53 pm

Need to find out how to correct this.

${Zone.Spawn.GM}
${Zone.GM}

neither work. plz help.
I'm a newbie. yes we know. -Macronewbie

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

Post by s16z » Wed Apr 21, 2004 2:05 pm

have you tried ${Spawn[gm]}?

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Apr 21, 2004 2:22 pm

If you're trying to display a GM indicator...
${If[!${Spawn[gm]},FALSE,TRUE]} seems to be working for me.

${Spawn[gm]} checks the spawn list for a gm. If there's not one, it returns NULL
${Spawn[id].GM} is GM status as a boolean (TRUE,FALSE)

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

Post by s16z » Wed Apr 21, 2004 2:55 pm

OMG, you will drive people insane with that logic

Code: Select all

${If[!${Spawn[gm]},FALSE,TRUE]}
Why negate it then reverse the resullts? Try:

Code: Select all

${If[${Spawn[gm]},TRUE, FALSE]}
Edit: Corrected spelling error, because I was driven INSANE!

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Apr 21, 2004 3:01 pm

Because I like exclamation points and driving people crazy :)

and because of a logic error, I kept getting NULL when I tried to do it the other way, but this way worked for me. :)

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 » Wed Apr 21, 2004 3:02 pm

... because one way you will get this:

${If[Brenlo,TRUE,FALSE]} and the parser will be like .. what the FUCK do i do with "Brenlo" ..

here is the correct way to do this
{3011, "${If[${Spawn[gm].ID},TRUE,FALSE]}"},

please just wait for the damn zip and stop using the posted offsets when we have updates coming

Edit: fixed typo
Last edited by Lax on Thu Apr 22, 2004 6:06 pm, edited 1 time in total.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Apr 21, 2004 3:07 pm

Ok, what's the {3011 for? I haven't seen that used in other places yet.

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Post by OldNecro » Thu Apr 22, 2004 6:02 pm

${If[Spawn[gm].ID,TRUE,FALSE]}

...returns NULL every time. Exact cut and paste from Lax's post went into the UI file using 9999...
Saddam Hussein begins to use An Innocent Bystander as a living shield!
An Innocent Bystander ceases protecting Saddam Hussein's corpse.

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 » Thu Apr 22, 2004 6:05 pm

hah oops typo

${If[${Spawn[gm].ID},TRUE,FALSE]}

My bad
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Post by OldNecro » Fri Apr 23, 2004 8:13 am

I can't believe I didn't notice that myself... *sigh*
Saddam Hussein begins to use An Innocent Bystander as a living shield!
An Innocent Bystander ceases protecting Saddam Hussein's corpse.