My Suggestion is put some bottons for example


Mana Shop and then when is clicked will add 1 action and inside of that action will be added automatic the next things:

say('hi')
wait(500, 1200)
npcsay('trade')
wait(500, 1200)

sellflask()

resupply('')
wait(500, 1200)
ncpsay('bye')
or something like that

Also other button for buy bolts, arrow, spears.
other button for the banker.
Another button for sell items on npc, but when is pressed that button show a little window for set wich npc for sell item is, rashid, blue djinn, green, rashid, etc,