package script.quest.task; import script.obj_id; public class theater_controller extends script.base_script { public theater_controller() { } public int OnTheaterCreated(obj_id self, obj_id[] objects, obj_id player, obj_id creator) throws InterruptedException { if (objects != null) { for (int i = 0; i < objects.length; i++) { setObjVar(objects[i], "quest.owner", player); } } return SCRIPT_CONTINUE; } }