MQ2 Helpdesk

Third party software discussion goes here.
Stickybuds
Posts: 883

Re: MQ2 Helpdesk

Post#81 » Wed Jan 09, 2013 3:26 pm

well an update, apparently you get that error when you don't have the buff on (doh, lol).

So its working, but not correctly. It does not remove Spirit of the Lion Rk. I, but instead will remove any buff that is right next to it. tested with a few different random buffs. Any ideas?

if i /echo ${Math.Calc[${Me.Buff[Spirit of the Lion Rk. I].ID}-1].Int} (with the buff on) i get a number as the result which im assuming is supposed to relate to the buff slot that buff is in (if you do just a /notify BuffWindow Buff0 leftmouseup it removes the 1st buff) However the number i always get with ${Math.Calc[${Me.Buff[Spirit of the Lion Rk. I].ID}-1].Int} is never the correct number that buff is currently occupying.

I tried moving the buff around to different slots. the results are all over the place. when its in slot 11 i thinks its in 9, if you do a +2 it to compensate, it doesn't remove anything. A +1 works, which doesn't make sense either. However, when i moved the buff to slot 4 (counting from 0) and did a -1, it removed the buff #3. a -0 removed the correct buff. Now again more crazy b/c when i rebuffed and it goes into slot 3 now, i used the same -0 and it removed the buff in slot 1.... so i have no idea wtf is going on with this haha
Image

Stickybuds
Posts: 883

Re: MQ2 Helpdesk

Post#82 » Wed Jan 09, 2013 4:11 pm

more madness, tried using the mq2buffblock plugin. it sorta works, but when it tell it to /block "Spirit of the Lion Rk. I" it blocks Vengeance of the Forsaken instead! what?
Image

conradd
Posts: 381

Re: MQ2 Helpdesk

Post#83 » Wed Jan 09, 2013 4:47 pm

If you check manually the list of buff you have, like that :

Code: Select all

for (i=1 to list of buffs)
   if buff(i).Name = "the spell you want to remove" then
      /nomodkey /notify BuffWindow Buff(i) leftmouseup
   end if
next


Does it work ?
"Shorties will rule the world !"
[CLR] Conradd <Drachenkinder>

User avatar
mukkel
Posts: 236

Re: MQ2 Helpdesk

Post#84 » Wed Jan 09, 2013 7:08 pm

It sounds like you perma want to ban the buff? Why not just use the in-game buff blocker?

Also, if that's not what you want to do - Do you happen to use Netbots? I could easily write a one liner that would do that for you if so.

/fitz

User avatar
mukkel
Posts: 236

Re: MQ2 Helpdesk

Post#85 » Wed Jan 09, 2013 7:23 pm

I wrote it real quick anyway since I was curious if it was possible. It will click it off if the buff is up. Note that buffs do act weird if they were present before you loaded the client.. You'll need to re-buff yourself or let it fade before it'll kick in and work properly. Lion is a short duration buff so it shouldn't be a problem.

For just one character:

Code: Select all

/if (${NetBots[${Me.CleanName}].Buff.Find[9205]}==1) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[9205].ID}].Int} leftmouseup


For all characters:

Code: Select all

/noparse /bca //if (${NetBots[${Me.CleanName}].Buff.Find[9205]}==1) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[9205].ID}].Int} leftmouseup


/fitz

Stickybuds
Posts: 883

Re: MQ2 Helpdesk

Post#86 » Thu Jan 10, 2013 1:33 am

Don't want to perma block the buff, just to remove it before i use the shm epic so i can use the proc from that buff instead.

Unfortantley using

Code: Select all

/nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[9205].ID}].Int} leftmouseup
doesn't work either. That is pretty much the same as before expect specified the spell ID and without any -1 to adjust for starting at 0. Doing it that way just takes off whatever is in buff slot #0, no matter what buff is in that slot.
When i /echo ${Math.Calc[${Me.Buff[9205].ID}].Int} it gives 0 as the return no matter which slot the buff is in.


That seems to be the syntax everyone uses to do this, but for some reason its not working on my end. Strange too that when i try to use the mq2blockbuff plugin it also blocks the wrong spell instead of Spirit of Lion.

Any ideas?

EDIT - after being in game a while the command

Code: Select all

/nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Spirit of the Lion Rk. I].ID}-1].Int} leftmouseup
is now working and always removing the correct buff even when i change up the buff order.

Ugg, i wish i knew why it was working sometimes but not all the time. I dont want to start using it until its 100%. Gonna give it a test run tonight though and see how it goes.

/block "Spirit of the Lion Rk. I" also now removes the correct buff instead of removing Vengeance of the Forsaken..../scratch head no idea haha. hope it stays working!
Image

User avatar
Dellanx
Posts: 300

Re: MQ2 Helpdesk

Post#87 » Thu Jan 10, 2013 2:38 pm

While I have a target and I am using, 4 songs and 4 debuffs.

/if (!${Me.Casting.ID}) /twist 1 2 3 4 5 6 7 8

When the target dies, the debuffs stop working and the next sub picks up:


/if (!${Me.Casting.ID}) /twist 1 2 3 4

However when I again acquire a new target, since I am already singing

/if (!${Me.Casting.ID}) /twist 1 2 3 4 5 6 7 8 no longer works.

Using

/if (${Target.PctHPs}<0.97 && ${Target.Type.Equal[NPC]} && $(Target.Type.NotEqual[CORPSE])) /twist stop

Does not work, I don't want to do anything complicated and I don't want"/twist stop" repeated over and over again.

Would /if (${Target.PctHPs}> 0.97 && ${Target.Type.Equal[NPC]} && $(Target.Type.NotEqual[CORPSE])) /twist stop stop the /twist 1 2 3 4 song?

I want this to work seamlessly and start /if (!${Me.Casting.ID}) /twist 1 2 3 4 5 6 7 8 song.

Thanks! :D
Image
Created by Azera of Tribunal

Noren
Posts: 1053

Re: MQ2 Helpdesk

Post#88 » Thu Jan 10, 2013 3:13 pm

@Dell

(I didn't test this, could be totally useless) You could try something like this:

Code: Select all

Sub Main
 :HaveTarget
 /if (${Target.PctHPs}<97 && ${Target.Type.Equal[NPC]} && ${Target.Type.NotEqual[CORPSE]} && !${Me.Casting.ID}) /twist 1 2 3 4 5 6 7 8
 /if (!${Me.Casting.ID}) /goto :WaitingForTarget
 /goto :HaveTarget

/return

:WaitingForTarget
 /if (${Target.PctHPs}<97 && ${Target.Type.Equal[NPC]} && ${Target.Type.NotEqual[CORPSE]}) /goto :HaveTarget
 /if (!${Me.Casting.ID}) /twist 1 2 3 4
 /goto :WaitingForTarget

/return


Also be careful how you use "(" and "{". I know you were probably just writing out rough examples, but a couple times those two were swapped!

User avatar
Dellanx
Posts: 300

Re: MQ2 Helpdesk

Post#89 » Fri Jan 11, 2013 4:38 pm

Finally got it to work.. LoL. Although I wonder if its worth it for most but the raid encounters.

Code: Select all

Sub Song


/if (${Target.PctHPs}> 0.97) /goto :L
/if (${Me.Combat}) /twist stop
/if (!${Me.Casting.ID}) /twist 2 3 8 9
/return
:L
/if (!${Me.Combat}) /twist stop
/if (!${Me.Casting.ID}) /twist 1 2 3 4 5 6 8 9
 }
/return


The only annoying part of this macro is that, one would have a hard time clicking my Charm to get to the forest. I have handled that with a hot key, I suppose this could be handled with an event.

Code: Select all

/mac 1.mac (blank macro - turns off macro)
/twist stop
/exchange "ItemName" ${InvSlot[Pack8]}
/delay 1s
/itemnotify ${FindItem["FoodName"].InvSlot[29]} rightmouseup


I put in some code in my macro to not do anything if my bard is stunned, however I thing that when a mob summons him, the client crashes. I think this happens to my other toons as well. In general I think that summoning is annoying, and causes client crashes. I cant prove it, but that has been my observation.

Is there any code to know if one is summoned by a mob?

Thanks, :D
Image
Created by Azera of Tribunal

Noren
Posts: 1053

Re: MQ2 Helpdesk

Post#90 » Fri Jan 11, 2013 5:40 pm

Dell,

/if (!${Me.Casting.ID}) /twist 1 2 3 4 5 6 8 9
}
/return
won't work because you are closing a bracket that never existed.

As for triggering something when you're summoned, that's a good time to use a chat event.
Something like

Code: Select all

#Event Summoned "#*#You have been summoned#*#"

SUB Event_Summoned(string Line)
 ...
/return


At any rate, if you use /melody instead of /twist, you won't run into problems when clicking your charm - but I have to ask: why are you twisting 8 songs? I scarely have room for ANY buffs in my song window with all of the clickies and auras, let alone 4 bard ones. And then bards can only maintain 4 songs with 100% uptime as far as I can recall. Anywho, my recommendation would be to ditch /twist if it's causing crashes, try /melody, and maybe bring your # of twisted songs down hehe.

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 1 guest

cron