I've created a script that withdraws 27 of item x.
Item y is located at index position 27.
I then use item y on item x until inventory contains none of item x.
This repeats until item x isn't available.
Currently, item y is used on the same item x until it is no longer available then moves on to another, then another, then another... etc etc.
I want the script to only ever use item y on the item x in index position 26 (as this is available until all item x has been used).
If anyone could help, i'll PM them the items i'm using so they can use this themselves for profit.
Thanks,
Cod