[c2991] Update and improve script for quest 1249

(based on commit [2991] - e193a03)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>