[훈련]PeaceMaking > 라죠 매크로

본문 바로가기

사이트 내 전체검색

뒤로가기 라죠 매크로

 

Enhanced Razor [훈련]PeaceMaking

페이지 정보

작성자 잠이보약 작성일 24-03-15 02:14 조회 54 댓글 1

본문

musichianshipTimerMilliseconds = 10000

def FindItem( itemsToLookFor, items ):for item in items:
        if item.ItemIDin itemsToLookFor:
            return itemelif item.IsContainer:
            itemToReturn = FindItem( itemsToLookFor, item.Contains )
            if itemToReturn != None:
                return itemToReturn
    returnNone


def FindInstrument():
    instruments = [
        0xe9c,  # Drum
        0x2805,  # Flute
        0xeb3,  # Lute# Harps
        0xeb2,  # Lap Harp
        0xeb1,  # Standing Harp# Tambourines
        0xe9e,  # Tambourine
        0xe9d   # Tambourine with red tassle
    ]

    instrument = FindItem( instruments, Player.Backpack.Contains )
    return instrument


def TrainMusicianship():global instrument
    global musichianshipTimerMilliseconds

    Misc.SendMessage( 'Training with: %s' % instrument )Items.UseItem( instrument )Timer.Create( 'musichianshipTimer', musichianshipTimerMilliseconds )

    while instrument != NoneandPlayer.GetSkillValue( 'Peacemaking' ) < 100andnotPlayer.IsGhost:ifnotTimer.Check( 'musichianshipTimer' ):
            Player.UseSkill("Peacemaking")
            Target.WaitForTarget(1500, False)
            Target.TargetExecute(0x10E5B)Timer.Create( 'musichianshipTimer', musichianshipTimerMilliseconds )
            instrument = Items.FindBySerial( instrument.Serial )if instrument == None:
                instrument = FindInstrument()
                if instrument != None:Misc.SendMessage( 'Training with: %s' % instrument )
        Misc.Pause(1000)
        if instrument == None:
        Misc.SendMessage( 'Ran out of instruments to train with', 1100 )


instrument = FindInstrument()

if instrument == None:
    Player.HeadMessage( 1100, 'No instrument found' )
else:
    TrainMusicianship()

댓글목록 1

마스터골드님의 댓글

마스터골드 작성일

좋은 매크로 감사합니다!

전체 93건 3 페이지
게시물 검색

 

회사소개 개인정보처리방침 서비스이용약관

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

Copyright © 소유하신 도메인. All rights reserved.
PC 버전으로 보기