New Content - Implemented shrine to the Barrel god (Sept 2015 IotM)

Bale

Minion
Code:
Visiting Mr. Store
--------------------
8564	shrine to the Barrel god	671094436	crate.gif	usable	t	0
# Item shrine to the Barrel god
--------------------


Using it adds a new item to the Dungeon Full of Dungeons. Need a preference to indicate that the "Shrine to the Barrel God" was unlocked if the barrel is used or the following html is seen at da.php:

HTML:
</td><td width=100 height=100><a href=da.php?barrelshrine=1><img src=/images/otherimages/bgshrine.gif width=100 height=100 alt="Shrine to the Barrel god" title="Shrine to the Barrel god"></a></td>

Visiting da.php?barrelshrine=1 leads to choice adventure 1100 which can be walked away from:

HTML:
<body><img src='/images/itemimages/blank.gif' id='dragged'><div id='debug'></div><div class=contextmenu id='skillmenu'></div><div class=contextmenu id='itemsmenu'></div><div id=topbar><center><table class=actionbar cellpadding=0 cellspacing=1><tbody><tr class=label><td> </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr class=blueback><td><a href='choice.php?action=auto'><img src='/images/itemimages/plexpock.gif'></td><td class=spacer></td><td><img src='/images/itemimages/blank.gif' id='skills'></td><td class=spacer></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td><img src='/images/itemimages/blank.gif'></td><td class=spacer></td><td class=spacer></td><td><img src='/images/itemimages/blank.gif'></td></tr><tr class=label><td>auto</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table></center></div><div class='content' id='content_'><div id='effdiv' style='display: none;'></div><div style='overflow: auto;'>
<Center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Pray to the Barrel God</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><img src=/images/otherimages/bgshrinebig.gif width=100 height=200><table><tr><td>You approach the shrine, light a candle, and place it underneath a wooden barrel.  "This seems dangerous," you think, but the Barrel god whispers quietly into your mind.  "Don't worry about it.  What can I do for you today?"<p>What will you pray for?</td></tr></table><Table cellspacing=10><form action=choice.php?whichchoice=1100&pwd=1a08e0de13b99b4fed19425e6847440a method=post><input type=hidden name=option value=1><tr><td align=right><input type=submit class=button value=Protection></td><td valign=center><img style='vertical-align: middle' class=hand src='/images/itemimages/barrelshield.gif' onclick='descitem(134230040)' alt="barrel lid" title="barrel lid"></td><td valign=center><b>barrel lid shield</b></td></tr></form><form action=choice.php?whichchoice=1100&pwd=1a08e0de13b99b4fed19425e6847440a method=post><input type=hidden name=option value=2><tr><td align=right><input type=submit class=button value=Glamour></td><td valign=center><img style='vertical-align: middle' class=hand src='/images/itemimages/barrelhoop.gif' onclick='descitem(855987487)' alt="barrel hoop earring" title="barrel hoop earring"></td><td valign=center><b>barrel hoop earring</b></td></tr></form><form action=choice.php?whichchoice=1100&pwd=1a08e0de13b99b4fed19425e6847440a method=post><input type=hidden name=option value=3><tr><td align=right><input type=submit class=button value=Vigor></td><td valign=center><img style='vertical-align: middle' class=hand src='/images/itemimages/barrelbank.gif' onclick='descitem(600105073)' alt="bankruptcy barrel" title="bankruptcy barrel"></td><td valign=center><b>bankruptcy barrel</b></td></tr></form><form action=choice.php?whichchoice=1100&pwd=1a08e0de13b99b4fed19425e6847440a method=post><input type=hidden name=option value=4><tr><td align=right><input type=submit class=button value=Drunkenness></td><td valign=center><img src="/images/itemimages/barrelbig.gif" class=hand alt="Beer Barrel Polka" title="Beer Barrel Polka" onClick='eff("710f32ff5e190840afa4a6064e3c7805");'></td><td valign=center><b>Beer Barrel Polka</b> (50 Adventures)</td></td></tr></form></table><p><a href=da.php>Back to the Dungeoneers' Association</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table><!--faaaaaaart--></div></div></body>

Only one of those things can be chosen each day, so add an underline preference to indicate if the barrel has been used yet. Here's the stats for the effect it can grant to Accordion Thieves:

Code:
Encounter: Pray to the Barrel God
Took choice 1100/4: unknown
choice.php?whichchoice=1100&pwd&option=4
--------------------
1950	Beer Barrel Polka	barrelbig.gif	710f32ff5e190840afa4a6064e3c7805
# Effect Beer Barrel Polka: Makes booze more effective!
Effect	Beer Barrel Polka	Booze Drop: +45
--------------------
You acquire an effect: Beer Barrel Polka (50)
 
Last edited:

Bale

Minion
Here are the remaining three items courtesy of the test newitem command:

Code:
--------------------
8565	barrel lid	134230040	barrelshield.gif	offhand	q	0
barrel lid	0	none	shield
Item	barrel lid	Muscle Percent: +25, Monster Level: +50, Maximum HP: +100, Damage Reduction: 9, Lasts Until Rollover
--------------------
--------------------
8566	barrel hoop earring	855987487	barrelhoop.gif	accessory	q	0
barrel hoop earring	0	none
Item	barrel hoop earring	Mysticality Percent: +25, Item Drop: +50, MP Regen Min: 5, MP Regen Max: 10, Lasts Until Rollover
--------------------
--------------------
8567	bankruptcy barrel	600105073	barrelbank.gif	pants	q	0
bankruptcy barrel	100	none
Item	bankruptcy barrel	Moxie Percent: +25, Initiative: +50, HP Regen Min: 10, HP Regen Max: 20, Lasts Until Rollover
--------------------

It looks like there's a lot more to discover through adventuring, including 10 random barrel encounters a day. So we might want an underline preferences that counts those random events and session logging for them.
 

Bale

Minion
Code:
--------------------
8571	weathered barrel	239149132	barrelweathered.gif	usable		0
# Item weathered barrel
--------------------
--------------------
8569	normal barrel	163611926	barrelnormal.gif	usable		0
# Item normal barrel
--------------------
16268 adds barrelShrineUnlocked to track whether you unlocked the shrine, and added those items listed above.

You forgot to add the effect from my first post.
 

Veracity

Developer
Staff member
Revision 16272 has the effect.

That is an odd choice form. It is not coded in the usual fashion, with "whichchoice" and "pwd" being their own hidden fields. You can notice the effect of that by how it says you "Took choice 1100/4: unknown" - even though I just submitted code to make us not log choices as "unknown" if we can figure out what the buttons say.

I'll have to see what it will take for us to parse it correctly.
 

Bale

Minion
Code:
--------------------
8575	rotting barrel	821226788	barrelrotting.gif	usable		0
# Item rotting barrel
--------------------
--------------------
8578	bottle of Amontillado	755818728	beerbottle.gif	drink	t,d	25
bottle of Amontillado	4	5	good	1-1	0	0	0	Unspaded
Item	bottle of Amontillado	Effect: "Bricked-In", Effect Duration: 100
--------------------
--------------------
1951	Bricked-In	wallshield.gif	19bc1e13945346209902244193bd32ae	drink 1 bottle of Amontillado
Effect	Bricked-In	Maximum HP: +50
--------------------
 

Magus_Prime

Well-known member
Code:
Looking at item #8568...
Unknown item found: little firkin (8568, 824886430)
--------------------
8568 little firkin 824886430 barrelfirkin.gif usable 0
# Item little firkin
--------------------

Using the three little firkins found so far yielded one drink per firkin: strawberry daiquiri, screwdriver

Looking at the little firkins in inventory there is a [smash party] link next to the [use] link and selecting "smash party" takes you to a graphic interface to smash all available little firkins.
 
Last edited:

Magus_Prime

Well-known member
The little firkins all yielded low-level cocktails and a bottle of Amontillado.
Weathered barrels all yielded bean burritos of various kinds and one barrel pickle.

After 300 turns I had 9 little firkins and 31 weathered barrels.
 
Last edited:

Bale

Minion
If it's limited, it's higher than 10. I got 11 and I think I have seen report of 14.

Yeah. That was easrly information I got from the GD forum thread. It was since proven false. There appears to be a reducing encounter rate as the number of barrels goes up, but I'm not sure if there is a hard cap.
 

Yendor

Member
Code:
--------------------
8577	barnacled barrel	394037477	barrelbarnacle.gif	usable		0
# Item barnacled barrel
--------------------
--------------------
8593	brass bung spigot	950400441	spigot.gif	familiar	t,d	75
# Item brass bung spigot: Lets your Barrel Mimic restore HP and MP after combat.
--------------------
 

Veracity

Developer
Staff member
Using a disintegrating barrel to have a "smash party", this is the session log:

Code:
use 1 disintegrating barrel
Took choice 1101/1: unknown
choice.php?whichchoice=1101&pwd&option=1&iid=8573
You acquire an item: insanely spicy jumping bean burrito
Took choice 1101/1: unknown
choice.php?whichchoice=1101&pwd&option=1&iid=8573
You acquire an item: insanely spicy enchanted bean burrito
Took choice 1101/1: unknown
choice.php?whichchoice=1101&pwd&option=1&iid=8573
You acquire an item: insanely spicy jumping bean burrito
Took choice 1101/1: unknown
choice.php?whichchoice=1101&pwd&option=1&iid=8573
You acquire an item: insanely spicy jumping bean burrito
... and so on. The "iid" varies depending on which barrel is smashed. So, rather than saying "unknown" we could translate that into the item name.

Here is request/response sequence for starting the smash party and doing one barrel:

Code:
inv_use.php?pwd&whichitem=8573&choice=1&ajax=1
<script type="text/javascript">top.mainpane.document.location = "choice.php?forceoption=0";</script>
choice.php?forceoption=0
choice.php?whichchoice=1101&pwd&option=1&iid=8573
You acquire an item: insanely spicy jumping bean burrito
That "script" is a Javascript redirect.

Interestingly (to me), there is nothing in the request to indicate which barrel in the "party" was smashed (I had multiple disintegrating barrels and did not smash the first one), so the animation to replace the barrel with a smashed image happens all in the browser.

When I visit the barrel shrine and select the buff, this is the session log:

Code:
choice.php?whichchoice=1100&pwd&option=4
You acquire an effect: Pork Barrel (50)
Here are the actual requests submitted:

Code:
da.php?barrelshrine=1
Field: Location = [choice.php?forceoption=0]
choice.php?forceoption=0
choice.php?whichchoice=1100&pwd&option=4
You acquire an effect: Pork Barrel (50)
It would be nice if the "da.php?barrelshrine=1" request logged ... something.
 

Magus_Prime

Well-known member
With r16291 this is still an unknown effect:

Code:
Worshiping at the Shrine to the Barrel God
--------------------
1949 Double-Barreled barrelbig.gif bdce829a4e61362e001fa8d1e18c9441
Effect Double-Barreled Ranged Damage Percent: +150
--------------------
You acquire an effect: Double-Barreled (50)

As a Disco Bandit.
 

lostcalpolydude

Developer
Staff member
16297 removes barrels from inventory when you smash them from a smash party. With that, here's a script to smash all your barrels.

Edit: Removed, since a script that just uses all the barrels makes more sense.
 
Last edited:

Bale

Minion
Is there an advantage to doing the smash party vs. just "using" each one? It's a simpler script, isn't it?

I think that smash party is exactly one more server hit than smashing every barrel separately, so I see no reason not to script them like that.

The advantage of a smash party is that it is an easier UI for the user to enjoy. It's very clever and I'm surprised that KoL actually made such a fun UI.
 

lostcalpolydude

Developer
Staff member
Yeah, using barrels would make more sense in a script. Though making that script led to me adding more mafia support for the feature, so that worked out at least.
 
... UI for the user to enjoy ...

Not that I have any experience with this, but I imagine in a touch screen setting that it's like bubble wrap. Sort of. I was just a tiny bit disappointed that I had to wait for the latest smash's animation to finish before I could smash another barrel. Or was that because of something on my end? Anyway, I just wanted to click-click-click-... all the barrels away, but instead it was click-wait, click-wait, click-wait, ... I wonder what the browser load would be if a bunch of animations were all running concurrently.
 
Top