초보적인 이동 매크로. 시약 마법시약 메크로 입니다.(거미줄 드래그 귀찮아서 만듬)
페이지 정보
작성자 Sendol 작성일 24-08-11 00:42 조회 144 댓글 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('끝.')
gogong님의 댓글
gogong 작성일감사합니다. 잘쓸게요.