wonko
New member
I'm attempting to write a barrels script to run in my daily scripted runs to do the boring daily stuff.
visit_url is giving me grief however.
This code:
Gives me this output:
Oh, wait, I think I get it now. Didn't catch that dangling body tag there before. I'm exceeding the string size aren't I?
Well, that doesn't work well. Is there a way to get around that?
EDIT: the code block has eaten my output!! It shows up when I go to edit it, what gives? Do I need to tell it something other than code to not eat html?
EDIT2: Huh, now it shows up. Whatever.
EDIT3: Oh yeah, it doesn't actually "consume" the barrel either, which I think is a bit odd. So maybe it's something else?
visit_url is giving me grief however.
This code:
Code:
string barrelitem;
barrelitem = visit_url("barrel.php?smash=1");
print(barrelitem);
Gives me this output:
Code:
[5249] Barrel Full of Barrels
<html><head>
<script language=Javascript>
<!--
if (parent.frames.length == 0) location.href="main.html";
top.charpane.location.href="charpane.php";
//-->
</script>
<script language=Javascript src="[url]http://images.kingdomofloathing.com/scripts/window.js"></script>[/url]
<link rel="stylesheet" type="text/css" href="[url]http://images.kingdomofloathing.com/styles.css">[/url]
</head>
<body>
Oh, wait, I think I get it now. Didn't catch that dangling body tag there before. I'm exceeding the string size aren't I?
Well, that doesn't work well. Is there a way to get around that?
EDIT: the code block has eaten my output!! It shows up when I go to edit it, what gives? Do I need to tell it something other than code to not eat html?
EDIT2: Huh, now it shows up. Whatever.
EDIT3: Oh yeah, it doesn't actually "consume" the barrel either, which I think is a bit odd. So maybe it's something else?