EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > ProfitUI

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 03:22 AM.


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