Related question.
I'm attempting to equip a gem to my main weapon like this:
Code:
Log.InfoFormat("FOUND THE GEM IN OUR INVENTORY");
//*EQUIP GEM HERE
Log.InfoFormat("[GemEquip]: Open inventory...");
await Coroutines.OpenInventoryPanel();
Log.InfoFormat("[GemEquip]: Pick up gem...");
Loki.Game.LokiPoe.InGameState.InventoryPanel.PickupMainToCursor(starterGemItem);
Log.InfoFormat("[GemEquip]: Equip gem to left hand...");
Loki.Game.LokiPoe.InGameState.InventoryPanel.EquipSkillGem(LokiPoe.InGameState.InventoryPanel.LeftHand, 2);
However what this ends up doing is opening the inventory, grabbing the gem, moving the cursor to the middle of the screen then leaves the task. Here is an excerpt from the log
Code:
FOUND THE GEM IN OUR INVENTORY
[GemEquip]: Open inventory...
[OpenInventoryPanel]
[OpenInventoryPanel] The InventoryPanel is not opened. Now opening it.
[GemEquip]: Pick up gem...
[GemEquip]: Equip gem to left hand...
[ExploreTask] Now exploring to the location {414, 230} (131) [6.687898 %].
[ResetAnchorPoint] Setting AnchorPoint to {285, 241} for 1783905598.
[ResetAnchorPoint] Setting CurrentAnchorPoint to {285, 241} for 1783905598.
[ClearCursorTask]
[OpenInventoryPanel]
[ClearCursorTask] The item Fireball needs to be placed into the inventory.
[CloseBlockingWindows] LokiPoe.Gui.IsLeftPanelShown || LokiPoe.Gui.IsRightPanelShown. Closing them.
Any idea what the problem might be? I'm not sure how to grab a socket's index either or I'd use that as well. I tried manually entering some numbers but that had the same result as above.