Page 2 of 8

Posted: Sat Nov 08, 2003 1:52 am
by Teh_ish
Updated EQTypes:

[Zapping to keep thread clean, and free out outdated stuff... these are all in the first page code block]

Posted: Sat Nov 08, 2003 1:54 am
by Teh_ish
Lax wrote:Next order of business is see if we can make our own xml type that uses strings instead of numbers, so we can just parse the string directly with PMP...
While that would be good, I'd have to say that buttons would be a helluva lot more useful. The numbers are a bit of a hassle but once you adjust it's not a biggy.. Buttons.. So much power in buttons ;)

Posted: Sat Nov 08, 2003 1:55 am
by Lax
In fact I know exactly what to do. Hold the parade, I'll have some code up soon

Posted: Sat Nov 08, 2003 1:59 am
by Plazmic
I think to do this "right", it would require:
1. Our own CPMPLabel class based on CSIDLWND with a custom Draw method that would send our <PMPString> tag value through ParseMacroParameter()
2. Editing SIDL.xml to define our class's xml layout.
3. A hook in the XML parser to interpret our class during parsing, initalize it, etc...

Posted: Sat Nov 08, 2003 2:09 am
by Lax
I've got something easier I think.

Hook CLabel__Draw which is 0x4F903B
public: virtual int __thiscall CLabel::Draw(void)const

SlotID is the variable for the EQType. If SlotID==MQL_CUSTOM, trampoline then PMP the XMLToolTip which is from <ToolTipReference> tag. Set window text equal to the parsed result, and we're golden. If it's not our custom slot id then just trampoline.

Try that, too busy right now to whip it up but could do it in the morning if needed

Posted: Sat Nov 08, 2003 2:28 am
by kagonis
Should add $target(id) to the above list, would be a nice way to keep track of the mobs, especially for debuffing multiple mobs that are standing on top of each other :)

Posted: Sat Nov 08, 2003 2:31 am
by Plazmic
Done coding the custom id's, just need to test it quick, then I'll update the main post.

Posted: Sat Nov 08, 2003 2:49 am
by Plazmic
Front page updated with new code...

Posted: Sat Nov 08, 2003 2:50 am
by Teh_ish
Plazmic wrote:Front page updated with new code...
Going to be updating zip?

Posted: Sat Nov 08, 2003 2:51 am
by Lax
Relax for a few, grab coffee grab smoke whatever, getting my version to work ;)

Posted: Sat Nov 08, 2003 2:51 am
by Teh_ish
Lax wrote:Relax for a few, grab coffee grab smoke whatever, getting my version to work ;)
Need.. Now.. *twitch* Actually I'll just add it onto my own. Sorry I seem a lil eager :P

Posted: Sat Nov 08, 2003 2:51 am
by Plazmic
Me or him? grabbing a smoke myself ;)

and just in case it isn't obvious... the old hook and detour/trampoline (and #define in mq.h) go away

Posted: Sat Nov 08, 2003 2:55 am
by Plazmic
Oh, and I just checked this thread is averaging about 1 view every minute for the last 4 hours ;)

Posted: Sat Nov 08, 2003 3:04 am
by Plazmic
Was thinking... should we put the <115 check back in to save a couple cycles when it is a standard VI EQType?

Posted: Sat Nov 08, 2003 3:06 am
by Teh_ish
Plazmic wrote:Was thinking... should we put the <115 check back in to save a couple cycles when it is a standard VI EQType?
Might as well.