efilnikufecin
Member
The following piece of code is actually just a snippet I wrote up real quick for an example. It logs the amount of 2 specific items in my store to a file.
Now each time this script would be run = 2 server hits. If it were that simple, I'd go with it, however I want to log several items instead of just 2. Fact is I don't care to log thos items, they were just a copy/paste. I do however want to log maybe a hundred or more other items, and that to me is way too many server hits.
I would like to use visit_url() to obtain all the information in just 1 server hit, but the only information so far I can find that would relate is the following:
Are there more functions for manipulating strings returned by visit_url()? If so, could someone point me towards information about them, and how to use them?
Code:
mmbquant = shop_amount($item[meat maid body]);
gaquant = shop_amount($item[Gnollish autoplunger]);
cli_execute("mirror " + filename);
print("Gnollish autoplunger=" + gaquant);
print("meat maid body=" + mmbquant);
cli_execute("mirror");
Now each time this script would be run = 2 server hits. If it were that simple, I'd go with it, however I want to log several items instead of just 2. Fact is I don't care to log thos items, they were just a copy/paste. I do however want to log maybe a hundred or more other items, and that to me is way too many server hits.
I would like to use visit_url() to obtain all the information in just 1 server hit, but the only information so far I can find that would relate is the following:
string visit_url( string url )
Accesses the specified URL, manages any applicable redirects (including if the page offered a choice adventure), and returns the HTML of the final response page.
boolean contains_text( string source, string query )
Reveals if the query string is a substring of the source string.
Are there more functions for manipulating strings returned by visit_url()? If so, could someone point me towards information about them, and how to use them?