Plugin request

Status
Not open for further replies.

thez

Rhymes well with Pez
Joined
Oct 25, 2006
Messages
966
Reaction score
0
Points
0
Location
Santa Cruz
Those of you that know me know that I don't normally just ask for something. I'm the kind of person that likes to figure something out, because there's more benefit in it. But I've tried starting this plugin every which way I can imagine, looked at all the examples I can look at, and to be honest, I'm just done with the project, so I was hoping I could ask here and see what would happen.

I use my HUD to track the buffs that my necro needs. The segment is this:
Code:
[buffs]
Title=3,152,106,0,255,255,Missing Buffs
Nec=3,153,116,255,0,0,${If[!${Me.Buff[Otherside Rk. II].Duration},Lich,]}
AoE=3,152,126,255,0,0,${If[!${Me.Buff[Aura of Eternity].Duration},Aura,]}
FoE=3,152,136,255,0,0,${If[!${Me.Buff[Form of Endurance II].Duration},Veil,]}
Regen=3,152,146,255,0,0,${If[!${Me.Buff[Frostreaver's Blessing].Duration},Ring,]}
Mana=3,150,156,255,0,0,${If[!${Me.Buff[Reyfin's Racing Thoughts].Duration},Mana,]}
Mask=3,150,166,255,0,0,${If[!${Me.Buff[Aura of Pure Arcanum].Duration},Mask,]}
Lev=3,150,176,255,0,0,${If[!${Me.Levitating},Levi,]}
Dru1=3,152,186,255,0,0,${If[!${Me.Buff[Hand of Conviction].Duration},${If[!${Me.Buff[Conviction].Duration},${If[!${Me.Buff[Blessing of Steeloak].Duration},${If[!${Me.Buff[Direwild Skin].Duration},${If[!${Me.Buff[Direwild Skin Rk. II].Duration},${If[!${Me.Buff[Steeloak Skin].Duration},${If[!${Me.Buff[Blessing of the Direwild].Duration},${If[!${Me.Buff[Blessing of the Direwild Rk. II].Duration},Skin,]},]},]},]},]},]},]},]}
Dru2=3,152,186,255,0,0,${If[${Me.Buff[Conviction].Duration},Skin(Conv),]}
Dru4=3,152,186,255,0,0,${If[${Me.Buff[Tenacity].Duration},Skin(Tenacity),]}
Dru4=3,152,186,255,0,0,${If[${Me.Buff[Tenacity Rk. II].Duration},Skin(Tenacity),]}
Dru3=3,152,186,255,0,0,${If[${Me.Buff[Hand of Tenacity].Duration},Skin(Tenacity),]}
Dru3=3,152,186,255,0,0,${If[${Me.Buff[Hand of Tenacity Rk. II].Duration},Skin(Tenacity),]}
Dru5=3,152,186,255,0,0,${If[${Me.Buff[Hand of Conviction].Duration},Skin(Conv),]}
Clr1=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Blessing of Steeloak].Duration},Symbol,]},]},]},]},]},]},]}
Clr2=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Steeloak Skin].Duration},Symbol,]},]},]},]},]},]},]}
Clr4=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Direwild Skin].Duration},Symbol,]},]},]},]},]},]},]}
Clr6=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Direwild Skin Rk. II].Duration},Symbol,]},]},]},]},]},]},]}
Clr7=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Blessing of the Direwild Rk. II].Duration},Symbol,]},]},]},]},]},]},]}
Clr8=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Blessing of the Direwild].Duration},Symbol,]},]},]},]},]},]},]}
Clr5=3,152,196,255,0,0,${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[${Me.Buff[Blessing of Direwild].Duration},Symbol,]},]},]},]},]},]},]}
Clr3=3,152,196,255,0,0,${If[!${Me.Buff[Conviction].Duration},${If[!${Me.Buff[Tenacity].Duration},${If[!${Me.Buff[Tenacity Rk. II].Duration},${If[!${Me.Buff[Hand of Conviction].Duration},${If[!${Me.Buff[Hand of Tenacity].Duration},${If[!${Me.Buff[Balikor's Mark].Duration},${If[!${Me.Buff[Elushar's Mark].Duration},${If[!${Me.Buff[Elushar's Mark Rk. II].Duration},${If[!${Me.Buff[Symbol of Balikor].Duration},${If[!${Me.Buff[Symbol of Elushar].Duration},${If[!${Me.Buff[Symbol of Elushar Rk. II].Duration},${If[!${Me.Buff[Blessing of Direwild].Duration},${If[!${Me.Buff[Blessing of Direwild Rk. II].Duration},${If[!${Me.Buff[Blessing of Steeloak].Duration},${If[!${Me.Buff[Direwild Skin].Duration},${If[!${Me.Buff[Direwild Skin Rk. II].Duration},${If[!${Me.Buff[Steeloak Skin].Duration},Tenacity/Symbol,]},]},]},]},]},]},]},]},]},]},]},]},]},]},]},]},]}
Pal=3,152,206,255,0,0,${If[!${Me.Buff[Brell's Brawny Bulwark].Duration},${If[!${Me.Buff[Brell's Stony Guard].Duration},${If[!${Me.Buff[Brell's Stony Guard Rk. II].Duration},Brells,]},]},]}
Pal2=3,152,206,255,0,0,${If[${Me.Buff[Spiritual Vim].Duration},Brells(Vim),]}
Shm=3,152,216,255,0,0,${If[!${Me.Buff[Dire Focusing Rk. II].Duration},${If[!${Me.Buff[Dire Focusing].Duration},${If[!${Me.Buff[Wunshi's Focusing].Duration},${If[!${Me.Buff[Talisman of the Dire].Duration},${If[!${Me.Buff[Talisman of the Dire Rk. II].Duration},${If[!${Me.Buff[Talisman of Wunshi].Duration},Focus,]},]},]},]},]},]}
Bst=3,152,226,255,0,0,${If[!${Me.Buff[Spiritual Enlightenment].Duration},${If[!${Me.Buff[Spiritual Enlightenment Rk. II].Duration},${If[!${Me.Buff[Spiritual Ascendance].Duration},Bst crack,]},]},]}
Enc=3,152,236,255,0,0,${If[!${Me.Buff[Gift of Brilliance].Duration},GoB,]}

As you can see, it's fairly insane. And while it works, it's fairly inefficient, and ends up lagging me out even when I've adjusted the HUD updating frequency, etc.

So here's what I'm looking for:
A plugin that makes available as MQ2Data whether or not you have a spell from a defined list of spells on you. The list would be defined in a section of an INI, where the plugin is told to look at all (or preferably, just some) of the sections. Each section would be a spell line. Under [Cleric]: Virtue, Hand of Virtue, Conviction, Hand of Conviction, Tenacity, Tenacity Rk. II, Tenacity Rk. III, Hand of Tenacity, Hand of Tenacity Rk. II, Hand of Tenacity Rk. III, and then on to druid skin buffs, etc. If there is a buff on you in that ini section, the plugin tells the TLO that you don't need the buff. Say... ${Buff.Need} spits out all of the sections that aren't on you, ${Buff.Need[Cleric]} returns whether or not you have a buff from that section.

Now obviously, this is something of a tall order, even if the types of examples for code that are needed are out there...MQ2Hud for the section usage, MQ2Debuff for the TLO setting, MQ2Bufftools for the code for reading buff window.

If it's too much...well, just tell me, and I'll go back to dreaming. If it's too much to do for free...let me know, we'll see if we can work something out.

Thanks in advance,
TheZ
 
Status
Not open for further replies.