EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > ProfitUI

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 06-28-2009, 12:58 PM
isabel80 isabel80 is offline
A Young Mystail Rat
 
Join Date: Oct 2005
Server: Splitpaw
Posts: 4
Question Adding Ancestral Balm into group window

I'd like to add another spell (Mystic spell: Ancestral Balm) right besides the cures for each group member. I see the button in the UI so far, but now i am kinda stuck as it doesn't work correctly.

1. I successfully added the button in the eq2ui_mainhud_groupmembers.xml.
For each group member i added these lines (i changed the groupmember counter for each member of course going from 0-5):

<Button Location="96,0" Name="AncestralBalm" OnPress="Parent.Parent.Parent.Parent.Custom.ProfitUI_CuresCode.AncestralBalm.Pre ss=true Parent.Parent.Parent.Parent.Custom.ProfitUI_CuresCode.Target=Parent.Parent.Group Member0.MemberInfoPage.MemberInfo.Name.Text" Opacity="0.000" ScrollExtent="18,18" Size="18,18" Style="/ProfitUI_Styles.invisible" />

2. I added some lines into the _ProfitUI_Cures.txt, which looks now like this(there are just 2 classes listed as examples, in my file there is a line for every class of course):

<?xml version="1.0" encoding="utf-8"?>
<Page Name="ProfitUI_Cures">

<Data Name="CancelSpellcast" Value="true"/>

<Data Name="TraumaMacro" Code="" />
<Data Name="ArcaneMacro" Code="" />
<Data Name="NoxiousMacro" Code="" />
<Data Name="ElementalMacro" Code="" />
<Data Name="CurseMacro" Code="" />
<Data Name="AncestralBalmMacro" Code="" />

<Data Name="TraumaPotion" potionvdl_2="1199379400" potionvdl_1="855760996" potionvdl_3="-292985664"/>
<Data Name="ArcanePotion" potionvdl_2="633056365" potionvdl_1="1372020673" potionvdl_3="-1940923547"/>
<Data Name="NoxiousPotion" potionvdl_2="771875864" potionvdl_1="-250251480" potionvdl_3="544446557"/>
<Data Name="ElementalPotion" potionvdl_2="-885373083" potionvdl_1="2105175164" potionvdl_3="528994112"/>

<Data Name="Monk" TraumaCure="NONE" ArcaneCure="NONE" NoxiousCure="NONE" ElementalCure="NONE" CurseCure="NONE" AncestralBalm="NONE"/>
<Data Name="Mystic" TraumaCure="Cure" ArcaneCure="Cure" NoxiousCure="Cure" ElementalCure="Cure" CurseCure="Cure Curse" AncestralBalm="Ancestral Balm"/>

</Page>

3. Last thing i did was adding a tag into _ProfitUI_CuresCode.xml:

<?xml version="1.0" encoding="utf-8" ?>
- <Page Name="ProfitUI_CuresCode">
<Button Name="CureSpell" OnActivate="useabilityonplayer Parent.Target Parent.Cure Activated=false" />
<Button Name="CurePotion" OnActivate="Parent.GetPotionLocation.Press=true use_itemvdl Parent.Potion_1 use_itemvdl Parent.Potion_2 use_itemvdl Parent.Potion_3 Activated=false" />
<Button Name="CustomMacro" />
<Button Name="CureTrauma" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.TraumaMacro.Code Parent.DoCure.Press=true Parent.CureName='Trauma'" />
<Button Name="CureArcane" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.ArcaneMacro.Code Parent.DoCure.Press=true Parent.CureName='Arcane'" />
<Button Name="CureNoxious" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.NoxiousMacro.Code Parent.DoCure.Press=true Parent.CureName='Noxious'" />
<Button Name="CureElemental" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.ElementalMacro.Code Parent.DoCure.Press=true Parent.CureName='Elemental'" />
<Button Name="CureCurse" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.CurseMacro.Code Parent.DoCure.Press=true Parent.CureName='Curse'" />
<Button Name="AncestralBalm" OnPress="Parent.CustomMacro.Press=true Parent.CustomMacro.OnPress=Parent.ProfitUI_Cures.AncestralBalmMacro.Code Parent.DoCure.Press=true Parent.CureName='AncestralBalm'" />
<Button Name="Configure" />
<Button Name="GetSpellLocation" OnPress="SpellLocation='Parent.ProfitUI_Cures.' ## (Parent.Parent.Parent._HUD.ProfitUI_SubclassDetector.Subclass) ## '.' ## (Parent.CureName) ## 'Cure' Parent.Configure.OnPress='Parent.Cure=' ## (SpellLocation) Parent.Configure.Press=true" />
<Button Name="GetPotionLocation" OnPress="PotionLocation='Parent.ProfitUI_Cures.' ## (Parent.CureName) ## 'Potion.potionvdl_1' Parent.Configure.OnPress='Parent.Potion_1=' ## (PotionLocation) Parent.Configure.Press=true PotionLocation='Parent.ProfitUI_Cures.' ## (Parent.CureName) ## 'Potion.potionvdl_2' Parent.Configure.OnPress='Parent.Potion_2=' ## (PotionLocation) Parent.Configure.Press=true PotionLocation='Parent.ProfitUI_Cures.' ## (Parent.CureName) ## 'Potion.potionvdl_3' Parent.Configure.OnPress='Parent.Potion_3=' ## (PotionLocation) Parent.Configure.Press=true" />
<Button Name="GetCancelSpellcastFromFile" OnPress="Parent.CancelSpellcast=Parent.ProfitUI_Cures.CancelSpellcast.Value" />
<Button Name="CancelSpellcast" OnActivate="clearallqueuedabilities cancel_spellcast Activated=false" />
<Button Name="DoCure" OnPress="Parent.GetSpellLocation.Press=true Parent.CancelSpellcast.Activated=Parent.CancelSpellcast COND=Parent.Cure=='NONE' HAS_SPELL=COND ? false : true Parent.CureSpell.Activated=HAS_SPELL COND=(Parent.Target==Parent.Self.Text) Parent.CurePotion.Activated=COND ? '!'HAS_SPELL : false" />
<Text DynamicData="/GameData.Self.Name" Name="Self" />
<include>_ProfitUI_Cures.txt</include>
</Page>

I restarted the client several times now, but all i get when i use the button is "This spell or ability is no longer available."

Does anyone have any idea what i am doing wrong here?
Reply With Quote
  #2  
Unread 06-29-2009, 05:48 AM
isabel80 isabel80 is offline
A Young Mystail Rat
 
Join Date: Oct 2005
Server: Splitpaw
Posts: 4
Default further review

I took a closer look at the ProfitUI_CureCodes.xml.

The following line might cause the issue.

<Button Name="GetSpellLocation" OnPress="SpellLocation='Parent.ProfitUI_Cures.' ## (Parent.Parent.Parent._HUD.ProfitUI_SubclassDetector.Subclass) ## '.' ## (Parent.CureName) ## 'Cure' Parent.Configure.OnPress='Parent.Cure=' ## (SpellLocation) Parent.Configure.Press=true" />

As i am at work and don't have all the sources with me i'll check later if i'd need to change any other xml file in order to make this work.

But if anyone got an idea feel free to post
Reply With Quote
  #3  
Unread 06-29-2009, 02:10 PM
isabel80 isabel80 is offline
A Young Mystail Rat
 
Join Date: Oct 2005
Server: Splitpaw
Posts: 4
Cool Fixed it myself

I fixed it myself

If you look at the line i posted before, you'll see that there will be set together the name of a variable. This variable is used to read the name of the cure spell from the ProfitUI_Cures.txt. What i didn't see is that it always adds a string called 'Cure' after the name of this variable (marked bold):


<Button Name="GetSpellLocation" OnPress="SpellLocation='Parent.ProfitUI_Cures.' ## (Parent.Parent.Parent._HUD.ProfitUI_SubclassDetector.Subclass) ## '.' ## (Parent.CureName) ## 'Cure' Parent.Configure.OnPress='Parent.Cure=' ## (SpellLocation) Parent.Configure.Press=true" />

This means in the ProfitUI_Cures.txt i needed to add the word 'Cure'.

Example:

<Data Name="Inquisitor" TraumaCure="Cure" ArcaneCure="Cure" NoxiousCure="Cure" ElementalCure="Cure" CurseCure="Cure Curse" AncestralBalmCure="NONE"/>
<Data Name="Monk" TraumaCure="NONE" ArcaneCure="NONE" NoxiousCure="NONE" ElementalCure="NONE" CurseCure="NONE" AncestralBalmCure="NONE"/>
<Data Name="Mystic" TraumaCure="Cure" ArcaneCure="Cure" NoxiousCure="Cure" ElementalCure="Cure" CurseCure="Cure Curse" AncestralBalmCure="Ancestral Balm"/>
<Data Name="Necromancer" TraumaCure="NONE" ArcaneCure="Cure Arcane" NoxiousCure="NONE" ElementalCure="NONE" CurseCure="NONE" AncestralBalmCure="NONE"/>

Now it works correctly
Reply With Quote
  #4  
Unread 06-29-2009, 02:45 PM
isabel80 isabel80 is offline
A Young Mystail Rat
 
Join Date: Oct 2005
Server: Splitpaw
Posts: 4
Default Download




http://www.filefront.com/13944771/An...e-Button.zip//
Reply With Quote
  #5  
Unread 06-29-2009, 06:30 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by isabel80 View Post
nice. feel free to just upload it here as an addon to the ProfitUI download, easier to find for people
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:55 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI