var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { cm.openShopNPC(2100002); cm.dispose(); }