After having issues with some parts the script has been fixed.
Everything should now work correctly.
You don't have to rebuy if you already successfully bought a ticket.