i've finally get it to work partially, but there something strange
if i choose one of the line then clicking the button, the effect of the spell/item ( equip first, and use at second press on the button for the item) launch correctly
but if i try to launch another one after that it's like it keep in memory the first script but not the new one
here is the code for the ui as it is now
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page BackgroundColor="#554736" eq2usescomwndcontrols="true" Name="tp" OnHide="visible=True" ScrollExtent="220,20" Size="220,20" UserMovable="true">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/rectlist.win_plain" ScrollExtent="221,21" Size="221,21" />
<Button Location="1,1" Name="TpButton" OnActivate="Parent.Tp_Dropdownbox.SelectedItem.Script" OnPress="Activated=False Activated=True OnActivate=Parent.Tp_Dropdownbox.SelectedItem.Script" ScrollExtent="19,19" Size="19,19" Style="/CommonElements.SmallPushButton" />
<Dropdownbox DataSource="TpDestinationDS" Location="20,2" Name="Tp_Dropdownbox" OnSelect="OnActivated=SelectedItem.Script
Activated=True" PackSize="a,f" RowTemplate="/Templates.dropdowntemplate" ScrollExtent="197,18" Size="197,18" Style="/Fetish.dropdownlist.dropdown_default" />
<DataSource Name="TpDestinationDS">
<Data Name="TP000" text="Choose Your Destination..." />
<Data Name="TP001" text="-------------------Spell-------------------" />
<Data Name="TP002" text="Spire Portal" Script="useability 1634378213"/>
<Data Name="TP003" text="Druid Ring Portal" Script="useability 41973245"/>
<Data Name="TP004" text="Home Sweet Home" Script="useability 368171195"/>
<Data Name="TP005" Text="Guild Hall" Script="useability 3266969222" />
<Data Name="TP006" text="----------------Item--------------------" />
<Data Name="TP007" text="Quel'ule" Script="inventory equipvdl -703437333
use_itemvdl -703437333
Activated=False" />
<Data Name="TP008" />
<Data Name="TP009" />
<Data Name="TP010" />
</DataSource>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Framebutton" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/rectlist.win_plain" ScrollExtent="21,21" Size="21,21" />
<Page AbsorbsInput="false" BackgroundOpacity="1.000" eq2usecomwndcontrols="true" Location="0,-1" Name="Bkg" PackSize="absolute,absolute" RStyleDefault="/SpecialElements.Compass.data.bkg.rect" ScrollExtent="218,22" Size="218,22" />
</Page>
is there something odd ? is there a command to reset the last script chosen or something else , searched trough the forum but didn't see anything