Bloody Knuckles
New member
Currently using this script to summon the most expensive Clip Art Item to sell:
Only problem is that mall_price() prints: "Searching for...." every item. And there are a lot of items. It's slowing down my script by a lot. Is there a way to turn off this option?
Code:
void SummonMostExpensive()
{
int remaining = 3 - get_property("tomeSummons").to_int();
if (remaining == 0)
{
print("Ran out of tome summons");
return;
}
int index = first;
item best = $item[none];
int price = 0;
while (index < last + 1)
{
int mall = mall_price(index.to_item());
if (mall > price)
{
price = mall;
best = index.to_item();
}
index = index + 1;
}
cli_execute("create " + remaining + " " + best);
cli_execute("mallsell " + remaining + " " + best);
}
Only problem is that mall_price() prints: "Searching for...." every item. And there are a lot of items. It's slowing down my script by a lot. Is there a way to turn off this option?