Maybe I completly missunderstood how this script work, but I thought I could just run the script and after a (possibly long) while I would have a HTML page in my Data folder with the results?
Because.. Well.. Nothing happens when I run the script.
> call D:\Bengt\scripts\PriceAdvisor.ash
and after that, 1-2 min later, nothing have happened.
This is new though, before at least it would mention when some mall_price_food.txt or something was last updated, but now nothing (and yes that name is probably not corrcet but I cant remember the real name).
I tried restarting Mafia completely, no change.
Trying to edit the PriceAdvisor.ash in Notepad it is all a mess, as it is all in one long line of text with no rowbreaks at all, so trying to find any notes on what to do in the code is a bit tricky.
Also, I tried to do just one item at a time-search using the aliases mentioned at the top post.
Code:
> alias
pa => ash import <PriceAdvisor.ash> print(price_advisor($items[%%], true))
pam => ash import <PriceAdvisor.ash> foreach itm in $items[] if(contains_text(to_string(itm),"%%")) print(price_advisor(itm, true))
I just copy-pasted the lines from the first post.
Now, testing it out, I get the void-error.
Code:
> pa bar skin
bar skin:
Returned: void
As a little sidenote here, is it possible to add a little something to make the script look like it actually responded? Because mafias charpane to the left stay green when the script is actually reacting, so I think nothing is happening as that is what I'm used to it doing.
Anyway. I know there was a post and reply to this, where I needed to change
Code:
pa => ash import <PriceAdvisor.ash> print(price_advisor($items[%%], true))
into
Code:
pa => ash[B]q[/B] import <PriceAdvisor.ash> print(price_advisor($items[%%], true))
the result to that is
Code:
> pa => ashq import <PriceAdvisor.ash> print(price_advisor($items[%%], true))
Bad item value: "=> ashq import print(price_advisor($items[%%" ()
Returned: void
So, any ideas on why this is not working?
I have zlib 21 and whatever version of SmashLib was downloadable 10min ago.