Jelajahi Sumber

Merge branch 'runhey:dev' into dev

endlesswxk 3 tahun lalu
induk
melakukan
6d5f4f6fed
27 mengubah file dengan 419 tambahan dan 17 penghapusan
  1. 12 3
      tasks/Component/Buy/buy.py
  2. 47 0
      tasks/RichMan/assets.py
  3. 22 5
      tasks/RichMan/mall/charisma.py
  4. TEMPAT SAMPAH
      tasks/RichMan/mall/charisma/charisma_ch_black.png
  5. TEMPAT SAMPAH
      tasks/RichMan/mall/charisma/charisma_ch_blue.png
  6. TEMPAT SAMPAH
      tasks/RichMan/mall/charisma/charisma_ch_check_blue.png
  7. 29 0
      tasks/RichMan/mall/charisma/image.json
  8. 115 7
      tasks/RichMan/mall/friendship_points.py
  9. TEMPAT SAMPAH
      tasks/RichMan/mall/friendship_points/friendship_points_fs_broken.png
  10. TEMPAT SAMPAH
      tasks/RichMan/mall/friendship_points/friendship_points_fs_red.png
  11. TEMPAT SAMPAH
      tasks/RichMan/mall/friendship_points/friendship_points_fs_white_check.png
  12. TEMPAT SAMPAH
      tasks/RichMan/mall/friendship_points/friendship_points_fs_white_click.png
  13. 38 0
      tasks/RichMan/mall/friendship_points/image.json
  14. 46 2
      tasks/RichMan/mall/medal.py
  15. 110 0
      tasks/RichMan/mall/medal/image.json
  16. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_ap.png
  17. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_black.png
  18. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_blue.png
  19. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_broken.png
  20. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_challenge_pass.png
  21. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_check_ap.png
  22. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_check_black.png
  23. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_check_blue.png
  24. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_check_souls.png
  25. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_red.png
  26. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_souls.png
  27. TEMPAT SAMPAH
      tasks/RichMan/mall/medal/medal_me_white.png

+ 12 - 3
tasks/Component/Buy/buy.py

@@ -9,6 +9,7 @@ from module.atom.image import RuleImage
 from module.atom.ocr import RuleOcr
 from module.atom.click import RuleClick
 from module.logger import logger
+from module.base.timer import Timer
 
 from tasks.base_task import BaseTask
 from tasks.Component.Buy.assets import BuyAssets
@@ -45,7 +46,7 @@ class Buy(BaseTask, BuyAssets):
                 while 1:
                     self.screenshot()
                     # 等待动画结束
-                    if not self.appear(self.I_UI_REWARD, threshold=1):
+                    if not self.appear(self.I_UI_REWARD):
                         logger.info('Get reward success')
                         break
                     # 一直点击
@@ -90,8 +91,17 @@ class Buy(BaseTask, BuyAssets):
         else:
             # 四次截图数字都一样,就可以退出了
             number_record = []
+            ocr_timer = Timer(0.8)
+            ocr_timer.start()
             while 1:
                 self.screenshot()
+
+                if self.appear_then_click(self.I_BUY_ADD, interval=0.8):
+                    continue
+
+                if not ocr_timer.reached():
+                    continue
+                ocr_timer.reset()
                 current = self.O_BUY_NUMBER.ocr(self.device.image)
                 if current >= number:
                     break
@@ -101,8 +111,7 @@ class Buy(BaseTask, BuyAssets):
                         break
                     number_record.pop(0)
 
-                if self.appear_then_click(self.I_BUY_ADD, interval=1):
-                    continue
+
         # 购买确认
         while 1:
             self.screenshot()

+ 47 - 0
tasks/RichMan/assets.py

@@ -67,6 +67,15 @@ class RichManAssets:
 	O_BL_CHECK_MONEY = RuleOcr(roi=(1123,12,127,33), area=(1123,12,127,33), mode="DigitCounter", method="Default", keyword="", name="bl_check_money")
 
 
+	# Image Rule Assets
+	# 蓝票 
+	I_CH_BLUE = RuleImage(roi_front=(623,142,145,111), roi_back=(161,112,844,462), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/charisma/charisma_ch_blue.png")
+	# description 
+	I_CH_BLACK = RuleImage(roi_front=(848,393,141,110), roi_back=(137,94,895,486), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/charisma/charisma_ch_black.png")
+	# 蓝票购买确认 
+	I_CH_CHECK_BLUE = RuleImage(roi_front=(451,230,100,100), roi_back=(451,230,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/charisma/charisma_ch_check_blue.png")
+
+
 	# Image Rule Assets
 	# 进入寄售屋 
 	I_CON_ENTER_CHECK = RuleImage(roi_front=(660,485,393,100), roi_back=(660,485,393,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/consignment/consignment_con_enter_check.png")
@@ -81,6 +90,17 @@ class RichManAssets:
 	O_CON_NUMBER = RuleOcr(roi=(813,140,34,38), area=(813,140,34,38), mode="Digit", method="Default", keyword="", name="con_number")
 
 
+	# Image Rule Assets
+	# 红蛋 
+	I_FS_RED = RuleImage(roi_front=(423,158,100,100), roi_back=(423,158,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/friendship_points/friendship_points_fs_red.png")
+	# 破碎的咒符 
+	I_FS_BROKEN = RuleImage(roi_front=(200,153,100,100), roi_back=(200,153,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/friendship_points/friendship_points_fs_broken.png")
+	# description 
+	I_FS_WHITE_CLICK = RuleImage(roi_front=(647,157,100,100), roi_back=(647,157,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/friendship_points/friendship_points_fs_white_click.png")
+	# 白蛋确认 
+	I_FS_WHITE_CHECK = RuleImage(roi_front=(452,229,100,100), roi_back=(452,229,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/friendship_points/friendship_points_fs_white_check.png")
+
+
 	# Image Rule Assets
 	# 蓝票 
 	I_HONOR_BLUE = RuleImage(roi_front=(868,152,100,100), roi_back=(154,113,864,476), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/honor/honor_honor_blue.png")
@@ -99,6 +119,33 @@ class RichManAssets:
 	O_HONOR_WHITE = RuleOcr(roi=(527,359,25,28), area=(527,359,25,28), mode="Digit", method="Default", keyword="", name="honor_white")
 
 
+	# Image Rule Assets
+	# 黑蛋 
+	I_ME_BLACK = RuleImage(roi_front=(631,152,130,120), roi_back=(165,121,859,431), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_black.png")
+	# 蓝票 
+	I_ME_BLUE = RuleImage(roi_front=(176,148,138,126), roi_back=(139,115,887,464), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_blue.png")
+	# 体力 
+	I_ME_AP = RuleImage(roi_front=(842,395,145,123), roi_back=(156,111,862,454), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_ap.png")
+	# 随机御魂 
+	I_ME_SOULS = RuleImage(roi_front=(173,391,148,133), roi_back=(121,116,898,476), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_souls.png")
+	# 白蛋 
+	I_ME_WHITE = RuleImage(roi_front=(399,391,142,131), roi_back=(115,114,908,452), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_white.png")
+	# 御灵挑战券 
+	I_ME_CHALLENGE_PASS = RuleImage(roi_front=(618,390,146,129), roi_back=(114,102,914,478), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_challenge_pass.png")
+	# 红蛋 
+	I_ME_RED = RuleImage(roi_front=(847,146,137,129), roi_back=(141,129,864,454), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_red.png")
+	# 破碎的咒符 
+	I_ME_BROKEN = RuleImage(roi_front=(398,144,143,116), roi_back=(146,116,866,475), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_broken.png")
+	# 购买检查 
+	I_ME_CHECK_BLACK = RuleImage(roi_front=(452,231,100,100), roi_back=(452,231,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_check_black.png")
+	# 购买检查 
+	I_ME_CHECK_BLUE = RuleImage(roi_front=(448,232,100,100), roi_back=(448,232,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_check_blue.png")
+	# 购买检查 
+	I_ME_CHECK_AP = RuleImage(roi_front=(453,227,100,100), roi_back=(453,227,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_check_ap.png")
+	# 购买检查 
+	I_ME_CHECK_SOULS = RuleImage(roi_front=(453,235,100,100), roi_back=(453,235,100,100), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/medal/medal_me_check_souls.png")
+
+
 	# Image Rule Assets
 	# 寄售屋 
 	I_MALL_CONSIGNMENT = RuleImage(roi_front=(192,629,63,72), roi_back=(192,629,63,72), threshold=0.8, method="Template matching", file="./tasks/RichMan/mall/navbar/navbar_mall_consignment.png")

+ 22 - 5
tasks/RichMan/mall/charisma.py

@@ -6,16 +6,33 @@ import time
 from module.logger import logger
 
 from tasks.GameUi.page import page_main, page_guild
-from tasks.GameUi.game_ui import GameUi
-from tasks.Component.Buy.buy import Buy
-from tasks.RichMan.assets import RichManAssets
+from tasks.RichMan.mall.friendship_points import FriendshipPoints
 from tasks.RichMan.config import Charisma as CharismaConfig
 
 
-class Charisma(GameUi, Buy, RichManAssets):
+class Charisma(FriendshipPoints):
 
     def execute_charisma(self, con: CharismaConfig = None):
-        pass
+        if not con:
+            logger.info('Charisma is not enable')
+            con = self.config.rich_man.charisma
+        if not con.enable:
+            logger.info('Charisma is not enable')
+            return
+        self._enter_charisma()
+
+        # 开始
+        # 黑色碎片
+        if con.black_daruma_scrap:
+            self.buy_mall_more(buy_button=self.I_CH_BLACK, remain_number=True,
+                               money_ocr=self.O_MALL_RESOURCE_5,
+                               buy_number=2, buy_max=2, buy_money=320)
+        # 蓝票
+        if con.mystery_amulet:
+            self.buy_mall_one(buy_button=self.I_CH_BLUE, buy_check=self.I_CH_CHECK_BLUE,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=400)
+
+
 
 
 if __name__ == '__main__':

TEMPAT SAMPAH
tasks/RichMan/mall/charisma/charisma_ch_black.png


TEMPAT SAMPAH
tasks/RichMan/mall/charisma/charisma_ch_blue.png


TEMPAT SAMPAH
tasks/RichMan/mall/charisma/charisma_ch_check_blue.png


+ 29 - 0
tasks/RichMan/mall/charisma/image.json

@@ -0,0 +1,29 @@
+[
+  {
+    "itemName": "ch_blue",
+    "imageName": "charisma_ch_blue.png",
+    "roiFront": "623,142,145,111",
+    "roiBack": "161,112,844,462",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "蓝票"
+  },
+  {
+    "itemName": "ch_black",
+    "imageName": "charisma_ch_black.png",
+    "roiFront": "848,393,141,110",
+    "roiBack": "137,94,895,486",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "ch_check_blue",
+    "imageName": "charisma_ch_check_blue.png",
+    "roiFront": "451,230,100,100",
+    "roiBack": "451,230,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "蓝票购买确认"
+  }
+]

+ 115 - 7
tasks/RichMan/mall/friendship_points.py

@@ -4,25 +4,133 @@
 import time
 
 from module.logger import logger
+from module.atom.image import RuleImage
+from module.atom.ocr import RuleOcr
 
-from tasks.GameUi.page import page_main, page_guild
-from tasks.GameUi.game_ui import GameUi
-from tasks.Component.Buy.buy import Buy
-from tasks.RichMan.assets import RichManAssets
+from tasks.RichMan.mall.special import Special
 from tasks.RichMan.config import FriendshipPoints as FriendshipPointsConfig
 
 
-class FriendshipPoints(GameUi, Buy, RichManAssets):
+class FriendshipPoints(Special):
 
     def execute_friendship(self, con: FriendshipPointsConfig = None):
-        pass
+        if not con:
+            con = self.config.rich_man.friendship_points
+        if not con.enable:
+            logger.info('Friendship points is not enable')
+            return
+        self._enter_friendship()
+
+        # 购买
+        if con.white_daruma:
+            self.buy_mall_one(buy_button=self.I_FS_WHITE_CLICK, buy_check=self.I_FS_WHITE_CHECK,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=1000)
+        if con.red_daruma != 0:
+            self.buy_mall_more(buy_button=self.I_FS_RED, remain_number=False, money_ocr=self.O_MALL_RESOURCE_5,
+                                 buy_number=con.red_daruma, buy_max=99, buy_money=150)
+        if con.broken_amulet != 0:
+            self.buy_mall_more(buy_button=self.I_FS_BROKEN, remain_number=False, money_ocr=self.O_MALL_RESOURCE_5,
+                                 buy_number=con.broken_amulet, buy_max=99, buy_money=100)
+
+    def buy_mall_one(self, buy_button: RuleImage, buy_check: RuleImage, money_ocr: RuleOcr, buy_money: int):
+        """
+        针对只能买一个的
+        :param buy_button:
+        :param buy_check:
+        :param money_ocr:
+        :param buy_money: 买这一个花多少
+        :return:
+        """
+        logger.hr(buy_button.name, 3)
+        self.screenshot()
+        # 检查是否出现了购买按钮
+        if not self.appear(buy_button):
+            logger.warning('Buy button is not appear')
+            return
+        # 是否检查剩余数量
+        _remain = self._special_check_remain(buy_button)
+        if _remain == 0:
+            logger.warning('Remain number is 0')
+            return
+        # 检查钱
+        current_money = money_ocr.ocr(self.device.image)
+        if not isinstance(current_money, int):
+            logger.warning('Money ocr failed')
+            return
+        money_enough = current_money >= buy_money
+        if not money_enough:
+            logger.warning(f'No enough money {current_money}')
+            return
+        # 点击购买
+        self.buy_one(buy_button, buy_check)
+
+    def buy_mall_more(self, buy_button: RuleImage, remain_number: bool, money_ocr: RuleOcr,
+                       buy_number: int, buy_max: int, buy_money: int):
+        """
+        针对可以买多个的
+        :param money_ocr:  检查钱的第几个
+        :param remain_number: 是否需要检查剩余数量
+        :param buy_button:
+        :param buy_number:
+        :param buy_max:
+        :param buy_money:
+        :return:
+        """
+        logger.hr(buy_button.name, 3)
+        if buy_number == 0:
+            logger.info('Buy number is 0')
+            return
+        self.screenshot()
+        # 检查是否出现了购买按钮
+        if not self.appear(buy_button):
+            logger.warning('Buy button is not appear')
+            return
+        # 是否检查剩余数量
+        if remain_number:
+            _remain = self._special_check_remain(buy_button)
+            if _remain == 0:
+                logger.warning('Remain number is 0')
+                return
+            if _remain < buy_number:
+                logger.warning(f'Remain number is {_remain}, buy number is {buy_number}')
+                buy_number = _remain
+        # 检查钱够不够
+        current_money = money_ocr.ocr(self.device.image)
+        if not isinstance(current_money, int):
+            logger.warning('Money ocr failed')
+            return
+        money_enough = current_money >= buy_money * buy_number
+        if not money_enough:
+            logger.warning(f'Money is not enough {current_money}')
+            # 判断够不够买2个
+            if current_money < buy_money * 2:
+                logger.warning('Money is not enough 2')
+                return
+            buy_number = current_money // buy_money
+        # 购买
+        logger.info(f'Buy number is {buy_number}')
+        if buy_number >= buy_max:
+            buy_cycles_number = buy_number // buy_max
+            buy_res_number = buy_number % buy_max
+        else:
+            buy_cycles_number = None
+            buy_res_number = buy_number
+        if buy_cycles_number:
+            for i in range(buy_cycles_number):
+                self.buy_more(buy_button)
+                time.sleep(0.5)
+        if buy_res_number:
+            self.buy_more(buy_button, buy_res_number)
+            time.sleep(0.5)
+
 
 
 if __name__ == '__main__':
     from module.config.config import Config
     from module.device.device import Device
 
-    c = Config('oas1')
+    c = Config('test')
     d = Device(c)
     t = FriendshipPoints(c, d)
 
+    t.execute_friendship()

TEMPAT SAMPAH
tasks/RichMan/mall/friendship_points/friendship_points_fs_broken.png


TEMPAT SAMPAH
tasks/RichMan/mall/friendship_points/friendship_points_fs_red.png


TEMPAT SAMPAH
tasks/RichMan/mall/friendship_points/friendship_points_fs_white_check.png


TEMPAT SAMPAH
tasks/RichMan/mall/friendship_points/friendship_points_fs_white_click.png


+ 38 - 0
tasks/RichMan/mall/friendship_points/image.json

@@ -0,0 +1,38 @@
+[
+  {
+    "itemName": "fs_red",
+    "imageName": "friendship_points_fs_red.png",
+    "roiFront": "423,158,100,100",
+    "roiBack": "423,158,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "红蛋"
+  },
+  {
+    "itemName": "fs_broken",
+    "imageName": "friendship_points_fs_broken.png",
+    "roiFront": "200,153,100,100",
+    "roiBack": "200,153,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "破碎的咒符"
+  },
+  {
+    "itemName": "fs_white_click",
+    "imageName": "friendship_points_fs_white_click.png",
+    "roiFront": "647,157,100,100",
+    "roiBack": "647,157,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "fs_white_check",
+    "imageName": "friendship_points_fs_white_check.png",
+    "roiFront": "452,229,100,100",
+    "roiBack": "452,229,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "白蛋确认"
+  }
+]

+ 46 - 2
tasks/RichMan/mall/medal.py

@@ -10,12 +10,56 @@ from tasks.GameUi.game_ui import GameUi
 from tasks.Component.Buy.buy import Buy
 from tasks.RichMan.assets import RichManAssets
 from tasks.RichMan.config import MedalRoom
+from tasks.RichMan.mall.friendship_points import FriendshipPoints
 
 
-class Medal(GameUi, Buy, RichManAssets):
+class Medal(FriendshipPoints):
 
     def execute_medal(self, con: MedalRoom = None):
-        pass
+        if not con:
+            con = self.config.rich_man.medal_room
+        if not con.enable:
+            logger.info('Medal is not enable')
+            return
+        self._enter_medal()
+
+        # 黑蛋
+        if con.black_daruma:
+            self.buy_mall_one(buy_button=self.I_ME_BLACK, buy_check=self.I_ME_CHECK_BLACK,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=480)
+        # 蓝票
+        if con.mystery_amulet:
+            self.buy_mall_one(buy_button=self.I_ME_BLUE, buy_check=self.I_ME_CHECK_BLUE,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=180)
+        # 体力100
+        if con.ap_100:
+            self.buy_mall_one(buy_button=self.I_ME_AP, buy_check=self.I_ME_CHECK_AP,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=120)
+        # 随机御魂
+        if con.random_soul:
+            self.buy_mall_one(buy_button=self.I_ME_SOULS, buy_check=self.I_ME_CHECK_SOULS,
+                              money_ocr=self.O_MALL_RESOURCE_5, buy_money=320)
+        # 两颗白蛋
+        if con.white_daruma:
+            self.buy_mall_more(buy_button=self.I_ME_WHITE, remain_number=True, money_ocr=self.O_MALL_RESOURCE_5,
+                               buy_number=2, buy_max=2, buy_money=100)
+        # 十张挑战券
+        if con.challenge_pass:
+            self.buy_mall_more(buy_button=self.I_ME_CHALLENGE_PASS, remain_number=True, money_ocr=self.O_MALL_RESOURCE_5,
+                               buy_number=con.challenge_pass, buy_max=10, buy_money=30)
+        # 红蛋
+        if con.red_daruma:
+            self.buy_mall_more(buy_button=self.I_ME_RED, remain_number=False,
+                               money_ocr=self.O_MALL_RESOURCE_5,
+                               buy_number=con.red_daruma, buy_max=99, buy_money=30)
+        # 破碎的咒符
+        if con.broken_amulet:
+            self.buy_mall_more(buy_button=self.I_ME_BROKEN, remain_number=False,
+                               money_ocr=self.O_MALL_RESOURCE_5,
+                               buy_number=con.broken_amulet, buy_max=99, buy_money=20)
+
+        time.sleep(1)
+
 
 
 if __name__ == '__main__':

+ 110 - 0
tasks/RichMan/mall/medal/image.json

@@ -0,0 +1,110 @@
+[
+  {
+    "itemName": "me_black",
+    "imageName": "medal_me_black.png",
+    "roiFront": "631,152,130,120",
+    "roiBack": "165,121,859,431",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "黑蛋"
+  },
+  {
+    "itemName": "me_blue",
+    "imageName": "medal_me_blue.png",
+    "roiFront": "176,148,138,126",
+    "roiBack": "139,115,887,464",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "蓝票"
+  },
+  {
+    "itemName": "me_ap",
+    "imageName": "medal_me_ap.png",
+    "roiFront": "842,395,145,123",
+    "roiBack": "156,111,862,454",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "体力"
+  },
+  {
+    "itemName": "me_souls",
+    "imageName": "medal_me_souls.png",
+    "roiFront": "173,391,148,133",
+    "roiBack": "121,116,898,476",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "随机御魂"
+  },
+  {
+    "itemName": "me_white",
+    "imageName": "medal_me_white.png",
+    "roiFront": "399,391,142,131",
+    "roiBack": "115,114,908,452",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "白蛋"
+  },
+  {
+    "itemName": "me_challenge_pass",
+    "imageName": "medal_me_challenge_pass.png",
+    "roiFront": "618,390,146,129",
+    "roiBack": "114,102,914,478",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "御灵挑战券"
+  },
+  {
+    "itemName": "me_red",
+    "imageName": "medal_me_red.png",
+    "roiFront": "847,146,137,129",
+    "roiBack": "141,129,864,454",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "红蛋"
+  },
+  {
+    "itemName": "me_broken",
+    "imageName": "medal_me_broken.png",
+    "roiFront": "398,144,143,116",
+    "roiBack": "146,116,866,475",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "破碎的咒符"
+  },
+  {
+    "itemName": "me_check_black",
+    "imageName": "medal_me_check_black.png",
+    "roiFront": "452,231,100,100",
+    "roiBack": "452,231,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "购买检查"
+  },
+  {
+    "itemName": "me_check_blue",
+    "imageName": "medal_me_check_blue.png",
+    "roiFront": "448,232,100,100",
+    "roiBack": "448,232,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "购买检查"
+  },
+  {
+    "itemName": "me_check_ap",
+    "imageName": "medal_me_check_ap.png",
+    "roiFront": "453,227,100,100",
+    "roiBack": "453,227,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "购买检查"
+  },
+  {
+    "itemName": "me_check_souls",
+    "imageName": "medal_me_check_souls.png",
+    "roiFront": "453,235,100,100",
+    "roiBack": "453,235,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "购买检查"
+  }
+]

TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_ap.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_black.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_blue.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_broken.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_challenge_pass.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_check_ap.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_check_black.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_check_blue.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_check_souls.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_red.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_souls.png


TEMPAT SAMPAH
tasks/RichMan/mall/medal/medal_me_white.png