if 이벤트티켓 == 0:

    count = 0

    luck = False

    while  not luck:

        mouse.click([ 이벤트 ] 코딩 오리)

        if error:

            luck=True

        count+=1

    print(count)