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.
 

Bale

Minion
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);
 

Donavin69

Member
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

  • Clip_art.ash
    981 bytes · Views: 59
Last edited:

Bale

Minion
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.)
 

Donavin69

Member
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.
 
Top