New Select command

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

New Select command

Post by Grumpy » Sun Jul 31, 2005 2:13 pm

I'm probably an idiot, but, I can't get the new Select command to return anything but NULL (which is really bad, considering it's supposed to return an int, shouldn't it be returning 0 all the time?

Anyway, I've tried:

/echo ${Select[3,1,2,3]}

echos NULL

and:

/echo ${Select["test","this","should","return","5","test"]}

echos NULL

so, anyone care to give an example that DOESN'T return NULL, so I can actually see what I'm doing wrong?

And no, there is nothing in the wiki about ${select[]} and a search for select[ on the forums returns people trying (unsuccessfully) to use select.

Well wiki didn't, until I added this: http://www.macroquest2.com/wiki/index.p ... ype:select

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

Post by fearless » Sun Jul 31, 2005 4:49 pm

Code: Select all

${Select[${TempClass},WIZ,MAG,ENC,NEC]}
According to Lax, that should work. But now that I am testing similar functions in eq . . . they are returning NULL.

Don't have a good answer 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]

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 » Sun Jul 31, 2005 9:54 pm

Hold on let me check for a bug report.
http://macroquest2.com/phpBB2/viewforum.php?f=28
http://macroquest2.com/phpBB2/viewforum.php?f=48 (VIP)
Nope, no bug reports. It obviously must work flawlessly. If somebody tried it, and it didnt work correctly, they would have reported it. After all, it has been in for a few weeks now. So it must be working.

Seriously now. Thanks for posting, I deleted your wiki entry though because in here you called it a command and in the wiki you called it a data type, of which it is neither ;) You're doing nothing wrong.

Anyway. Open MQ2DataAPI.cpp, and line 163 after the line that adds "Plugin" do:

Code: Select all

	AddMQ2Data("Select",dataSelect);
Problem solved

And for the record, it is a Top-Level Object, also known as a TLO. The type given is indeed an int
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 3:18 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 3:19 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 3:20 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 3:57 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 3:58 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:00 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:01 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:02 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:03 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:04 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:41 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: New Select command

Post by xyilla » Fri Jun 06, 2025 4:42 am