Feature - Implemented Daily Interneting

Bale

Minion
There are 5 items in the "Internet Meme Shop" which can only be purchased once per day.

I'm not going to suggest that KoLmafia keep track of them being bought today. Nothing that troublesome. All I want is for mafia to note the current items in the shop, just as it recognizes the Mr. Store offerings and the number of clovers at the hermit. I'm hopeful it won't be too tricky to do that for the Internet Meme Shop also.

This way I can program my mafia to buy a print screen button each day without too much trouble.
 

Veracity

Developer
Staff member
This is the BACON coinmaster? You would like "visiting" it to look at the offerings and suppress items which are not currently in stock?
 

Bale

Minion
Yes and yes!

This request was prompted by the current price of print screen buttons making me wish I'd gotten one every day in aftercore, not just the few days I remembered.
 

Veracity

Developer
Staff member
I added five settings:

Code:
user	_internetDailyDungeonMalwareBought	false
user	_internetGallonOfMilkBought	false
user	_internetPlusOneBought	false
user	_internetPrintScreenButtonBought	false
user	_internetViralVideoBought	false
When you buy one in the shop, the appropriate setting becomes true.
When you visit the shop, we set all the settings appropriately (thereby allowing for visits outside of KoLmafia).
The Meme Shop panel shows only currently available items - and removes them from view when you buy them
You are no longer prompted for how many to buy of those items, since the max is always 1.
 

Bale

Minion
Veracity, my script to farm meme items daily wasn't working. It took me a bit to find the problem because at first I didn't review my logoutScript's output. Then I thought it was my script's fault. Turns out that there's a bug with this feature.

Apparently when any of these items is purchased, KoLmafia sets all five preference true, not just th item that was purchased.

I'm going to untag "Implemented" from this feature rather than open a bug report. Okay?
 

Veracity

Developer
Staff member
OK. Not sure how that happens, since when I tested it in the Coinmaster frame, it only removed the single item I'd just bought.

I'll look at it in a few days when I have some BACON available. Or maybe a multi will buy some.

Show me the section of your script that purchases, please. Thanks.
 

Bale

Minion
Tested! It works perfectly now. Thank you.

Such a simple problem. All that was needed was to add breaks after each case in the switch statement.

Code:
Searching for "BACON"...
Search complete.
Purchasing BACON (1 @ 100)...
Purchases complete.
Meme store: viral video costs 6000 and sells for 6500
Using cached search results for BACON...
Purchasing BACON (1 @ 100)...
Purchasing BACON (10 @ 300)...
Purchasing BACON (8 @ 385)...
Purchases complete.
Visiting the Internet Meme Shop...
You acquire an item: viral video
Internet Meme Shop successfully looted!
Adding viral video to store...
1 viral video added to your store.
mallsell viral video @ 6500
Using cached search results for BACON...
Purchasing BACON (1 @ 385)...
Purchases complete.
Meme store: plus one costs 28490 and sells for 104350
Using cached search results for BACON...
Purchasing BACON (73 @ 385)...
Purchases complete.
Visiting the Internet Meme Shop...
You acquire an item: plus one
Internet Meme Shop successfully looted!
Adding plus one to store...
1 plus one added to your store.
mallsell plus one @ 104350
Using cached search results for BACON...
Purchasing BACON (1 @ 385)...
Purchases complete.
Searching for "gallon of milk"...
Search complete.
Meme store: gallon of milk costs 38500 and sells for 32000
Meme store: print screen button costs 42735 and sells for 75000
Using cached search results for BACON...
Purchasing BACON (110 @ 385)...
Purchases complete.
Visiting the Internet Meme Shop...
You acquire an item: print screen button
Internet Meme Shop successfully looted!
Adding print screen button to store...
1 print screen button added to your store.
mallsell print screen button @ 75000
Using cached search results for BACON...
Purchasing BACON (1 @ 385)...
Purchases complete.
Searching for "daily dungeon malware"...
Search complete.
Meme store: daily dungeon malware costs 57750 and sells for 20000
 
Last edited:

Bale

Minion
Not using breaks after every single case is one of the classic blunders. Right after "don't get involved in a land war in Asia" and "don't go up against a Sicilian when death is on the line."
 

Bale

Minion
That Sicilian was probably wrong because of his conception disability. Every once in a while someone can best one of those classical blunders. After all, a land war in Asia did work out quite well for Temujin.
 
Top