[RewardPanel]
// Check if the RewardPanel is open.
if(LokiPoe.InGameState.RewardPanel.IsOpened)
{
}
// List all items in the RewardPanel.
foreach(var item in LokiPoe.InGameState.RewardPanel.Items)
{
// ...
}
// Choose a reward by full name.
var result = LokiPoe.InGameState.RewardPanel.Choose("Contagion");
[PurchasePanel]
// Check if the PurchasePanel is open.
if(LokiPoe.InGameState.PurchasePanel.IsOpened)
{
}
// Wait for contents to load when first opening the panel.
LokiPoe.InGameState.RewardPanel.WaitForPurchase();
// List all tabs in the PurchasePanel.
foreach(var tab in LokiPoe.InGameState.PurchasePanel.TabNames)
{
Log.InfoFormat("{0}", tab);
}
// Get the current tab's name
var result = LokiPoe.InGameState.PurchasePanel.CurrentTabName;
// Switch to a specific tab.
var result = LokiPoe.InGameState.PurchasePanel.SwitchToTab("-2-");
// Move to the previous tab.
var result = LokiPoe.InGameState.PurchasePanel.PreviousTab();
// Move to the next tab.
var result = LokiPoe.InGameState.PurchasePanel.NextTab();
// Update the current tab's items before accessing them. This is REQUIRED per tab.
var result = LokiPoe.InGameState.PurchasePanel.UpdateCurrentTabItems();
// Get a list of all items being sold
foreach(var vi in LokiPoe.InGameState.PurchasePanel.CurrentTabItems)
{
Log.InfoFormat("{0}{1}", vi.Item.FullName, vi.CanAfford ? "" : " (Unaffordable)");
foreach(var kvp in vi.Cost)
{
Log.InfoFormat("\t{0}x {1}", kvp.Value, kvp.Key);
}
}
[GuildStashPanel]
// Check if the GuildStashPanel is open.
if(LokiPoe.InGameState.GuildStashPanel.IsOpened)
{
}
// Wait for contents to load when first opening the panel.
LokiPoe.InGameState.GuildStashPanel.WaitForGuildStash();
// Get the current tab's name
var result = LokiPoe.InGameState.GuildStashPanel.CurrentTabName;
// List all tabs in the GuildStashPanel.
foreach(var tab in LokiPoe.InGameState.GuildStashPanel.TabNames)
{
Log.InfoFormat("{0}", tab);
}
// Switch to a specific tab.
var result = LokiPoe.InGameState.GuildStashPanel.SwitchToTab("2");
// Move to the next tab.
var result = LokiPoe.InGameState.GuildStashPanel.NextTab();
// Move to the previous tab.
var result = LokiPoe.InGameState.GuildStashPanel.PreviousTab();
// Get information about the guild stash tab's inventory
var inv = LokiPoe.InGameState.GuildStashPanel.CurrentTabInventory;
Log.InfoFormat("Inventory Size: {0} x {1}", inv.Rows, inv.Cols);
// Get information about the guild stash tab
var tab = LokiPoe.InGameState.GuildStashPanel.CurrentTabInventoryTab;
Log.InfoFormat("IsRemoveOnly: {0} IsGuild: {1} IsPremium: {2}", tab.IsRemoveOnly, tab.IsGuild, tab.IsPremium);
// Get items in the current tab.
foreach(var item in LokiPoe.InGameState.GuildStashPanel.CurrentTabItems)
{
Log.InfoFormat("{0} {1}", item.FullName, item.HasInventoryLocation ? item.LocationTopLeft.ToString() : "(no location)");
}
// Places the current cursor item into the tab.
var result = LokiPoe.InGameState.GuildStashPanel.PlaceFromCursor();
// Places the current cursor item into the tab at a location.
var result = LokiPoe.InGameState.GuildStashPanel.PlaceFromCursor(3, 3);
// Pickup an item to the cursor from the stash tab
var items = LokiPoe.InGameState.GuildStashPanel.CurrentTabItems;
var pi = items.FirstOrDefault(i => i.FullName == "Small Mana Flask");
var result = LokiPoe.InGameState.GuildStashPanel.PickupToCursor(pi);
// Split a stack in the stash tab
var pi2 = items.FirstOrDefault(i => i.FullName == "Transmutation Shard");
var result = LokiPoe.InGameState.GuildStashPanel.SplitStack(pi2, 3);
// Merge a stack in the stash tab
var pi3 = items.FirstOrDefault(i => i.FullName == "Transmutation Shard");
var result = LokiPoe.InGameState.GuildStashPanel.MergeStack(pi3);
[WorldPanel]
// Check if the WorldPanel is open.
if(LokiPoe.InGameState.WorldPanel.IsOpened)
{
}
// Take a waypoint to a specific area by full id.
var result = LokiPoe.InGameState.WorldPanel.TakeWaypoint("1_1_4_1", true, -1);
// Go to the hideout
var result = LokiPoe.InGameState.WorldPanel.GoToHideout();
foreach(var ch in LokiPoe.SelectCharacterState.Characters)
{
Log.InfoFormat("{0} ({2})- {1}", ch.Name, ch.League, ch.Level);
}
[SkillGemHud]
// Check to see if there are skill gems listed on the hud for leveling
if(LokiPoe.InGameState.SkillGemHud.AreLevelIconsDisplayed)
{
}
// Get the first skill gem on the HUD
var item = LokiPoe.InGameState.SkillGemHud.FirstLevelSkillGemItem;
// Check to see if the skill gem can be leveled.
if(LokiPoe.InGameState.SkillGemHud.CanLevelFirstLevelSkillGem)
{
}
// Level the first skill gem
var result = LokiPoe.InGameState.SkillGemHud.LevelFirstLevelSkillGemIcon()
// Clear the first skill gem
var result = LokiPoe.InGameState.SkillGemHud.ClearFirstLevelSkillGemIcon()
[ResurrectPanel]
// Check if the ResurrectPanel is open.
if(LokiPoe.InGameState.ResurrectPanel.IsOpened)
{
}
// Resurrect to check point, then town.
var result = LokiPoe.InGameState.ResurrectPanel.Resurrect
// Resurrect to town.
var result = LokiPoe.InGameState.ResurrectPanel.ResurrectToTown
// Resurrect to checkpoint
var result = LokiPoe.InGameState.ResurrectPanel.ResurrectToCheckPoint
[SocialPanel]
// Check if the SocialPanel is open.
if(LokiPoe.InGameState.SocialPanel.IsOpened)
{
}
// Know which tab is selected
Log.InfoFormat("IsFriendsTabSelected: {0}", LokiPoe.InGameState.SocialPanel.IsFriendsTabSelected);
Log.InfoFormat("IsGuildTabSelected: {0}", LokiPoe.InGameState.SocialPanel.IsGuildTabSelected);
Log.InfoFormat("IsPartyTabSelected: {0}", LokiPoe.InGameState.SocialPanel.IsPartyTabSelected);
Log.InfoFormat("IsPublicPartiesTabSelected: {0}", LokiPoe.InGameState.SocialPanel.IsPublicPartiesTabSelected);
// List public parties
foreach(var party in LokiPoe.InGameState.SocialPanel.PublicParties)
{
Log.InfoFormat("{0}", party.Name);
}
// Switch to this tab.
vae result = LokiPoe.InGameState.SocialPanel.SwitchToPartyTab();
// Switch to this tab.
vae result = LokiPoe.InGameState.SocialPanel.SwitchToPublicPartiesTab();
// Join a public party
vae result = LokiPoe.InGameState.SocialPanel.JoinPublicParty(LokiPoe.InGameState.SocialPanel.PublicParties.FirstOrDefault());
// Leave the current party.
vae result = LokiPoe.InGameState.SocialPanel.LeaveCurrentParty();
// Accept/Decline party invites
vae result = LokiPoe.InGameState.SocialPanel.HandlePendingPartyInvites(new string[]{"accname"}));
// Attempt to visit the hideout of a party member.
vae result = LokiPoe.InGameState.SocialPanel.VisitPartyMemberHideout("charname");
[TradePanel]
// Check if the TradePanel is open.
if(LokiPoe.InGameState.TradePanel.IsOpened)
{
}
// Mouse over the offered items so the trade can be accepted.
var result = LokiPoe.InGameState.TradePanel.MouseOverOfferItem();
// Can the trade be accepted yet.
Log.InfoFormat("CanAcceptTrade: {0}", LokiPoe.InGameState.TradePanel.CanAcceptTrade);
// Do we need to accept the trade
Log.InfoFormat("NeedsToAcceptTrade: {0}", LokiPoe.InGameState.TradePanel.NeedsToAcceptTrade);
// List the offer items.
foreach(var item in LokiPoe.InGameState.TradePanel.OtherOffer)
{
Log.InfoFormat("{1}x {0}", item.FullName, item.StackCount);
}
// Accept the trade
var result = LokiPoe.InGameState.TradePanel.AcceptTrade();
[NpcDialogPanel]
// Check if the NpcDialogPanel is open.
if(LokiPoe.InGameState.NpcDialogPanel.IsOpened)
{
}
// Get the current window depth
Log.InfoFormat("WindowDepth: {0}", LokiPoe.InGameState.NpcDialogPanel.WindowDepth);
// List all dialog chocies
foreach(var text in LokiPoe.InGameState.NpcDialogPanel.DialogChoices)
{
Log.InfoFormat("{0}", text);
}
// Helper function for this dialog choice.
var result = LokiPoe.InGameState.NpcDialogPanel.SellItems();
// Helper function for this dialog choice.
var result = LokiPoe.InGameState.NpcDialogPanel.PurchaseItems();
// Helper function for this dialog choice.
var result = LokiPoe.InGameState.NpcDialogPanel.Goodbye();
[QuickFlaskPanel]
// List all flasks
foreach(var flask in LokiPoe.InGameState.QuickFlaskPanel.Flasks)
{
Log.InfoFormat("{0} (0x{1:X})", flask.FullName, flask.BaseAddress.ToInt32());
}
// Use a flask in a specific slot.
var result = LokiPoe.InGameState.QuickFlaskPanel.UseFlaskInSlot1();
[SellPanel]
// Check if the SellPanel is open.
if(LokiPoe.InGameState.SellPanel.IsOpened)
{
}
// List the items the player is selling.
foreach(var item in LokiPoe.InGameState.SellPanel.PlayerOffer)
{
Log.InfoFormat("{0} (0x{1:X})", item.FullName, item.BaseAddress.ToInt32());
}
// List the items the vendor is offering.
foreach(var item in LokiPoe.InGameState.SellPanel.NpcOffer)
{
Log.InfoFormat("{0} (0x{1:X})", item.FullName, item.BaseAddress.ToInt32());
}
// Accept the trade offer
var result = LokiPoe.InGameState.SellPanel.Accept();
// Cancel the trade offer
var result = LokiPoe.InGameState.SellPanel.Cancel();
[SkillBarPanel]
// Check if the skill selector dialog is opened.
Log.InfoFormat("IsSkillSelectorOpen: {0}", LokiPoe.InGameState.SkillBarPanel.IsSkillSelectorOpen);
// Clears a specific skill slot.
var result = LokiPoe.InGameState.SkillBarPanel.ClearSlot2();
// Sets a skill slot.
var result = LokiPoe.InGameState.SkillBarPanel.SetSlot(2, LokiPoe.InGameState.SkillBarPanel.Skills.FirstOrDefault(s => s.InternalName == "Move"));
[InstanceManagerPanel]
// Check if the InstanceManagerPanel is open.
if(LokiPoe.InGameState.InstanceManagerPanel.IsOpened)
{
}
// Get information about instances
foreach(var instance in LokiPoe.InGameState.InstanceManagerPanel.Instances)
{
Log.InfoFormat("{0} {1} {2} {3} {4}", instance.CanJoin, instance.Realm, instance.Created, instance.TimeLeft, string.Join(", ", instance.Players));
}
// Creates a new instance.
var result = LokiPoe.InGameState.InstanceManagerPanel.JoinNew(-1);
[CardTradePanel]
// Check if the CardTradePanel is open.
if(LokiPoe.InGameState.CardTradePanel.IsOpened)
{
}
// Place the cursor into the panel.
var result = LokiPoe.InGameState.CardTradePanel.PlaceCursorInto();
// Picks up an item from the slot to the cursor.
var result = LokiPoe.InGameState.CardTradePanel.PickupToCursor();
// Trades the cards in.
var result = LokiPoe.InGameState.CardTradePanel.Trade();
[MapPanel]
// Check if the MapPanel is open.
if(LokiPoe.InGameState.MapPanel.IsOpened)
{
}
// Places the cursor into the map device.
var result = LokiPoe.InGameState.MapPanel.PlaceCursorIntoTopLeft();
// Picks up an item from the map device.
var result = LokiPoe.InGameState.MapPanel.PickupTopLeftToCursor();
// Gets the item in a slot in the map device.
Log.InfoFormat("ItemInTopLeftSlot: {0}", LokiPoe.InGameState.MapPanel.ItemInTopLeftSlot.FullName);
// Activates the map device.
var result = LokiPoe.InGameState.MapPanel.Activate();
[MasterDevicePanel]
// Check if the MasterDevicePanel is open.
if(LokiPoe.InGameState.MasterDevicePanel.IsOpened)
{
}
// Places the cursor into the device.
var result = LokiPoe.InGameState.MasterDevicePanel.PlaceCursorIntoTopLeft();
// Picks up an item from the device.
var result = LokiPoe.InGameState.MasterDevicePanel.PickupTopLeftToCursor();
// Gets the item in a slot in the device.
Log.InfoFormat("ItemInTopLeftSlot: {0}", LokiPoe.InGameState.MasterDevicePanel.ItemInTopLeftSlot.FullName);
// Activates the map device.
var result = LokiPoe.InGameState.MasterDevicePanel.Activate();
[InventoryPanel]
// Check if the InventoryPanel is open.
if(LokiPoe.InGameState.InventoryPanel.IsOpened)
{
}
// Unequip a skill gem from a slot at a specific index.
var result = LokiPoe.InGameState.InventoryPanel.UnequipSkillGemFromNeck(0);
// Equip a skill gem to a slot at a specific index.
var result = LokiPoe.InGameState.InventoryPanel.EquipSkillGemToNeck(0);
[BanditPanel]
if(LokiPoe.InGameState.BanditPanel.IsOpened)
{
}
// Kill the bandit.
var result = LokiPoe.InGameState.BanditPanel.KillBandit();
// Help the bandit.
var result = LokiPoe.InGameState.BanditPanel.HelpBandit();