EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Z-Man's Click-to-Cure Buttons (https://www.eq2interface.com/forums/showthread.php?t=7396)

Arremis 12-14-2006 04:59 AM

Z-Man's Click-to-Cure Buttons
 
In the game when you're casting a spell and you click another spell button it causes the second one to queue. I was poking around in the xml files today when something came to my attention. In the Click-to-Cure button for Trauma cures I noticed it sensically starts with the highest level cure and digs through the spellbook until it finds it. When playing a templar, they have both Ardent Resolve (Level 56) and Cure Arcane (Level 28), both which appear in the Click-to-Cure Trauma button.

My question is, when you click on the button, and it casts Ardent Resolve, why does it not queue and cast Cure Trauma?

Zonx 12-14-2006 07:36 AM

Ehmm... depends how this flavor of ClickCures is implemented. I've seen more complex versions that use class and level comparisons to cast only the highest cure available for your class and lvl.

My ClickCures implementation (the original) uses a simple "try them all from high - low" aproach. If that's the case with this mod...

I'm guessing both spells are on the same refresh timer, in which case it does queue Cure Arcane, its just not ready to be cast just after the higher level spell has been cast.

Queued actions cancel after a short time if the spell is still refreshing.

Arremis 12-14-2006 10:56 AM

I'm interested in this 'class and level comparisons' idea. Can you explain it to me, perhaps an example I can look at? :D

Zonx 12-14-2006 05:39 PM

I seam to recall a version that used a separate datasource for each class and debuff type. Items in a given datasource listed the spell name to be cast at each level. It then used DynamicData for class and level to reference the corisponding spell from the datasource for the useability command.

You'll have to find which mod is setup this way. I didn't set mine up this way for several reasons.

1) Editing the spell list becomes much more of a hasle. You have to include a spell name for every level, even if its the same spell.

2) It wont automatically attempt the variants of the cure unless you list those at every level also.

3) The code is WAY more complicated, making it much more likely a novice user will mangle the code attempting to change the spell list.

4) This implementation depends on concatination, which wasn't posible when I first released ClickCures.

The only real advantage is that it cuts down on most of the "can't find that spell" spam.

Arremis 12-14-2006 06:08 PM

Wow Z-Man you continue to impress me with your linear logic....makes perfect sense....it would be a HUGE undertaking and LOT of debugging....sounds like fun MWAHAHAHA!!! Still learning here but I'm not about to pass up any oppertunity to pick that gnomish noggin of yours hehehe thanks :D :nana:

Zonx 12-15-2006 10:36 AM

For the record, Z-Man is an entierly different person.

Oh and Zonx is a female troll. She eats gnomes by the bag full :D

gm9 12-15-2006 05:09 PM

Quote:

Originally Posted by Zonx
For the record, Z-Man is an entierly different person.

Multiple personality disorder? ;)

And don't you dare to pick your teeth with my gnomish self! :eek:

lordebon 12-15-2006 05:49 PM

Gnomes aren't fer eating... they're fer punting!

The Gnome is back, it's up, it's going... going... going... it's good!

Zonx 12-16-2006 04:36 AM

Seriously, Z-Man is a totaly different author. The Z-Man version of ClickCures was not produced by me.

Arremis 12-16-2006 07:11 AM

Oh Oh Oh I get it now....Z-Man is the guy who does the Click-to-Cures and Z-Babe is the troll with gnomish brain! That makes sense :D


All times are GMT -5. The time now is 10:39 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI