[2987] Implement script support for quest 10310

Thanks to @ghost and Zharvek for providing the information.
Based on the original work of zlokobni