초보적인 이동 매크로. 시약 마법시약 메크로 입니다.(거미줄 드래그 귀찮아서 만듬) > 클래식어시스트 매크로

본문 바로가기

사이트 내 전체검색

뒤로가기 클래식어시스트 매크로

 

초보적인 이동 매크로. 시약 마법시약 메크로 입니다.(거미줄 드래그 귀찮아서 만듬)

페이지 정보

작성자 Sendol 작성일 24-08-11 00:42 조회 145 댓글 1

본문

시약을 사서 집에 옮기다가 거미줄때메 만든 허덥. 간단 메크로 입니다.



아이템 이동 메크로를 참고해서.  적당히 만들었어요.



#시약 옮기기
from Assistant import Engine
from ClassicAssist.UO.Data import Layer

#8개


#1. 인삼 0xf85
#2. 만드레이크뿌리 0xf86
#3. 마늘 0xf84
#4. 흑진수 0xf7a
#5. 밤그늘풀 0xf88
#6. 거미줄 0xf8d
#7. 유황가루 0xf8c
#8. 피이끼 0xf7b

#WaitForContents(0x42b71aad, 5000)


def MoveItemToContainer(src_cont, dst_cont, sel_item):
    cont = Engine.Items.GetItem(src_cont)

    if cont == None:
        print('Cannot find container')
        return

    if cont.Container == None:
        WaitForContents(src_cont, 5000)

    for item in cont.Container.GetItems():
        if item.ID == sel_item:
            MoveItem(item, dst_cont)
            Pause(1000)


## main
HeadMsg('이동 할 아이템이 있는 상자를 선택 해 주세요.')    
if PromptAlias('move_item_grade_source_cont') == 0:
    raise Exception()    
src_cont = GetAlias('move_item_grade_source_cont')
    
HeadMsg('목표 상자를 선택 해 주세요.')    
if PromptAlias('move_item_grade_destination_cont') == 0:
    raise Exception()    
dst_cont = GetAlias('move_item_grade_destination_cont')

# 1.대상, 2.목표, 3.아이템의 그래픽넘버
MoveItemToContainer(src_cont, dst_cont, 0xf85)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf86)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf84)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf7a)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf88)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf8d)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf8c)
Pause(1000)
MoveItemToContainer(src_cont, dst_cont, 0xf7b)
Pause(1000)

HeadMsg('끝.')

댓글목록 1

gogong님의 댓글

gogong 작성일

감사합니다. 잘쓸게요.

전체 134건 1 페이지
게시물 검색

 

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

사이트 정보

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

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