You all are so warmheart!
Thanks you all!
Thanks fengyue's suggestion, however I have made a trigger seem with Nirvana's idea like this:
#if (@Qnum=0) {TODO} {step=1}
buy %item(@Q,@step)
#TRIGGER {你从当铺买到了一*} {#wa 2000
#ad step 1
#until (@step>@Qnum) {buy %item(@Q,@step)}}
And here I want to ask another questions
If the gold or silver is not enough when auto-quest
How can I go back to withdraw gold
and continue doing my task (How can I judge I'm doing weapon|armor|food...blah blah)?
I have a idea with %trigger(), but it seems too many elements to consider
Thanks!