Some scripting help...

Alex9009

New member
If I want Mafia to buy unfortunate dumplings until I have 20 in my inventory, but not make them as Mafia wants to do using "acquire," how do I script it? Acquire would be fine but I don't want mafia to make them, just buy from the mall.
 

Theraze

Active member
ashq if (item_amount($item[unfortunate dumplings]) < 20) buy((20 - item_amount($item[unfortunate dumplings]), $item[unfortunate dumplings]);
 
Last edited:

lostcalpolydude

Developer
Staff member
cli_execute("call scriptname"); will work. Or you can use
<inline-ash-script>
</inline-ash-script>
to put ASH in a CLI script. Make sure to put those tags on their own lines.
 
Top