What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Problem buying items

rootguy

New Member
Joined
Jan 10, 2015
Messages
2
Reaction score
0
Hi, i'm trying get my plugin to buy currency but LokiPoe.InGameState.PurchasePanel.Purchase always seems to fail with LokiPoe.InGameState.PurchaseError.ItemNotAffordable returned.
Any way around this?
 
Hi, i'm trying get my plugin to buy currency but LokiPoe.InGameState.PurchasePanel.Purchase always seems to fail with LokiPoe.InGameState.PurchaseError.ItemNotAffordable returned.
Any way around this?
Hey rootguy,
Pushedx mentioned something about this, I think it has to do with your cursor has to be over the item so it can grab the data of how much it costs first prior to buying. Pushedx will let us know.
 
Hey rootguy,
Pushedx mentioned something about this, I think it has to do with your cursor has to be over the item so it can grab the data of how much it costs first prior to buying. Pushedx will let us know.
Thanks for the reply. It grabs all the info when you call UpdateCurrentTabItems(). I can't seem to get any positional data so i can't implement a fastmove function either. I'm stuck with all buying logic.
 
Thanks for the reply. It grabs all the info when you call UpdateCurrentTabItems(). I can't seem to get any positional data so i can't implement a fastmove function either. I'm stuck with all buying logic.
Hi rootguy,
Hum.. I see..
Well, what you can probably do, which is not very efficient,
Talk to NPC
Move Mouse over item to grab data for item, Ie cost.
Save Cost
Go to stash, grab cost
Go back buy.

PoE has a weird thing where you can't buy form stash currency, unless you grab the stash data for where that currency is.

I was working on a 5 link, 6 link, 6 sockets buy thingy back a few months ago, I'll see what I can use and get back to you.
 
Hi, i'm trying get my plugin to buy currency but LokiPoe.InGameState.PurchasePanel.Purchase always seems to fail with LokiPoe.InGameState.PurchaseError.ItemNotAffordable returned.
Any way around this?

I forgot which patch it was, but GGG changed the format of item purchase tooltips, and I was never able to figure out how they were still achieving the same effect as before, but with non-formatted data (possibly font colors).

I can remove the check for affordability, but you have no way to know if you'll be able to buy it or not. You'll have to work out a way to detect that and not try to loop performing purchase actions on the same item endlessly as that would most likely trigger a flag on your acc.

The whole purchase system is messy because of how the game works. Since we're not calling client functions to perform actions, we have to use visual GUI controls to know locations to click, and to get the item info, you have to actually hover over the item to create the tooltip first. That's why UpdateCurrentTabItems has to be used for each tab.
 
Back
Top