relay_Hardcore_Deeds.ash - Your daily tasks

heeheehee

Developer
Staff member
For Cafe Snootee, it's
Code:
cafe.php?cafeid=1&pwd&action=CONSUME%21&whichitem=[ITEM NUMBER]
. Presumably the brewery's link is similar, but you'd need someone in a moxie sign to verify that.

(You can get the item number via daily_special().to_int(), and price is 3x autosell.)
 

peacy

Member
Yaaay cheers for that. Will look into it later on today.

edit: Ok, looking into it now, however, the id for the 3 foods that are there by default shows on the wiki in negatives, can anyone confirm that it is correct?
 
Last edited:

Veracity

Developer
Staff member
For Cafe Snootee, it's
Code:
cafe.php?cafeid=1&pwd&action=CONSUME%21&whichitem=[ITEM NUMBER]
. Presumably the brewery's link is similar, but you'd need someone in a moxie sign to verify that.
Or the ability to look at the code... :)

Yes, both the restaurant and the brewery are "cafes". The brewery is cafeid = 2.
As you notice, the built-in consumables are item # -1, -2, and -3
 

peacy

Member
Ok, here goes. not making this an official release or anything yet. It should hopefully work with chez and microbrewery, you won't however get overdrink warnings etc. Also contains some other updates since the release. (will automatically fill in the maximum you can eat/drink/spleen - might be a tad buggy fills in 1 when it should fill 0 for food but didn't get round to correcting that. added mcd, fixed some html generated syntax and whatnot)
Oh and please let me know if the brewery stuff works if you try it out. Cheers
 

Attachments

  • relay_Hardcore_Deeds.ash
    88.3 KB · Views: 45

icon315

Member
Chez does not work, i keep getting Server www5.kingdomofloathing.com returned a blank page from cafe.php. Complain to Jick, not us.

EDIT: It does eat but it does not show the consumption message

Also you should make the script check if you even have the VIP key so as not to display useless info
 
Last edited:

peacy

Member
Hmm thanks for the feedback. not sure why it is doing that. Will have to look into it properly when I am a myst sign. It does not even show you gain blah adventures message? Ah the VIP key, completely forgot to check for it, will be added in the next release.
 

icon315

Member
It shows "You have gained 0 adventures" every time.

also, shouldn't you be able to prevent someone from drinking a drink if they are too drunk using the something like
PHP:
if (my_inebriety() + (inebriety given from drink)   < inebriety_limit())
drink (drink)
else (abort)


also does this script check if you are in a path (teetoler)?
 
Last edited:

heeheehee

Developer
Staff member
I'd rather have it throw a user_confirm("Are you sure you want to overdrink?"), in case the user wants the script to overdrink.
 

peacy

Member
Yea, that all is in the regular drinks through the simulate consumption checkbox. I threw the chez/microbrewery together as a draft rather than a working solution to see whether it works at all before I start sorting out the adventure gains predictions etc. Also, do you guys know if ode/milk works with these? I will properly sort out chez and microbrewery once I actually ascend in the given moon sign (in round 3 weeks). However it amuses me a little to be honest. the actual code for the brewery/chez is:

PHP:
		int start = my_adventures();
		for i from 1 to to_int(form_field("quantity")){
			visit_url("cafe.php?cafeid="+form_field("cafeid")+"&pwd&action=CONSUME%21&whichitem="+form_field("whichitem"));
		}
		writeln("<img src=\"http://kol.coldfront.net/thekolwiki/images/a/af/Hourglass.gif\" /><font style=\"font-weight:bold;\">Gained "+(my_adventures()-start)+" Adventures!</font><img src=\"http://kol.coldfront.net/thekolwiki/images/a/af/Hourglass.gif\" />");

If the stuff is actually consumed, and it displays 0 adventures gained, I am a little confused. Would be worth it printing out the result of visit_url to see what is actually going on. Quite some debugging that I am not able to do at the moment.

And good call about the path and consuming. Will be fixed in the next release
 

peacy

Member
Yea I have already fixed the mcd thing. Here is an update from the last version I posted in the text, again not an official release yet as I have a few more things that I want to fix and add.
For anyone downloading this, chez and microbrewery don't work properly, best off not using those. Also this should fix the lower resolution problem that I have been told about.
 

Attachments

  • relay_Hardcore_Deeds.ash
    89 KB · Views: 26

Winterbay

Active member
It does, at least as long as the screen is wide enough to hold all the info. If it isn't the left box glides silently in under the right one, but that is a problem with not using the full width of a screen and not so much a problem with teh resolution.
 

peacy

Member
Yea, decreasing the size of the window will always be an issue with this because I like stuff big so that it is easy to see and I cannot be bothered dynamically shrinking the elements as the frame size changes. Is it displaying fine now for you at full screen?
 

Winterbay

Active member
Yep, no problem there. Works less than perfect at home though since I have Miranda running on the side of the screen making the effective area smaller, but I generally only run Mafia at work anyway so :)
 

peacy

Member
hmm, getting rid of the right bar would help I guess, however that is not currently possible as I didn't add hiding of familiar drops and pool buffs etc. What I plan on working tomorrow is add zlib variable editor with explanations what everything does, so you will have the option of only displaying the main bar, which should solve the problem alltogether (hopefully - it would reduce the minimum frame width needed to 550px so around 1000px for the whole game unless you shrink chat/charpane, leaving you ~280px for miranda), unless you like the side bar. you can now hide most of the things, however I have not kept up to date with all the widget options. This will take a couple days to do anyway, so don't expect a fix tomorrow as I have something started in this which needs to be sorted out first.

As for the pool stuff etc. I might mess around with the layout later on to make it more lower res friendly. At the moment you pretty much need 702px minimum in that frame to display correctly. I know it is a poor design choice, but I just like things big. Maybe, I'll provide an alternate stylesheet for lower res or something. Will see how it goes.

Try to keep up with the versions I post in here until I officially release a new version, which won't be until I finish the buff widget and the variable editor. Also thinking of one or two more things but not too sure if they are at all possible.
 

Winterbay

Active member
No problem. As I said, I mainly run Mafia at work (where I can't run Miranda because those ports are blocked) and I'll be tied up in a Sauceror bad moon run for the next couple of weeks anyway :)
 

peacy

Member
Yaay thanks to Icon, I have managed to fix (hopefully for good) chez, the same should apply for the microbrewery as well, although you might be getting 0 adventure gain messages there.

They (chez/brewery) were both not consuming before but mafia was upping the fullness levels so sorry about that. I hope it didn't cause any problems. if someone uses the brewery, please let me know whether it works or not (but I should be in a mox sign in 10 days or so and can test then).

Also started working on a graphical clicky settings and finished my familiar graph - which shows utterly wrong data and is more for laughs than anything really. It will give the rough estimate but don't rely on it when going for a 90% run or something. It just looks at the familiars exp and makes a graph out of it, so stuff like wallaby, trainer, xp boost spells will make the graph inaccurate (not to mention the bander).
 

Attachments

  • relay_Hardcore_Deeds.ash
    105.2 KB · Views: 31
Top