New Content - Implemented Quest Tracking for new Level 9 Quest: There Can Be Only One Topping

Bale

Minion
Need a new preference for the new Level 9 Quest: questL09Topping

started
  • Council Text:
    HTML:
    <p>Sorry to trouble you with this, Adventurer, but we've gotten a... shall we say... cryptic message from Black Angus -- he's one of Loathing's minor nobles.
    <p>
    It's usually safe to ignore him, but he sounded pretty agitated, and given the current political climate we can scarcely afford to ignore him.
    <p>
    Could you do us a favor and go to his tower, in the Highlands?  The Highlands are just on the other side of the Orc Chasm.  We'll mark it on your map.
    <p>
  • Quest Log
    HTML:
    <b>There Can Be Only One Topping</b><br>The Council has gotten word that there's something bothering Black Angus, the Highland Lord.
    <p>
    You should seek him out, in the Highlands beyond the Orc Chasm, in the Big Mountains.<p>

step1
  • Finish building the bridge:
    HTML:
    <centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>You examine your supplies.  You have:<br>   <b>2 "appropriate" pieces of lumber</b><br>   <b>1 "appropriate" fasteners</b><p><p>You use some more of those horrible building materials to continue constructing a bridge.<p>Huzzah!  The bridge is finished!<P>And having finished the bridge, you throw away the rest of the smut orcs' terrible building materials.  Good riddance.</td></tr></table></center></td></tr><tr><td height=4></td></tr></table><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Orc Chasm</b>
  • Quest Log:
    HTML:
    <p><b>There Can Be Only One Topping</b><br>You've built a bridge over the Orc Chasm, and now you should go talk to Black Angus, the Highland Lord.
    <p>
    He's in a tower in the Highlands.  It's in the Big Mountains, past the Orc Chasm.<p>

step2
  • Visit Lord's Tower:
    HTML:
    <centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Hey...'sup, bro? Like, I'm the guy who owns all of these peaks, but I don't know, man, it's just, like, a major hassle, you know? I mean, some of my tenants are ghosts, and some are all, like, freaky murderous twins, and then there are those oil guys, and what's that all about, man? It totally harshes my mellow, you know? 
    <p>
    What were we talking about? Oh, yeah, the peaks. I'm trying to, like, order a pizza, 'cause a pizza would be totally sweet right now, but my jerkwad fascist tenants totally won't let me light the signal fires. I mean, half of them haven't even paid rent this month. It's, like, a bummer, man. Anyway, if you can help, I'd appreciate it, bro.</td></tr></table></center></td></tr><tr><td height=4></td></tr></table><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Highlands</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="http://images.kingdomofloathing.com/otherimages/orcchasm/highlands_main.gif" width=500 height=250 border=0><div id=highlands_dude style='position: absolute; top: 8; left: 371; height: 150; width: 90;'><a href=place.php?whichplace=highlands&action=highlands_dude><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=90 height=150 border=0 alt="" title=""></a></div><div id=peak1 style='position: absolute; top: 94; left: 35; height: 130; width: 100;'><a href=adventure.php?snarfblat=296><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=130 border=0 alt="A-boo Peak (1)" title="A-boo Peak (1)"></a></div><div id=peak2 style='position: absolute; top: 86; left: 147; height: 130; width: 100;'><a href=adventure.php?snarfblat=297><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=130 border=0 alt="Twin Peak (1)" title="Twin Peak (1)"></a></div><div id=peak3 style='position: absolute; top: 75; left: 255; height: 140; width: 100;'><a href=adventure.php?snarfblat=298><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=140 border=0 alt="Oil Peak (1)" title="Oil Peak (1)"></a></div></div><p><a href=place.php?whichplace=orc_chasm>Back to the Orc Chasm</a></center>
  • Quest Log:
    HTML:
    <p><b>There Can Be Only One Topping</b><br>The Highland Lord wants you to light his three signal fires in the Highlands.<p>You should check out A-Boo Peak and see what's going on there.<p>You need to solve the mystery of Twin Peak and figure out how to light the signal fire.<p>You should go to Oil Peak and investigate the signal fire there.<p>
  • Problem! Quest Log actually updates based on progress! Completely unlike any other zone! For example:
    HTML:
    p><b>There Can Be Only One Topping</b><br>The Highland Lord wants you to light his three signal fires in the Highlands.<p>You should keep clearing the ghosts out of A-Boo Peak so you can reach the signal fire.   It is currently 98% haunted.<p>You need to solve the mystery of Twin Peak and figure out how to light the signal fire.<p>You should keep killing oil monsters until the pressure on the peak drops enough for you to reach the signal fire.    The pressure is currently 310.66 microbowies per Mercury.<p></blockquote><p>
    With a little more work, it tells you which areas have lit fires:
    HTML:
    <b>There Can Be Only One Topping</b><br>The Highland Lord wants you to light his three signal fires in the Highlands.<p>You've lit the fire on A-Boo Peak.<p>You need to solve the mystery of Twin Peak and figure out how to light the signal fire.<p>You should keep killing oil monsters until the pressure on the peak drops enough for you to reach the signal fire.    The pressure is very low at this point.<p></blockquote><p>

step3
  • Quest Log:
    There Can Be Only One Topping
    You've lit all the signal fires! Go see Black Angus, the Highland Lord, in his tower in the Highlands.

finished
  • Visit Lord's Tower:
    HTML:
    <centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Aw, sweet, dude! You totally lit all the signal fires. You didn't happen to collect any rent from my tenants while you were out there, did you?<p>Nah, no worries, man. It's enough that you lit the fires so I can get my pizza. I was getting, like, desperate, you know? I already ate all of my Cheat-Os and, like, five bowls of cereal.
    <p>
    Hey, you've got a back, right? I mean, like, most people do. As thanks for helping me out, you can have this. I'm usually too busy staring at my hands to put stuff on my back, anyway.<p>Oh, you know who else likes pizza? The Baron in Rof'Lm'Fao. Used to be a nice place, but it got overrun by the harshest group of buzzkills I've ever seen, man. They've got, like, a whole different alphabet, you know? Anyway, help him out and I'm sure he'll reward you.<center><table class="item" style="float: none" rel="id=6047&s=1000&q=0&d=1&g=0&t=1&n=1&m=0&p=0&u=q"><tr><td><img src="http://images.kingdomofloathing.com/itemimages/mistcloak.gif" alt="Misty Cloak" title="Misty Cloak" class=hand onClick='descitem(124569077)'></td><td valign=center class=effect>You acquire an item: <b>Misty Cloak</b>
  • Quest Log:
    HTML:
    <b>There Can Be Only One Topping</b><br>You helped Black Angus, the Highland Lord, get a pizza delivered to his stupid tower in the stupid Highlands.  Yaaaaay.<p>
 

roippi

Developer
Is questL09Lol defunct, or does it still serve some purpose?

I'll ponder on how to handle the individual mini-quests. In the macguffin quest they get their own preferences, might need to do that here too.
 

Fluxxdog

Active member
The old quest is completely optional. Same rewards as before. The only importance the area has for runs is the lowercase n.
 

roippi

Developer
I'm aware, but what does it show up in the quest log as? Miscellaneous? And should it now be questM15Lol?
 

Winterbay

Active member
I have the following under Miscellaneous (needed the meat in my Class Action S-run):
Code:
[B]A Quest, LOL[/B]
You have helped the Baron Rof L'm Fao with his monster problem.  w00t!
 

lostcalpolydude

Developer
Staff member
When I was changing the code for finishing the bridge, I made that set questL09Lol, when it should instead set whatever new setting is added.
 

xKiv

Active member
The old quest is completely optional. Same rewards as before. The only importance the area has for runs is the lowercase n.

(and possibly a meat vortex; and the +1 clover/day, but that's only important on longer runs; and maybe a lucre if you still collect and the other options are worse because too weak or too strong)
 

Bale

Minion
I'm aware, but what does it show up in the quest log as? Miscellaneous? And should it now be questM15Lol?

You are going to have to make some changes to allow it to work. For instance, it is now started by the same text that completes questL09Topping. Also, there is no longer a step1. It goes straight from started to finished.

It might be odd to leave it as questL09Lol, but that might be simplest since the preference already exists and it is kinda like part 2 of the quest. However if you want to turn it into questM15Lol I can adapt.
 

Theraze

Active member
Regarding quest tracking, could we also get a (resets on Ascension) preference for bridgeCompletion or something similar that scrapes when you hit place.php?whichplace=orc_chasm, so we don't need to server-hit every time we're checking for how much we need? With a dictionary, I'd like to hit the server only once to place it, and then if mafia can save all the server hits that follow until the last place.php?whichplace=orc_chasm&action=bridgeX, that would be awesome.

If it's not clear, here's the HTML for visiting the bridge:
PHP:
<html><head>
<script language=Javascript>
<!--
if (parent.frames.length == -1) location.href="game.php";
//-->
</script>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
if (typeof defaultBind != 'undefined') { defaultBind(47, 2, chatFocus); defaultBind(190, 2, chatFocus);defaultBind(191, 2, chatFocus); defaultBind(47, 8, chatFocus);defaultBind(190, 8, chatFocus); defaultBind(191, 8, chatFocus); }</script><script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="/images/styles.20120512.css">

<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>

<body>
<centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Orc Chasm</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="/images/otherimages/orcchasm/orc_chasm.gif" width=450 height=300 border=0><div id=label1 style='position: absolute; top: 23; left: 181; height: 62; width: 100;'><a href=place.php?whichplace=orc_chasm&action=label1><img src="/images/otherimages/orcchasm/nobridge.gif" width=100 height=62 border=0 alt="No Bridge!  (Click here to attempt to build one)" title="No Bridge!  (Click here to attempt to build one)"></a></div><div id=bridge0 style='position: absolute; top: -1; left: 41; height: 150; width: 400;'><a href=place.php?whichplace=orc_chasm&action=bridge0><img src="/images/otherimages/1x1trans.gif" width=400 height=150 border=0 alt="No Bridge" title="No Bridge"></a></div><div id=smut_orc_camp style='position: absolute; top: 172; left: 158; height: 110; width: 200;'><a href=adventure.php?snarfblat=295><img src="/images/otherimages/1x1trans.gif" width=200 height=110 border=0 alt="The Smut Orc Logging Camp (1)" title="The Smut Orc Logging Camp (1)"></a></div></div><p><a href=mountains.php>Back to the Big Mountains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body><script src="/onfocus.js"></script></html>
Basically, there's a div id=bridgeX that begins at 0, one digit. 30 is fully completed.
 

lostcalpolydude

Developer
Staff member
It's actually 0 through 29, and then "_done". Mafia is already parsing that to provide a usable link for adding parts to the bridge when bridge parts drop (if it's at bridge8, you must visit action=bridge8 to add parts, which doesn't really make much sense), and it wouldn't hurt to expose that value.
 

Winterbay

Active member
Would be nice. I could then remove my silly regex in BCAscend that exists solely to parse that value out of said page :)
 

roippi

Developer
r11663 gets some of this.

We're missing some council text, like what happens when you randomly check in at various points in the quest, and completion text (if any).
 

Bale

Minion
Not quite working: r11664

I get the quest from the council and ..

HTML:
<p>The Spookiness still emanates from the Cyrpt, Adventurer.  See if you can find and destroy the source, and bring us back proof of your conquest.<p>You still have unfinished business with the Trapper, Adventurer.<p>Sorry to trouble you with this, Adventurer, but we've gotten a... shall we say... cryptic message from Black Angus -- he's one of Loathing's minor nobles.
<p>
It's usually safe to ignore him, but he sounded pretty agitated, and given the current political climate we can scarcely afford to ignore him.
<p>
Could you do us a favor and go to his tower, in the Highlands?  The Highlands are just on the other side of the Orc Chasm.  We'll mark it on your map.
<p>Your name is Bale, right?  This came in the mail for you.<center><table class="item" style="float: none" rel="id=520&s=0&q=1&d=0&g=0&t=0&n=1&m=0&p=0&u=a&ou=read"><tr><td><img src="http://images.kingdomofloathing.com/itemimages/guildapp.gif" alt="strange leaflet" title="strange leaflet" class=hand onClick='descitem(787599360)'></td><td valign=center class=effect>You acquire an item: <b>strange leaflet</b>

Code:
> get questL09Topping

unstarted

Hrmn. Not good. Let's check the quest log...

Code:
> refresh quests

Retrieving quest data...
Requests complete.

> get questL09Topping

started

Okay! That worked!

Oh. And in case you care, the council says...

HTML:
<p>The Highland Lord, Black Angus, still needs your help, Adventurer.<p>
 

Bale

Minion
Correct! Jick did it just to screw with you. Anything I enclose in html tags is exactly copy/pasted from the source.
 

roippi

Developer
Huh, this may be a totally different bug. It looks like the regex we use handles newlines just fine - but if I'm correct, only one quest status per council visit can be set. Oops.
 

Bale

Minion
Huh, this may be a totally different bug. It looks like the regex we use handles newlines just fine - but if I'm correct, only one quest status per council visit can be set. Oops.

OH! That explains something that was puzzling me. I'd seen that problem before.
 

roippi

Developer
bale - try 11672 on that account and see if it properly sets those various quests.

(completely untested)
 

Bale

Minion
I think it is working now, but it was tested under very different circumstances.

What is not working is questM15Lol

Code:
[COLOR="olive"]> get questM15Lol[/COLOR]

unstarted

[COLOR="olive"]> refresh quests[/COLOR]

Retrieving quest data...
Requests complete.

[COLOR="olive"]> get questM15Lol[/COLOR]

started

Unfortunately mafia did not pick up the Baron's message as the key that the quest had to be started so I needed to refresh the quest log.

HTML:
<body>
<centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Aw, sweet, dude! You totally lit all the signal fires. You didn't happen to collect any rent from my tenants while you were out there, did you?<p>Nah, no worries, man. It's enough that you lit the fires so I can get my pizza. I was getting, like, desperate, you know? I already ate all of my Cheat-Os and, like, five bowls of cereal.
<p>
Hey, you've got a back, right? I mean, like, most people do. As thanks for helping me out, you can have this. I'm usually too busy staring at my hands to put stuff on my back, anyway.<p>Oh, you know who else likes pizza? The Baron in Rof'Lm'Fao. Used to be a nice place, but it got overrun by the harshest group of buzzkills I've ever seen, man. They've got, like, a whole different alphabet, you know? Anyway, help him out and I'm sure he'll reward you.<center><table class="item" style="float: none" rel="id=6047&s=1000&q=0&d=1&g=0&t=1&n=1&m=0&p=0&u=q"><tr><td><img src="http://images.kingdomofloathing.com/itemimages/mistcloak.gif" alt="Misty Cloak" title="Misty Cloak" class=hand onClick='descitem(124569077)'></td><td valign=center class=effect>You acquire an item: <b>Misty Cloak</b> <font size=1>[<a href="javascript:singleUse('inv_equip.php','which=2&action=equip&whichitem=6047&pwd=0d517ab8dc03c30feb975733d77dffa3&ajax=1');void(0);"><span style='position: relative;' onMouseOver="document.getElementById('whatif24').style.visibility='visible';" onMouseOut="document.getElementById('whatif24').style.visibility='hidden';"><table border=2 id='whatif24' style='background-color: white; visibility: hidden; position: absolute; right: 0px; top: 1.2em;'><tr><td>Item Drop</td><td>100.87 (-15.00)</td></tr><tr><td>Muscle</td><td>20.00 (+5.00)</td></tr><tr><td>HP Regen Min</td><td>20.00 (+4.00)</td></tr><tr><td>HP Regen Max</td><td>28.00 (+8.00)</td></tr><tr><td>Buffed Muscle</td><td>207.00 (+5.00)</td></tr><tr><td>Buffed HP Maximum</td><td>378.00 (+9.00)</td></tr></table>equip</span></a>]</font></td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Highlands</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="http://images.kingdomofloathing.com/otherimages/orcchasm/highlands_main.gif" width=500 height=250 border=0><div id=highlands_dude style='position: absolute; top: 8; left: 371; height: 150; width: 90;'><a href=place.php?whichplace=highlands&action=highlands_dude><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=90 height=150 border=0 alt="" title=""></a></div><div id=peak1 style='position: absolute; top: 94; left: 35; height: 130; width: 100;'><a href=adventure.php?snarfblat=296><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=130 border=0 alt="A-boo Peak (1)" title="A-boo Peak (1)"></a></div><div id=peak2 style='position: absolute; top: 86; left: 147; height: 130; width: 100;'><a href=adventure.php?snarfblat=297><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=130 border=0 alt="Twin Peak (1)" title="Twin Peak (1)"></a></div><div id=peak3 style='position: absolute; top: 75; left: 255; height: 140; width: 100;'><a href=adventure.php?snarfblat=298><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=140 border=0 alt="Oil Peak (1)" title="Oil Peak (1)"></a></div><div id=fire1 style='position: absolute; top: 117; left: 73; height: 34; width: 30;'><a href=adventure.php?snarfblat=296><img src="http://images.kingdomofloathing.com/otherimages/orcchasm/fire1.gif" width=30 height=34 border=0 alt="" title=""></a></div><div id=fire2 style='position: absolute; top: 109; left: 190; height: 37; width: 27;'><a href=adventure.php?snarfblat=297><img src="http://images.kingdomofloathing.com/otherimages/orcchasm/fire2.gif" width=27 height=37 border=0 alt="" title=""></a></div><div id=fire3 style='position: absolute; top: 93; left: 282; height: 42; width: 36;'><a href=adventure.php?snarfblat=298><img src="http://images.kingdomofloathing.com/otherimages/orcchasm/fire3.gif" width=36 height=42 border=0 alt="" title=""></a></div></div><p><a href=place.php?whichplace=orc_chasm>Back to the Orc Chasm</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body>

Yes, those carriage returns are actually in the html.
 

roippi

Developer
I think it is working now, but it was tested under very different circumstances.

That's fine, the "you still need to do x" message should be just as good as the first one, we detect both. If council detection or multi-detection is broken, let's start a new thread for that, since it's a separate deal.

r11673 adds questM15Lol handling.
 
Top