Is there a command to check the price of an item in the mall, and display the price?

Mystia

Member
It's been a while since I've done any scripting, and 95% of what I do starts with cli_execute anyways.

What I'd like to do is create something that checks the price of all the clip art items, then returns the lowest cost item of each type in the mall in the CLI, so I can use my tome summons to pick up some meat while in aftercore.
 
PHP:
item [int] clip;
for i from 5224 to 5283
	clip[count(clip)] = i.to_item();
sort clip by mall_price(value);
foreach i,c in clip
	print(mall_price(c) + " : " + c);
 
Building on what Bale gave me here, I built this...it will go through and discover all combinations, then summon the ones that are most valuable in the mall...
 

Attachments

Last edited:
I would suggest replacing cli_execute("acquire " + c) with create(1, c) since the former won't necessarily create the item. (If it is in your inventory for instance.)
 
I didn't know that it didn't update the 'last post' when the previous entry was edited. Thank you for the 'ash' format for create, I updated the script to utilize that.
 
Back
Top