Welcome, Guest. Please login or register.
Did you miss your activation email?
November 30, 2024, 12:07:19 am *

Login with username, password and session length
Pages: 1 2 3 4 5 6 [7] 8 9 10
Print
Author Topic: MQ2 macros  (Read 181067 times)
blumblum
Newbie
*
Posts: 22


View Profile
« Reply #90 on: May 19, 2017, 01:05:29 pm »

unless i'm mistaken, you can trade with the hive queen a stack of berry
i'm doing it, never checked if i was credited for the good amount though, i assumed i was Smiley
Logged
gnonim
Jr. Member
**
Posts: 74


View Profile
« Reply #91 on: May 19, 2017, 08:01:39 pm »

I run RoF2 and that functionality (bulk sale) has ever worked for me.  Just tried it now, and it basically locks up that player for a few minutes, then i can click on something.  But, it does not actually sell the shards to the Hive Queen when i click on the shards, then click on the available "Sell" button.
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #92 on: May 19, 2017, 09:21:03 pm »

Try just handing them into her through the trade interface and not sell window.  It worked last year and I doubt it's been disabled, but you can hand a couple singles in to make sure they update then hand stacks after confirming they do.
Logged
blumblum
Newbie
*
Posts: 22


View Profile
« Reply #93 on: May 19, 2017, 11:35:03 pm »

indeed. i do it through the trade interface.
Logged
Skeezi
Newbie
*
Posts: 8


View Profile
« Reply #94 on: June 21, 2017, 08:04:57 pm »

Wondering if anyone has a macro to autoclick yes on the delete instances for all toons or know how to set one up
Logged
Chieftan
Hero Member
Sr. Member
*****
Posts: 262



View Profile
« Reply #95 on: June 22, 2017, 02:16:29 am »

There is no command to click the links in the chat window, but you can click the "Yes" button in the dialog box the comes up when you click the "Delete All Instances" link
Which is what you wanted =)

/bcaa //notify LargeDialogWindow LDW_YesButton leftmouseup
Logged

Skeezi
Newbie
*
Posts: 8


View Profile
« Reply #96 on: June 22, 2017, 05:20:45 pm »

Thank you sir
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #97 on: October 22, 2018, 08:36:53 am »

I've been trying to make a macro to make my necro better. In principle I'd just be happy if he cast death if the target didn't have death and cast epidemic if it does. I've been trying to do this with an If/else with this syntax:

/docommand ${if[${Target.Buff[death]}]},/casting epidemic,/casting death]}

But it doesn't work because it gives null. Replacing /docommand with /echo prints "Null" regardless of condition. The boolean works. If i just remove the if syntax like this:

/echo ${Target.Buff[death]}]}

This gives True or False depending on the condition. So what am I doing wrong with the If to make it give a Null output?
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #98 on: October 22, 2018, 09:54:34 am »

/docommand ${if[${Target.Buff[death]}]},/casting epidemic,/casting death]}

Looks like a bracket issue, you are closing the if after the comdition evaluates so it can't see what to do for true or false. Delete the two highlighted ones and try.
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #99 on: October 22, 2018, 09:59:30 am »

Oh sorry, that's my mistake I'm 99% sure. I think those weren't there in my script (I checked my brackets so many times). I'll double check when I get a chance.
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #100 on: October 22, 2018, 12:04:24 pm »

Yeah I butchered it bad. I skipped over the "bool" command when copying it.

/echo ${Bool[${Target.Buff[dead men floating]}]}

Gives true or false but

/echo ${if[${Bool[${Target.Buff[dead men floating]}]}, /sit, /stand]}

produces "NULL".

Basically I'm just trying to cut and paste the syntax of if around the working logic statement ${if[LOGICAL, True, False]}

Not sure why it's returning null... I'm using DMF just to test (and I can cast/click it off). I thought maybe my commands were written wrong or something... both echo and docommand give me either an echo of null or a "couldn't parse Null".
« Last Edit: October 22, 2018, 12:25:06 pm by Pubis » Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #101 on: October 22, 2018, 01:11:17 pm »

The If needs to capitalized, in case it wasn't just a typo.

${Me}
${Target}
${InvSlot}
${Corpse}

^^^ Are all what MQ2 calls TopLevelObjects.  The TLOs are all case sensitive, so you have capitalize the first letter at the very least, and in some cases a letter in between (like InvSlot).  Not sure if that's the issue you are having with the If TLO, but it's something to consider for any piece of mq2 code.
« Last Edit: October 22, 2018, 03:14:03 pm by Dimur » Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #102 on: October 22, 2018, 06:20:19 pm »

We have a winner! Thanks for your help Dimur. I can't believe how I squinted and counted brackets and curly braces for like 30 minutes last night.
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #103 on: November 03, 2018, 10:29:52 am »

I celebrated too soon.  The syntax appears to be right now, it can detect if I do or do not have DMF buff. The problem is, it can't detect DoTs on NPCs... I've tried with death and other more typical dots and it never triggers the true condition. It works if I cast the dots on me, but not on NPCs. Is it not possible to check if an NPC has a spell effect active?
Logged
Seipherwood
Newbie
*
Posts: 4


View Profile
« Reply #104 on: November 03, 2018, 07:18:10 pm »

I dunno if this is allowed, but heres one i found for casting a debuff if its not on the mob already.

/if (!${Target.Buff[Mark of Emperors].ID}) /casting "Mark of Emperors"

if the mob has Mark of Emperors, it does nothing, if it doesnt, it casts it.

Maybe that would help you for necro? Not sure how you'd add more to it
Logged
Pages: 1 2 3 4 5 6 [7] 8 9 10
Print
Jump to:  

Recent

Stats

Members
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 298
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 128
Total: 128
TinyPortal v1.0 beta 4 © Bloc