adding an advanced version for the L2C script (auto xp)