make script battle server event work