method Add(string theList) { if ${UIElement[lstInventory@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem(exists)} { ${theList}List:Add[${UIElement[lstInventory@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text}] List:Remove[${UIElement[lstInventory@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text}] This:UpdateItemsGUI } elseif ${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem(exists)} { variable string iName = "" variable string iList = "" variable int TextColor TextColor:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Value}] switch ${TextColor} { case INV_SELL iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[7,100]}] iList:Set[Sell] break case INV_KEEP iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[7,100]}] iList:Set[Keep] break case INV_MULE iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[7,100]}] iList:Set[Mule] break case INV_BANK iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[7,100]}] iList:Set[Bank] break case INV_DESTROY iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[10,100]}] iList:Set[Destroy] break case INV_OPEN iName:Set[${UIElement[lstListed@Items@InvPages@Inventory@Pages@OpenBot].SelectedItem.Text.Mid[7,100]}] iList:Set[Open] break } ${iList}List:Remove[${iName}] ${theList}List:Add[${iName}] This:UpdateItemsGUI } }