PDA

View Full Version : Olaf the janitor



senseihitokiri
09-19-2006, 06:56 PM
I'm new to interacting with the site via URLs, which seems to be the way everything was done in the past, and I need some help. I'm trying to start a script for the White Citadel quest but it starts when you talk to Olaf. Since CLI and ASH have no written function for that (that I noticed anyway) I want to send the URL for it. What's the proper formatting for the URL in this case? I was trying just the guild?place=paco and then the full URL but in the full URL you need to know which server you are on and that will make this script too specific.

Nightmist
09-19-2006, 07:48 PM
Just punch
guild?place=paco into a CLI command, using cli_execute() if in ASH or visit_url() if in ASH. (Note that visit_url() will return the HTML as a string so if you want to do a couple of checks, such as making sure you opened the quest, then you will probably want to use a contains_text() and the visit_url() method.)

senseihitokiri
09-19-2006, 08:46 PM
I have been trying

string test = visit_url( "guild?place=paco" );

and finally realized what my n00b problem was.... pages like having extensions... like guild.PHP

Begin hurling rocks my way.

Nightmist
09-20-2006, 02:46 AM
Heh, didn't notice that myself when I quoted you. Ah well, yeah having .php helps. >>