Page 1 of 2

Debuffs/Target Window?

Posted: Fri Jun 20, 2014 10:34 pm
by PussyFoot
Is there a way to access the target window or a data structure related to it to see what buffs/debuffs are present on a mob? From what I can tell from the different autobots/kissassist stuff they tend to use an array of mobnames to keep track of who has been debuffed and who hasn't. I'd like to add in some debuffs to one of the macros I'm working on to make the enchanter Mez/slow/cripple each mob that he's assisting with. (It's a pulling routine so I don't want to use one of the existing ones.)

I seem to remember a plugin a long time ago, but I can't seem to find it on the search (maybe I'm just inept.) Any help pointing me in the right direction would be very much appreciated.

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 10:54 am
by nytemyst

Code: Select all

/declare i int local
/if (${Target.ID} && ${Target.BuffCount) {
	/for i 1 to ${Target.BuffCount}
   	/echo ${Target.CleanName} has ${Target.Buff[${i}]} on them.
/next i
}

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 12:44 pm
by warlock45
As far as plugins, you may be thinking about MQ2Debuff (which helps with debuffs on yourself...poison/slow ect) or MQ2CastTimer, which tracks spells you have cast...least that is how I understand them.

Target information has been updated so you can look for a specific buff/debuff, or a number of other things. Like ${Target.Slowed} covers most (if not all) forms of slow, and will return a true/false. IE /if (!${Target.Slowed}) /cast Tigirs Insect....if memory served.

Afraid I am at work and not fluent enough in code to rattle off more then that, though the wiki ought to be updated, as well as the ReadMe.chm in the MQ download. Or if you can sweet talk Pete into a copy of his TLO builder spreadsheet (and have MS Excel, nothing else will work!) He may have it updated as well.

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 12:53 pm
by PeteSampras
Target.BuffDuration[], Target.Buff[], or the custom Target.Slowed, Target.Mezzed, Target.Tashed. etc. depending on what info you want. There are different returns for each. TickType, Int, whatever. You would need to read the patch notes/wiki to see what does what.

I can't post the .xlsm file because it isnt a supported file type for this website. It also desparately needs updated with all the changes in the last ~8 months since I've built it. I've added over 100 TLO members just with my ****** plugin alone in the last 2 months.

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 3:36 pm
by warlock45
Damn dude, your on a quest to make the energizer bunny feel like the turtle aintcha

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 4:28 pm
by PeteSampras
warlock45 wrote:Damn dude, your on a quest to make the energizer bunny feel like the turtle aintcha
Lol, if you'd like to see how I spend my time you can load up this plugin. It's a bot plugin. You just toss it into your mq2 folder, load it, then type /bot on to activate it. Should pretty much play any toon without requiring any input unless you want to do advanced stuff.

I have a wiki for it with all the commands/TLOs. A bunch of them are the Target.Whatever TLOs, some were added here, some werent.

http://www.mmobugs.com/wiki/index.php/******

5 minutes later...
So apparently you cant update a .dll either. I can make it a zip i guess. I cant do that with the .xlsm because it is still over 256k (site size limit).

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 6:44 pm
by warlock45
o.0

bot plugin, interesting notion, heh.

Gave it a go on a few toons. With out any set up what so ever other then loading plugin and turning it on... it self buffed/summoned. Pulled a yellow con PHer, bot treated it like a named and went to town on it, gave some error about misuse of TLO, then crashed to desktop. (I imagine the crash is probably due to lacking MQ2MMOTLO or difference in plugins)

Very impressive that with 0 set up it was able to self buff and go into combat pronto, with very fast recast. Looking over the wiki (and how often it has been viewed) it appears you put a lot of effort into it. Very cool looking

/BOWS

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 6:55 pm
by PeteSampras
Oh, hmm. Ya I guess there are plugin differences. It was designed to be self contained though. I think it works with redguides too, which as far as I know is standard compile stuff. There must be something I overlooked with a plain vanilla build though (unless you didnt have the required plugins loaded for whatever you were trying to do). Anyway, ya, it's pretty plug and play for our compile. There are still a handful of spell lines it doesnt auto figure out and use yet, but I am slowing getting those added.

It requires MQ2Cast, and then a few others based on what you are trying to do.
http://www.mmobugs.com/wiki/index.php/M ... ed_plugins

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 7:36 pm
by Randyleo
Does this plugin require a subscription to MMOBugs?

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 8:20 pm
by warlock45
Aye the only ones I didn't have were the MMO one and ADV loot, though i took it that loot wasn't required (certainly didn't make it to a point it would loot)

Have the latest for MQ2cast, though from your past posts ours is probably different from yours.

It looks very damn cool though. Obviously you put a lot of effort into it, and sure didn't mean to sound like it was a complaint, just offering my experience is all. =D

Re: Debuffs/Target Window?

Posted: Sat Jun 21, 2014 10:51 pm
by PussyFoot
Thanks guys, almost have all the bugs worked out of my "Into the Hills" for enchanter pullers.

Re: Debuffs/Target Window?

Posted: Sun Jun 22, 2014 2:57 am
by PeteSampras
@******. No, mmobugs isn't required. It just allows access to authorize full version on any account all at once rather than by soe login. I added more/unlimited stuff to those that provide feedback. It only absolutely requires basic mq2cast functions outside of internal processes.

Re: Debuffs/Target Window?

Posted: Sun Jun 22, 2014 6:09 pm
by PussyFoot
So this works:

Code: Select all

		/if (!${Target.Slowed}) /call cast "Dreary Deeds"
To get it to cast, but then it returns "Dreary Deeds" when it is already tashed and exits with the following error: Failed to parse /if condition (Dreary Deeds), non numeric encounter. So when it returns Null its fine, but it returns a string... so I guess I need to do some sort of string compare or some kind of string count?

So my work around:

Code: Select all

/if (!${Target.Buff[${Target.Slowed}].ID}) {
			/echo Mob not slowed, slowing it.
			/alt act 753
			/delay 4s
		}
But ${Target.Tashed} seems to return NULL with both AA tash and enunciation of tashan Rk. II, maybe I'll just check for a buff there.

Re: Debuffs/Target Window?

Posted: Sun Jun 22, 2014 7:13 pm
by PeteSampras
I don't think the .Slowed was put in how I suggested, but if it is, then it returns a time remaining tick count. I'm on my cell phone ATM and don't feel like surfing the patch notes. Check out what the return type is and adjust accordingly. You can't return a string as a true/false. That is why you are getting the error it's saying. I know he put a couple examples in the notes. Around march timeframe patch notes.

Re: Debuffs/Target Window?

Posted: Sun Jun 22, 2014 7:44 pm
by PussyFoot
PeteSampras wrote:I don't think the .Slowed was put in how I suggested, but if it is, then it returns a time remaining tick count. I'm on my cell phone ATM and don't feel like surfing the patch notes. Check out what the return type is and adjust accordingly. You can't return a string as a true/false. That is why you are getting the error it's saying. I know he put a couple examples in the notes. Around march timeframe patch notes.
- Added a Slowed,Rooted,Mezzed,Crippled,Snared and Hasted
to the TargetType TLO.
they all return a pTargetBuffType TLO which has 3 members:
Address (pIntType), Index (pIntType) and Duration (pTicksType).
It also inherits pSpellType.
This means that you can to stuff like:
/echo ${Target.Slowed.Name} will fade in ${Target.Slowed.Duration.TotalSeconds}s
[MQ2] Tepid Deeds will fade in 114s
/echo ${Target} will break mezz in ${Target.Mezzed.Duration.TotalSeconds}s
[MQ2] a_pyre_beetle48 will break mezz in 66s


So I should be able to do /if (${Target.Slowed.Duration}) event, I may try that later but so far it's working by using the string as a buff index and then using the ID. Thanks for all the help!