[SOLVED] ${ME.DSed} problem

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

klaarg
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Dec 26, 2007 1:55 pm

[SOLVED] ${ME.DSed} problem

Post by klaarg » Sat May 23, 2015 8:01 am

Not sure if this is a bug report or a feature request. /echo ${ME.DSed} returns NULL and /echo ${Target.DSed} returns the correct spell (when I have my character targeted).

If it's not a bug, any chance of getting it added?

Also, question, since it appears the wiki for TLOs is out of date, is MQ2CharacterType::GETMEMBER() the appropriate place to look for new members of TLOs? I'm assuming that's for character, what's the similar function for Target? I use a lot of HUD entries and after recently coming back I'd like to see what I can add that might have value.


EDIT: Ok, it appears it sometimes will CTD. I had that with target when I had no target selected (my bad), but I had it with ${ME.DSed} just now as well.

Maskoi

Re: ${ME.DSed} problem

Post by Maskoi » Sat May 23, 2015 8:48 am

From the changes file but it looks like your syntax is right.

Code: Select all

- Added Me.DSed and Me.RevDSed, both return a spelltype
  Usage:
  /if (${Bool[${Me.DSed.ID}]}==TRUE) {
		/echo I have a Damage Shield on its: ${Me.DSed}.
  }
  /if (${Bool[${Me.RevDSed.ID}]}==TRUE) {
		/echo I have a Reverse Damage Shield on its: ${Me.RevDSed}.
  }
you have /echo ${ME.DSed} with a capital E instead of ${Me.DSed} but thinking that is just a typo.

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: ${ME.DSed} problem

Post by warlock45 » Sat May 23, 2015 8:52 am

Would it matter if you use ${Me.DSed} instead of ${ME.DSed}?

Maskoi

Re: ${ME.DSed} problem

Post by Maskoi » Sat May 23, 2015 9:01 am

Yes MQ2 is case sensitive.

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: ${ME.DSed} problem

Post by warlock45 » Sat May 23, 2015 9:41 am

Heh, didn't see your post before doing mine, or would a left that alone =)

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: ${ME.DSed} problem

Post by SwiftyMUSE » Sat May 23, 2015 10:35 am

Maskoi wrote:From the changes file but it looks like your syntax is right.

Code: Select all

- Added Me.DSed and Me.RevDSed, both return a spelltype
  Usage:
  /if (${Bool[${Me.DSed.ID}]}==TRUE) {
		/echo I have a Damage Shield on its: ${Me.DSed}.
  }
  /if (${Bool[${Me.RevDSed.ID}]}==TRUE) {
		/echo I have a Reverse Damage Shield on its: ${Me.RevDSed}.
  }
you have /echo ${ME.DSed} with a capital E instead of ${Me.DSed} but thinking that is just a typo.

You don't need to use ${Bool} in an /if statement. ${Me.DSed.ID} is TRUE if there is a spell id, FALSE otherwise.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

Maskoi

Re: ${ME.DSed} problem

Post by Maskoi » Sat May 23, 2015 11:48 am

Just tried it. I crashed as well.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: ${ME.DSed} problem

Post by EqMule » Sat May 23, 2015 12:10 pm

Thanks for the report , I have fixed this in MQ2-20150523.zip
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

klaarg
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Dec 26, 2007 1:55 pm

Re: [SOLVED] ${ME.DSed} problem

Post by klaarg » Sun May 24, 2015 8:14 am

Wow, thanks for the quick response and the fix.

And I can confirm it's working here now.

klaarg
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Dec 26, 2007 1:55 pm

Re: ${ME.DSed} problem

Post by klaarg » Sun May 24, 2015 8:33 am

Maskoi wrote:Yes MQ2 is case sensitive.
Ok, I'm not sure if I had done ME or Me, as I was not aware MQ2 is case sensitive -not sure how I missed that. Maybe I knew it a couple of years ago when I set up my HUD (which is most of what i'm doing with it). My HUD has ~150 lines or so.

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

Re: [SOLVED] ${ME.DSed} problem

Post by xyilla » Sat Jan 17, 2026 8:13 am