Access updating buff prices

pakruse

New member
Quick question - how can I access the internal data that KoLMafia has on buffbot prices?

Background: I have a couple of scripts that purchased buff packs, and recently kolabuff reduced prices, causing the scripts to request the wrong buff. I'd rather not keep the hardcoded buff price (now 606 meat) in my code. The mafia UI updated seemingly the moment the buff prices changed, so obviously it's querying a server somewhere that has information on the buffbots, individually or collectively. Is there any way to query whatever page it is that KoLMafia is running? What's the source of the buffbot data?
 

Rinn

Developer
If you look in buffbots.txt (open the jar as an archive, in the data folder) it shows a list of bot names, ids, and a url to the xml file with the buff prices. Some of those links are invalid or dead, which means the bot isn't going to show up in the buffbot list. You could potentially get the current prices by loading the data file into a map, then querying those xml pages.

There was something similar here http://kolmafia.us/showthread.php?t=491 but I don't how up to date that is. It might be a starting point at least.
 

pakruse

New member
I'll try that - I had looked at the buffs.ash that you linked to, but it didn't seem to work as-is, so I would prefer to hack out my own rather than try to debug the script.
 

Spiny

Member
As far as Kolabuff, in particular, there was a bug report that was issued to mafia in regards to the incorrect pricing when kolabuff changed prices recently. It was responded to stating that the .xml needed to be updated by Kolabuff. Apparently it was later stated that the .xml was updated. The link to kolabuff's .xml was mentioned to be:
http://www.koladdict.com/buffbot/kolabuff.xml

Hope that helps,
Spiny
 
Top