[2991] Update and improve script for quest 1249

Fix #85