수리필요한 아이템 자동으로 백팩으로 이동하는 매크로
페이지 정보
작성자 fisherH 작성일 24-02-15 23:10 조회 126 댓글 2본문
안녕하세요 fisher.H입니다.
이번 매크로는 캐릭터에 장착된 아이템 중 수리가 필요한 아이템을 자동으로 걸러 백팩으로 이동하는 매크로인데요
마고서버의 VvV 아이템과 골동품은 막강한 내구도 감소로 약간의 방심을 통한 최대내구도 감소가 있습니다.
그런 불편함을 해소하고자 아래의 매크로를 사용합니다.
아래의 매크로 중 minDurability = 30 30이라는 숫자는 최저내구도의 기준치 이며 본인의 원하는 내구도 숫자로 변경하시면됩니다.
1. 본매크로는 자동중단과 백그라운드실행을 통해 사냥중 자동으로 아이템이 빠져나가게 할수있습니다.
2. 1분마다 장비를 체크하며, 내구도 설정 기준 미달시 머리에 표시가 나옵니다.
# Name: Durability check
# Description: Checks all items for durability and show alerts
# Author: Mordor
# Era: AOS
from Assistant import Engine
layers = [
'OneHanded',
'TwoHanded',
'Pants',
'Shirt',
'Helm',
'Gloves',
'Ring',
'Talisman',
'Neck',
'Waist',
'InnerTorso',
'Bracelet',
'Earrings',
'Arms',
'Cloak',
'OuterTorso',
'OuterLegs',
'InnerLegs',
]
# Amount of durability to alert
minDurability = 30
# Checks every 5 secs
checkDelay = 1000 * 60 # every 1 min
def property_exists(serial, cliloc):
item = Engine.Items.GetItem(serial)
if (item == None or item.Properties == None):
return False
for x in item.Properties:
if x.Cliloc == cliloc:
return True
return False
def check_durability():
while not Dead('self'):
for layer in layers:
if FindLayer(layer) and property_exists(GetAlias('found'), 1060639):
durability = PropertyValue[int]('found', 'durability')
Pause(500)
if durability < minDurability:
HeadMsg("ATTENTION!! \"" + layer + "\": " +
str(durability), 'self')
MoveItem('found', 'self')
Pause(checkDelay)
check_durability()
댓글목록 2
베깅레전님의 댓글
베깅레전 작성일이런것도 가능하군요...대박
마스터골드님의 댓글
마스터골드 작성일오 좋은매크로네요! 감사합니다