Problem with pantogram script for a few days

Aeres

New member
So my pantogram code lines just stopped working from one day to the next, it worked on the 24th and stopped working on the 25th. I extracted the lines and run them in a seperat script, still no pants. I autoupdate mafia every morning so I though that was the issue, but reverting to KoLmafia-19898 still didn't work. My code is:

Code:
	cli_execute("acquire 1 ten-leaf clover");
	cli_execute("acquire 1 taco shell");
	cli_execute("acquire 1 bubblin' crude");
	visit_url("inv_use.php?pwd&which=99&whichitem=9573");
	visit_url("choice.php?whichchoice=1270&pwd&option=1&m=3&e=5&s1=5789%2C1&s2=706%2C1&s3=24%2C1", true, true);

The debug trace gives this:

Code:
1585384554593: Starting ASH script: _atest.ash
1585384554597: Requesting: https://www.kingdomofloathing.com/inv_use.php?pwd&which=99&whichitem=9573
1585384555152: Retrieved: https://www.kingdomofloathing.com/inv_use.php?pwd&which=99&whichitem=9573
1585384555152: Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
1585384555339: Retrieved: https://www.kingdomofloathing.com/choice.php?forceoption=0 (14074 bytes)
1585384555342: Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1270&pwd&option=1&m=3&e=5&s1=5789%2C1&s2=706%2C1&s3=24%2C1
1585384555740: Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=1270&pwd&option=1&m=3&e=5&s1=5789%2C1&s2=706%2C1&s3=24%2C1 (14446 bytes)
1585384555741: Finished ASH script: _atest.ash

I tried to alter the script with no success. Anyone have an idea what the problem could be?
 

Veracity

Developer
Staff member
I ran your script and the DEBUG log says "You can't sacrifice something you don't have."

Code:
[color=green]> inv ten-leaf clover[/color]

ten-leaf clover

[color=green]> inv taco shell[/color]

taco shell (2)

[color=green]> inv bubblin' crude[/color]

bubblin' crude (6)
But I do have those items.

It submitted:

choice.php?whichchoice=1270&pwd&option=1&m=3&e=5&s1=5789%2C1&s2=706%2C1&s3=24%2C1

item 5789 = bubblin' crude
item 706 = porquoise
item 24 = ten-leaf clover

That's not right. A taco shell is item 173.

I changed the 706 to 173 and the DEBUG log says this:

You sacrifice the appropriate materials and rasp a prayer to Pantcifer, the Lord of Pants Hell. A pair of pants appears on your altar in a cloud of pantstone smoke. (Pantstone is like brimstone except pants.)

and

Processing result: pantogram pants
Processing result: bubblin' crude (-1)
Processing result: taco shell (-1)
Processing result: ten-leaf clover (-1)
Finished ASH script: pg.ash

Code:
[color=green]> inv pantogram[/color]

pantogram pants
portable pantogram
 

Aeres

New member
Thanks a lot Veracity, so my code was just wonky and still had the porquoise added instead of the taco shell.
 
Top