Upd: Rogue routes

This commit is contained in:
LmeSzinc 2023-11-18 00:21:23 +08:00
parent bace33056c
commit ec3ca73972
26 changed files with 351 additions and 69 deletions

View File

@ -7,22 +7,26 @@ class Route(RouteBase):
def Herta_StorageZone_F1_X225Y258(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((225.8, 258.8)), | 96.7 | 91 |
| item1 | Waypoint((240.8, 270.0)), | 135.8 | 131 |
| enemy1 | Waypoint((270.6, 258.8)), | 76.4 | 73 |
| node2 | Waypoint((273.2, 269.2)), | 157.2 | 156 |
| node3 | Waypoint((284.6, 283.0)), | 157.2 | 154 |
| item3 | Waypoint((293.2, 288.6)), | 105.5 | 103 |
| node4 | Waypoint((307.2, 305.2)), | 126.2 | 124 |
| item5 | Waypoint((332.8, 304.8)), | 96.8 | 96 |
| node5 | Waypoint((336.2, 312.0)), | 102.9 | 98 |
| enemy5 | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| exit_ | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| Waypoint | Position | Direction | Rotation |
| -------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((225.8, 258.8)), | 96.7 | 91 |
| item1 | Waypoint((240.8, 270.0)), | 135.8 | 131 |
| enemy1 | Waypoint((270.6, 258.8)), | 76.4 | 73 |
| node2 | Waypoint((273.2, 269.2)), | 157.2 | 156 |
| node3 | Waypoint((284.6, 283.0)), | 157.2 | 154 |
| item3 | Waypoint((293.2, 288.6)), | 105.5 | 103 |
| node4 | Waypoint((307.2, 305.2)), | 126.2 | 124 |
| item5 | Waypoint((332.8, 304.8)), | 96.8 | 96 |
| node5 | Waypoint((336.2, 312.0)), | 102.9 | 98 |
| enemy5 | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| exit_ | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| exit1_X400Y318 | Waypoint((411.2, 301.8)), | 101.1 | 91 |
| exit2_X400Y318 | Waypoint((400.8, 318.9)), | 101.1 | 91 |
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(225.8, 258.8))
self.register_domain_exit(Waypoint((392.5, 312.4)), end_rotation=91)
self.register_domain_exit(
Waypoint((392.5, 312.4)), end_rotation=91,
left_door=Waypoint((411.2, 301.8)), right_door=Waypoint((400.8, 318.9)))
item1 = Waypoint((240.8, 270.0))
enemy1 = Waypoint((270.6, 258.8))
node2 = Waypoint((273.2, 269.2))
@ -34,6 +38,9 @@ class Route(RouteBase):
enemy5 = Waypoint((392.5, 312.4))
# ===== End of generated waypoints =====
self.register_domain_exit(
Waypoint((392.5, 312.4)), end_rotation=91,
left_door=Waypoint((400.2, 301.8)), right_door=Waypoint((400.8, 318.9)))
# 1
self.clear_item(item1.straight_run())
self.clear_enemy(enemy1.straight_run())
@ -103,9 +110,13 @@ class Route(RouteBase):
| item3 | Waypoint((588.6, 102.2)), | 245.0 | 246 |
| enemy3 | Waypoint((598.3, 129.1)), | 181.3 | 174 |
| exit_ | Waypoint((598.3, 129.1)), | 181.3 | 174 |
| exit1 | Waypoint((605.4, 137.2)), | 185.7 | 179 |
| exit2 | Waypoint((591.5, 137.0)), | 185.8 | 179 |
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(692.0, 62.0))
self.register_domain_exit(Waypoint((598.3, 129.1)), end_rotation=174)
self.register_domain_exit(
Waypoint((598.3, 129.1)), end_rotation=174,
left_door=Waypoint((605.4, 137.2)), right_door=Waypoint((591.5, 137.0)))
item1 = Waypoint((676.1, 98.5))
enemy2 = Waypoint((649.3, 68.7))
enemy1 = Waypoint((654.7, 84.5))

View File

@ -13,9 +13,13 @@ class Route(RouteBase):
| item | Waypoint((342.8, 155.7)), | 274.2 | 274 |
| enemy | Waypoint((304.0, 165.4)), | 261.9 | 264 |
| exit_ | Waypoint((300.8, 163.8)), | 2.6 | 262 |
| exit1 | Waypoint((305.2, 169.2)), | 275.9 | 274 |
| exit2 | Waypoint((304.6, 160.8)), | 277.8 | 276 |
"""
self.map_init(plane=Herta_StorageZone, floor="F2", position=(351.4, 164.9))
self.register_domain_exit(Waypoint((300.8, 163.8)), end_rotation=262)
self.register_domain_exit(
Waypoint((300.8, 163.8)), end_rotation=262,
left_door=Waypoint((304.6, 160.8)), right_door=Waypoint((305.2, 169.2)))
item = Waypoint((342.8, 155.7))
enemy = Waypoint((304.0, 165.4))
# ===== End of generated waypoints =====
@ -31,9 +35,13 @@ class Route(RouteBase):
| item | Waypoint((330.0, 175.6)), | 271.8 | 267 |
| enemy | Waypoint((300.2, 166.0)), | 284.9 | 94 |
| exit_ | Waypoint((304.0, 166.0)), | 271.8 | 267 |
| exit1 | Waypoint((293.4, 175.3)), | 282.0 | 274 |
| exit2 | Waypoint((293.0, 157.2)), | 282.0 | 274 |
"""
self.map_init(plane=Herta_StorageZone, floor="F2", position=(365.1, 167.2))
self.register_domain_exit(Waypoint((304.0, 166.0)), end_rotation=267)
self.register_domain_exit(
Waypoint((304.0, 166.0)), end_rotation=267,
left_door=Waypoint((293.4, 175.3)), right_door=Waypoint((293.0, 157.2)))
item = Waypoint((330.0, 175.6))
enemy = Waypoint((300.2, 166.0))
# ===== End of generated waypoints =====

View File

@ -20,9 +20,13 @@ class Route(RouteBase):
| item3 | Waypoint((68.5, 226.5)), | 30.2 | 29 |
| enemy3 | Waypoint((114.4, 234.7)), | 105.5 | 101 |
| exit_ | Waypoint((119.1, 235.4)), | 6.8 | 96 |
| exit1 | Waypoint((121.4, 229.4)), | 102.9 | 96 |
| exit2 | Waypoint((695.4, 251.6)), | 99.1 | 354 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2", position=(45.5, 369.5))
self.register_domain_exit(Waypoint((119.1, 235.4)), end_rotation=96)
self.register_domain_exit(
Waypoint((119.1, 235.4)), end_rotation=96,
left_door=Waypoint((121.4, 229.4)), right_door=Waypoint((695.4, 251.6)))
item1 = Waypoint((38.7, 346.8))
door1 = Waypoint((46.6, 343.9))
enemy1 = Waypoint((46.2, 328.2))
@ -147,9 +151,13 @@ class Route(RouteBase):
| enemy2 | Waypoint((542.2, 168.6)), | 11.1 | 177 |
| item3 | Waypoint((560.2, 130.9)), | 67.2 | 66 |
| exit_ | Waypoint((586.9, 129.8)), | 266.1 | 1 |
| exit1 | Waypoint((580.8, 125.6)), | 101.3 | 1 |
| exit2 | Waypoint((593.2, 123.5)), | 11.1 | 1 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2", position=(656.7, 247.5))
self.register_domain_exit(Waypoint((586.9, 129.8)), end_rotation=1)
self.register_domain_exit(
Waypoint((586.9, 129.8)), end_rotation=1,
left_door=Waypoint((580.8, 125.6)), right_door=Waypoint((593.2, 123.5)))
item1 = Waypoint((578.9, 258.2))
enemy1 = Waypoint((542.2, 246.2))
enemy3 = Waypoint((586.5, 128.3))

View File

@ -14,19 +14,23 @@ class Route(RouteBase):
| bridge_center | Waypoint((222.2, 246.8)), | 6.7 | 4 |
| enemy2 | Waypoint((222.0, 234.6)), | 11.2 | 184 |
| bridge1 | Waypoint((222.8, 284.9)), | 6.7 | 4 |
| node2 | Waypoint((221.1, 293.0)), | 107.4 | 110 |
| node3 | Waypoint((222.8, 178.8)), | 6.7 | 4 |
| node2 | Waypoint((242.4, 298.3)), | 105.5 | 101 |
| enemy3 | Waypoint((283.3, 178.9)), | 2.7 | 89 |
| exit_ | Waypoint((283.3, 178.9)), | 2.7 | 89 |
| exit1 | Waypoint((289.4, 173.4)), | 96.8 | 94 |
| exit2 | Waypoint((289.7, 183.6)), | 96.8 | 94 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2RogueX151Y245", position=(152.0, 245.4))
self.register_domain_exit(Waypoint((283.3, 178.9)), end_rotation=89)
self.register_domain_exit(
Waypoint((283.3, 178.9)), end_rotation=89,
left_door=Waypoint((289.4, 173.4)), right_door=Waypoint((289.7, 183.6)))
node1 = Waypoint((156.1, 286.2))
bridge_center = Waypoint((222.2, 246.8))
enemy2 = Waypoint((222.0, 234.6))
bridge1 = Waypoint((222.8, 284.9))
node2 = Waypoint((221.1, 293.0))
node3 = Waypoint((222.8, 178.8))
node2 = Waypoint((242.4, 298.3))
enemy3 = Waypoint((283.3, 178.9))
# ===== End of generated waypoints =====

View File

@ -115,10 +115,14 @@ class Route(RouteBase):
| spawn | Waypoint((555.6, 643.2)), | 282.3 | 274 |
| item | Waypoint((524.8, 620.4)), | 318.0 | 322 |
| enemy | Waypoint((505.7, 642.9)), | 14.1 | 274 |
| exit_ | Waypoint((505.7, 642.9)), | 14.1 | 274 |
| exit_ | Waypoint((505.3, 643.3)), | 180.1 | 274 |
| exit1 | Waypoint((501.2, 648.6)), | 275.9 | 274 |
| exit2 | Waypoint((501.5, 633.9)), | 281.9 | 274 |
"""
self.map_init(plane=Jarilo_BackwaterPass, floor="F1", position=(555.6, 643.2))
self.register_domain_exit(Waypoint((505.7, 642.9)), end_rotation=274)
self.register_domain_exit(
Waypoint((505.3, 643.3)), end_rotation=274,
left_door=Waypoint((501.2, 648.6)), right_door=Waypoint((501.5, 633.9)))
item = Waypoint((524.8, 620.4))
enemy = Waypoint((505.7, 642.9))
# ===== End of generated waypoints =====

View File

@ -12,9 +12,13 @@ class Route(RouteBase):
| spawn | Waypoint((115.5, 911.3)), | 274.2 | 274 |
| enemy | Waypoint((64.2, 909.2)), | 282.6 | 276 |
| exit_ | Waypoint((64.2, 909.2)), | 282.6 | 276 |
| exit1 | Waypoint((55.8, 916.7)), | 281.9 | 274 |
| exit2 | Waypoint((55.2, 904.6)), | 281.9 | 274 |
"""
self.map_init(plane=Jarilo_CorridorofFadingEchoes, floor="F1", position=(115.5, 911.3))
self.register_domain_exit(Waypoint((64.2, 909.2)), end_rotation=276)
self.register_domain_exit(
Waypoint((64.2, 909.2)), end_rotation=276,
left_door=Waypoint((55.8, 916.7)), right_door=Waypoint((55.2, 904.6)))
enemy = Waypoint((64.2, 909.2))
# ===== End of generated waypoints =====

View File

@ -49,9 +49,13 @@ class Route(RouteBase):
| item | Waypoint((108.7, 448.1)), | 318.0 | 320 |
| enemy | Waypoint((110.1, 420.6)), | 337.4 | 338 |
| exit_ | Waypoint((104.0, 414.0)), | 334.8 | 331 |
| exit1 | Waypoint((97.2, 415.0)), | 334.8 | 334 |
| exit2 | Waypoint((108.2, 406.0)), | 334.8 | 334 |
"""
self.map_init(plane=Jarilo_GreatMine, floor="F1", position=(133.3, 465.6))
self.register_domain_exit(Waypoint((104.0, 414.0)), end_rotation=331)
self.register_domain_exit(
Waypoint((104.0, 414.0)), end_rotation=331,
left_door=Waypoint((97.2, 415.0)), right_door=Waypoint((108.2, 406.0)))
item = Waypoint((108.7, 448.1))
enemy = Waypoint((110.1, 420.6))
# ===== End of generated waypoints =====
@ -68,9 +72,13 @@ class Route(RouteBase):
| item | Waypoint((180.4, 250.8)), | 36.0 | 31 |
| enemy | Waypoint((202.4, 256.6)), | 76.4 | 71 |
| exit_ | Waypoint((202.4, 256.6)), | 76.4 | 71 |
| exit1 | Waypoint((208.7, 243.8)), | 75.1 | 73 |
| exit2 | Waypoint((213.2, 263.4)), | 79.8 | 78 |
"""
self.map_init(plane=Jarilo_GreatMine, floor="F1", position=(149.7, 273.5))
self.register_domain_exit(Waypoint((202.4, 256.6)), end_rotation=71)
self.register_domain_exit(
Waypoint((202.4, 256.6)), end_rotation=71,
left_door=Waypoint((208.7, 243.8)), right_door=Waypoint((213.2, 263.4)))
node = Waypoint((174.1, 269.0))
item = Waypoint((180.4, 250.8))
enemy = Waypoint((202.4, 256.6))
@ -89,9 +97,13 @@ class Route(RouteBase):
| node2 | Waypoint((234.0, 586.6)), | 129.8 | 121 |
| enemy2 | Waypoint((244.8, 626.0)), | 182.7 | 177 |
| exit_ | Waypoint((243.4, 622.2)), | 2.6 | 174 |
| exit1 | Waypoint((253.2, 635.3)), | 191.8 | 181 |
| exit2 | Waypoint((237.6, 635.2)), | 188.8 | 184 |
"""
self.map_init(plane=Jarilo_GreatMine, floor="F1", position=(165.5, 537.8))
self.register_domain_exit(Waypoint((243.4, 622.2)), end_rotation=174)
self.register_domain_exit(
Waypoint((243.4, 622.2)), end_rotation=174,
left_door=Waypoint((253.2, 635.3)), right_door=Waypoint((237.6, 635.2)))
item1 = Waypoint((174.8, 564.8))
enemy1 = Waypoint((218.2, 582.4))
node2 = Waypoint((234.0, 586.6))
@ -160,19 +172,20 @@ class Route(RouteBase):
def Jarilo_GreatMine_F1_X485Y450(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((485.5, 450.4)), | 177.8 | 172 |
| item1 | Waypoint((478.8, 484.8)), | 199.8 | 193 |
| item2 | Waypoint((488.4, 522.0)), | 175.8 | 170 |
| enemy3 | Waypoint((465.3, 531.1)), | 92.8 | 232 |
| enemy5 | Waypoint((546.2, 514.0)), | 45.8 | 225 |
| enemy4 | Waypoint((512.2, 548.2)), | 59.1 | 59 |
| item3 | Waypoint((460.3, 570.3)), | 193.0 | 188 |
| node4 | Waypoint((480.3, 575.6)), | 105.5 | 101 |
| exit_ | Waypoint((549.0, 515.6)), | 112.7 | 15 |
| exit1 | Waypoint((542.6, 502.6)), | 21.0 | 15 |
| exit2 | Waypoint((556.2, 509.4)), | 30.1 | 27 |
| Waypoint | Position | Direction | Rotation |
| ---------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((485.5, 450.4)), | 177.8 | 172 |
| item1 | Waypoint((478.8, 484.8)), | 199.8 | 193 |
| item2 | Waypoint((488.4, 522.0)), | 175.8 | 170 |
| enemy3top | Waypoint((465.3, 531.1)), | 92.8 | 232 |
| enemy5 | Waypoint((546.2, 514.0)), | 45.8 | 225 |
| enemy4 | Waypoint((512.2, 548.2)), | 59.1 | 59 |
| enemy3down | Waypoint((453.3, 559.2)), | 129.8 | 218 |
| item3 | Waypoint((460.3, 570.3)), | 193.0 | 188 |
| node4 | Waypoint((480.3, 575.6)), | 105.5 | 101 |
| exit_ | Waypoint((549.0, 515.6)), | 112.7 | 15 |
| exit1 | Waypoint((542.6, 502.6)), | 21.0 | 15 |
| exit2 | Waypoint((556.2, 509.4)), | 30.1 | 27 |
"""
self.map_init(plane=Jarilo_GreatMine, floor="F1", position=(485.5, 450.4))
self.register_domain_exit(
@ -180,9 +193,10 @@ class Route(RouteBase):
left_door=Waypoint((542.6, 502.6)), right_door=Waypoint((556.2, 509.4)))
item1 = Waypoint((478.8, 484.8))
item2 = Waypoint((488.4, 522.0))
enemy3 = Waypoint((465.3, 531.1))
enemy3top = Waypoint((465.3, 531.1))
enemy5 = Waypoint((546.2, 514.0))
enemy4 = Waypoint((512.2, 548.2))
enemy3down = Waypoint((453.3, 559.2))
item3 = Waypoint((460.3, 570.3))
node4 = Waypoint((480.3, 575.6))
# ===== End of generated waypoints =====
@ -191,7 +205,8 @@ class Route(RouteBase):
self.rotation_set(232)
self.clear_enemy(
item2,
enemy3,
enemy3top,
enemy3down,
)
# self.clear_item(item3.straight_run())
self.clear_enemy(

View File

@ -50,9 +50,13 @@ class Route(RouteBase):
| item | Waypoint((195.9, 434.9)), | 237.2 | 234 |
| enemy | Waypoint((172.9, 425.9)), | 274.2 | 274 |
| exit_ | Waypoint((172.9, 425.9)), | 274.2 | 274 |
| exit1 | Waypoint((164.0, 435.4)), | 281.9 | 274 |
| exit2 | Waypoint((163.9, 417.7)), | 281.9 | 274 |
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(221.3, 426.1))
self.register_domain_exit(Waypoint((172.9, 425.9)), end_rotation=274)
self.register_domain_exit(
Waypoint((172.9, 425.9)), end_rotation=274,
left_door=Waypoint((164.0, 435.4)), right_door=Waypoint((163.9, 417.7)))
item = Waypoint((195.9, 434.9))
enemy = Waypoint((172.9, 425.9))
# ===== End of generated waypoints =====
@ -91,9 +95,13 @@ class Route(RouteBase):
| enemy1 | Waypoint((252.6, 426.6)), | 283.0 | 276 |
| enemy2 | Waypoint((166.1, 424.5)), | 182.6 | 267 |
| exit_ | Waypoint((165.1, 425.2)), | 6.4 | 274 |
| exit1 | Waypoint((157.7, 432.7)), | 275.8 | 274 |
| exit2 | Waypoint((157.6, 419.0)), | 282.0 | 274 |
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(317.4, 425.4))
self.register_domain_exit(Waypoint((165.1, 425.2)), end_rotation=274)
self.register_domain_exit(
Waypoint((165.1, 425.2)), end_rotation=274,
left_door=Waypoint((157.7, 432.7)), right_door=Waypoint((157.6, 419.0)))
item1 = Waypoint((282.4, 434.2))
enemy1 = Waypoint((252.6, 426.6))
enemy2 = Waypoint((166.1, 424.5))
@ -169,9 +177,13 @@ class Route(RouteBase):
| spawn | Waypoint((419.4, 179.8)), | 166.8 | 163 |
| enemy | Waypoint((437.0, 227.2)), | 166.6 | 156 |
| exit_ | Waypoint((437.0, 227.2)), | 166.6 | 156 |
| exit1 | Waypoint((449.1, 228.5)), | 171.7 | 163 |
| exit2 | Waypoint((431.7, 235.1)), | 171.7 | 163 |
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(419.4, 179.8))
self.register_domain_exit(Waypoint((437.0, 227.2)), end_rotation=156)
self.register_domain_exit(
Waypoint((437.0, 227.2)), end_rotation=156,
left_door=Waypoint((449.1, 228.5)), right_door=Waypoint((431.7, 235.1)))
enemy = Waypoint((437.0, 227.2))
# ===== End of generated waypoints =====

View File

@ -72,7 +72,7 @@ class Route(RouteBase):
enemy = Waypoint((216.2, 860.2))
# ===== End of generated waypoints =====
self.clear_item(item)
# self.clear_item(item)
self.clear_enemy(enemy)
def Luofu_ArtisanshipCommission_F1_X473Y920(self):
@ -144,3 +144,33 @@ class Route(RouteBase):
# Ignore item, bad way
self.clear_enemy(enemy)
def Luofu_ArtisanshipCommission_F1_X667Y189(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((667.0, 189.2)), | 282.2 | 274 |
| enemy1 | Waypoint((596.8, 189.1)), | 282.5 | 278 |
| node1 | Waypoint((587.3, 187.8)), | 282.6 | 276 |
| node2 | Waypoint((566.8, 190.1)), | 282.6 | 276 |
| enemy2 | Waypoint((532.2, 204.2)), | 94.2 | 274 |
| exit_ | Waypoint((532.2, 204.2)), | 94.2 | 274 |
| exit1 | Waypoint((521.0, 213.2)), | 275.9 | 274 |
| exit2 | Waypoint((521.5, 195.5)), | 275.8 | 274 |
"""
self.map_init(plane=Luofu_ArtisanshipCommission, floor="F1", position=(667.0, 189.2))
self.register_domain_exit(
Waypoint((532.2, 204.2)), end_rotation=274,
left_door=Waypoint((521.0, 213.2)), right_door=Waypoint((521.5, 195.5)))
enemy1 = Waypoint((596.8, 189.1))
node1 = Waypoint((587.3, 187.8))
node2 = Waypoint((566.8, 190.1))
enemy2 = Waypoint((532.2, 204.2))
# ===== End of generated waypoints =====
self.clear_enemy(enemy1)
self.clear_enemy(
node1.set_threshold(5),
node2.set_threshold(5),
enemy2
)

View File

@ -52,3 +52,56 @@ class Route(RouteBase):
if self.minimap.position_diff(enemy3.position) > 60:
logger.info('Cleared an enemy but have not reached enemy3')
self.clear_enemy(enemy3)
def Luofu_Cloudford_F1Rogue_X49Y405(self):
"""
| Waypoint | Position | Direction | Rotation |
| ------------ | ------------------------- | --------- | -------- |
| spawn | Waypoint((59.3, 405.6)), | 96.7 | 91 |
| item1 | Waypoint((96.9, 393.0)), | 87.7 | 84 |
| enemy1 | Waypoint((126.2, 402.5)), | 96.8 | 101 |
| node2 | Waypoint((142.9, 413.0)), | 96.8 | 101 |
| enemy2top | Waypoint((214.6, 432.8)), | 94.1 | 87 |
| enemy2bottom | Waypoint((211.4, 483.3)), | 191.8 | 174 |
| enemy3 | Waypoint((288.0, 452.2)), | 87.7 | 260 |
| exit_ | Waypoint((291.8, 454.4)), | 5.7 | 91 |
| exit1 | Waypoint((295.0, 451.4)), | 96.7 | 89 |
| exit2 | Waypoint((296.0, 460.2)), | 96.9 | 89 |
"""
self.map_init(plane=Luofu_Cloudford, floor="F1Rogue", position=(49.3, 405.6))
self.register_domain_exit(
Waypoint((291.8, 454.4)), end_rotation=91,
left_door=Waypoint((295.0, 451.4)), right_door=Waypoint((296.0, 460.2)))
item1 = Waypoint((96.9, 393.0))
enemy1 = Waypoint((126.2, 402.5))
node2 = Waypoint((142.9, 413.0))
enemy2top = Waypoint((214.6, 432.8))
enemy2bottom = Waypoint((211.4, 483.3))
enemy3 = Waypoint((288.0, 452.2))
# ===== End of generated waypoints =====
self.rotation_set(120)
self.minimap.lock_rotation(120)
# 1, ignore item1, which position may cause detection error
# self.clear_item(item1)
self.clear_enemy(enemy1)
# 2 moving enemy
# Ignore enemy2, it might be a pig, you can never catch it.
# self.clear_enemy(
# enemy2top,
# enemy2bottom.straight_run(),
# )
# 3
self.clear_enemy(
node2.set_threshold(3),
enemy3,
)
if self.minimap.position_diff(enemy3.position) > 60:
logger.info('Cleared an enemy but have not reached enemy3')
self.clear_enemy(enemy3)
"""
Notes
Luofu_Cloudford_F1Rogue_X49Y405 is the same as Luofu_Cloudford_F1Rogue_X59Y405
but for wrong spawn point detected
"""

View File

@ -75,11 +75,14 @@ class Route(RouteBase):
# Look right
self.rotation_set(210)
self.minimap.lock_rotation(210)
self.clear_enemy(
enemy2left,
enemy2right.straight_run(),
enemy2right,
)
# 3
self.rotation_set(270)
self.minimap.lock_rotation(270)
# self.clear_item(item3.straight_run())
self.clear_enemy(
enemy3.straight_run()

View File

@ -61,6 +61,39 @@ class Route(RouteBase):
enemy2.straight_run(),
)
def Luofu_DivinationCommission_F1_X737Y237(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((737.2, 237.6)), | 192.6 | 184 |
| enemy1 | Waypoint((740.8, 318.8)), | 192.6 | 184 |
| enemy2 | Waypoint((737.8, 360.9)), | 179.8 | 181 |
| exit_ | Waypoint((737.8, 360.9)), | 179.8 | 181 |
| exit1 | Waypoint((747.6, 367.2)), | 180.1 | 181 |
| exit2 | Waypoint((729.6, 367.5)), | 191.8 | 181 |
"""
self.map_init(plane=Luofu_DivinationCommission, floor="F1", position=(737.2, 237.6))
self.register_domain_exit(
Waypoint((737.8, 360.9)), end_rotation=181,
left_door=Waypoint((747.6, 367.2)), right_door=Waypoint((729.6, 367.5)))
enemy1 = Waypoint((740.8, 318.8))
enemy2 = Waypoint((737.8, 360.9))
# ===== End of generated waypoints =====
self.minimap.lock_rotation(180)
self.clear_enemy(enemy1)
# Possible enemy2
self.clear_enemy(
enemy1.set_threshold(5),
enemy2,
)
# Enemy3
if self.minimap.position_diff(enemy2.position) > 35:
self.clear_enemy(
enemy1.set_threshold(5),
enemy2,
)
def Luofu_DivinationCommission_F1_X737Y372(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -30,10 +30,14 @@ class Route(RouteBase):
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((239.4, 785.5)), | 282.2 | 274 |
| enemy | Waypoint((188.9, 784.2)), | 281.9 | 274 |
| exit_ | Waypoint((188.9, 784.2)), | 281.9 | 274 |
| exit_ | Waypoint((189.4, 784.2)), | 182.7 | 269 |
| exit1 | Waypoint((179.0, 794.9)), | 272.8 | 269 |
| exit2 | Waypoint((179.6, 775.4)), | 272.8 | 269 |
"""
self.map_init(plane=Luofu_DivinationCommission, floor="F2", position=(239.4, 785.5))
self.register_domain_exit(Waypoint((188.9, 784.2)), end_rotation=274)
self.register_domain_exit(
Waypoint((189.4, 784.2)), end_rotation=269,
left_door=Waypoint((179.0, 794.9)), right_door=Waypoint((179.6, 775.4)))
enemy = Waypoint((188.9, 784.2))
# ===== End of generated waypoints =====

View File

@ -126,9 +126,13 @@ class Route(RouteBase):
| item | Waypoint((610.5, 88.6)), | 337.2 | 334 |
| enemy | Waypoint((616.2, 64.4)), | 22.7 | 195 |
| exit_ | Waypoint((617.2, 64.6)), | 12.6 | 4 |
| exit1 | Waypoint((609.2, 57.2)), | 6.9 | 4 |
| exit2 | Waypoint((623.4, 56.6)), | 11.1 | 4 |
"""
self.map_init(plane=Luofu_ScalegorgeWaterscape, floor="F1", position=(617.3, 99.4))
self.register_domain_exit(Waypoint((617.2, 64.6)), end_rotation=4)
self.register_domain_exit(
Waypoint((617.2, 64.6)), end_rotation=4,
left_door=Waypoint((609.2, 57.2)), right_door=Waypoint((623.4, 56.6)))
item = Waypoint((610.5, 88.6))
enemy = Waypoint((616.2, 64.4))
# ===== End of generated waypoints =====

View File

@ -136,6 +136,7 @@ class Route(RouteBase):
enemy = Waypoint((519.0, 623.0))
# ===== End of generated waypoints =====
self.minimap.lock_rotation(151)
self.clear_item(item_X502Y605)
self.clear_enemy(enemy)

View File

@ -13,9 +13,13 @@ class Route(RouteBase):
| item | Waypoint((332.8, 172.0)), | 263.8 | 260 |
| event | Waypoint((318.9, 155.2)), | 290.1 | 285 |
| exit_ | Waypoint((314.3, 164.1)), | 276.0 | 271 |
| exit1 | Waypoint((305.2, 169.2)), | 275.9 | 274 |
| exit2 | Waypoint((304.6, 160.8)), | 277.8 | 276 |
"""
self.map_init(plane=Herta_StorageZone, floor="F2", position=(363.4, 166.9))
self.register_domain_exit(Waypoint((314.3, 164.1)), end_rotation=271)
self.register_domain_exit(
Waypoint((314.3, 164.1)), end_rotation=271,
left_door=Waypoint((305.2, 169.2)), right_door=Waypoint((304.6, 160.8)))
item = Waypoint((332.8, 172.0))
event = Waypoint((318.9, 155.2))

View File

@ -13,9 +13,13 @@ class Route(RouteBase):
| item | Waypoint((230.9, 106.7)), | 326.8 | 80 |
| event | Waypoint((256.6, 118.2)), | 96.8 | 96 |
| exit_ | Waypoint((262.5, 112.9)), | 96.7 | 91 |
| exit1 | Waypoint((269.6, 107.0)), | 101.1 | 91 |
| exit2 | Waypoint((269.5, 118.9)), | 101.1 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(209.6, 113.1))
self.register_domain_exit(Waypoint((262.5, 112.9)), end_rotation=91)
self.register_domain_exit(
Waypoint((262.5, 112.9)), end_rotation=91,
left_door=Waypoint((269.6, 107.0)), right_door=Waypoint((269.5, 118.9)))
item = Waypoint((230.9, 106.7))
event = Waypoint((256.6, 118.2))
@ -37,9 +41,13 @@ class Route(RouteBase):
| item | Waypoint((230.9, 106.7)), | 326.8 | 80 |
| event | Waypoint((256.6, 118.2)), | 96.8 | 96 |
| exit_ | Waypoint((262.5, 112.9)), | 96.7 | 91 |
| exit1 | Waypoint((269.6, 107.0)), | 101.1 | 91 |
| exit2 | Waypoint((269.5, 118.9)), | 101.1 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(214.6, 113.1))
self.register_domain_exit(Waypoint((262.5, 112.9)), end_rotation=91)
self.register_domain_exit(
Waypoint((262.5, 112.9)), end_rotation=91,
left_door=Waypoint((269.6, 107.0)), right_door=Waypoint((269.5, 118.9)))
item = Waypoint((230.9, 106.7))
event = Waypoint((256.6, 118.2))
@ -61,9 +69,13 @@ class Route(RouteBase):
| item | Waypoint((230.9, 106.7)), | 326.8 | 80 |
| event | Waypoint((256.6, 118.2)), | 96.8 | 96 |
| exit_ | Waypoint((262.5, 112.9)), | 96.7 | 91 |
| exit1 | Waypoint((269.6, 107.0)), | 101.1 | 91 |
| exit2 | Waypoint((269.5, 118.9)), | 101.1 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(219.6, 113.1))
self.register_domain_exit(Waypoint((262.5, 112.9)), end_rotation=91)
self.register_domain_exit(
Waypoint((262.5, 112.9)), end_rotation=91,
left_door=Waypoint((269.6, 107.0)), right_door=Waypoint((269.5, 118.9)))
item = Waypoint((230.9, 106.7))
event = Waypoint((256.6, 118.2))

View File

@ -30,9 +30,13 @@ class Route(RouteBase):
| spawn | Waypoint((553.3, 643.5)), | 274.2 | 274 |
| event | Waypoint((515.2, 633.2)), | 135.9 | 311 |
| exit_ | Waypoint((505.0, 642.3)), | 263.8 | 264 |
| exit1 | Waypoint((499.4, 646.5)), | 277.8 | 274 |
| exit2 | Waypoint((499.4, 636.2)), | 281.9 | 274 |
"""
self.map_init(plane=Jarilo_BackwaterPass, floor="F1", position=(553.3, 643.5))
self.register_domain_exit(Waypoint((505.0, 642.3)), end_rotation=264)
self.register_domain_exit(
Waypoint((505.0, 642.3)), end_rotation=264,
left_door=Waypoint((499.4, 646.5)), right_door=Waypoint((499.4, 636.2)))
event = Waypoint((515.2, 633.2))
self.clear_event(event)

View File

@ -12,9 +12,13 @@ class Route(RouteBase):
| spawn | Waypoint((236.6, 903.4)), | 274.2 | 274 |
| event | Waypoint((194.4, 898.0)), | 289.1 | 290 |
| exit_ | Waypoint((175.0, 902.8)), | 12.8 | 274 |
| exit1 | Waypoint((167.5, 909.4)), | 277.8 | 274 |
| exit2 | Waypoint((164.6, 893.2)), | 275.9 | 276 |
"""
self.map_init(plane=Jarilo_CorridorofFadingEchoes, floor="F1", position=(236.6, 903.4))
self.register_domain_exit(Waypoint((175.0, 902.8)), end_rotation=274)
self.register_domain_exit(
Waypoint((175.0, 902.8)), end_rotation=274,
left_door=Waypoint((167.5, 909.4)), right_door=Waypoint((164.6, 893.2)))
event = Waypoint((194.4, 898.0))
self.clear_event(event)
@ -45,9 +49,13 @@ class Route(RouteBase):
| spawn | Waypoint((309.3, 537.8)), | 190.1 | 184 |
| event | Waypoint((302.6, 580.8)), | 193.1 | 191 |
| exit_ | Waypoint((308.9, 591.0)), | 187.1 | 181 |
| exit1 | Waypoint((315.4, 597.4)), | 191.8 | 181 |
| exit2 | Waypoint((303.2, 597.2)), | 191.8 | 184 |
"""
self.map_init(plane=Jarilo_CorridorofFadingEchoes, floor="F1", position=(309.3, 537.8))
self.register_domain_exit(Waypoint((308.9, 591.0)), end_rotation=181)
self.register_domain_exit(
Waypoint((308.9, 591.0)), end_rotation=181,
left_door=Waypoint((315.4, 597.4)), right_door=Waypoint((303.2, 597.2)))
event = Waypoint((302.6, 580.8))
self.clear_event(event)

View File

@ -13,9 +13,13 @@ class Route(RouteBase):
| item | Waypoint((397.0, 514.4)), | 119.8 | 117 |
| event | Waypoint((422.2, 506.4)), | 92.7 | 84 |
| exit_ | Waypoint((423.8, 505.7)), | 96.8 | 91 |
| exit1 | Waypoint((433.7, 501.3)), | 96.8 | 91 |
| exit2 | Waypoint((434.7, 511.4)), | 96.8 | 91 |
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(377.4, 505.6))
self.register_domain_exit(Waypoint((423.8, 505.7)), end_rotation=91)
self.register_domain_exit(
Waypoint((423.8, 505.7)), end_rotation=91,
left_door=Waypoint((433.7, 501.3)), right_door=Waypoint((434.7, 511.4)))
item = Waypoint((397.0, 514.4))
event = Waypoint((422.2, 506.4))

View File

@ -33,9 +33,13 @@ class Route(RouteBase):
| spawn | Waypoint((487.4, 589.4)), | 282.2 | 274 |
| event | Waypoint((434.8, 590.6)), | 282.8 | 276 |
| exit_ | Waypoint((434.2, 590.0)), | 274.2 | 271 |
| exit1 | Waypoint((425.4, 598.6)), | 272.7 | 267 |
| exit2 | Waypoint((427.2, 581.1)), | 272.7 | 269 |
"""
self.map_init(plane=Luofu_AlchemyCommission, floor="F2", position=(487.4, 589.4))
self.register_domain_exit(Waypoint((434.2, 590.0)), end_rotation=271)
self.register_domain_exit(
Waypoint((434.2, 590.0)), end_rotation=271,
left_door=Waypoint((425.4, 598.6)), right_door=Waypoint((427.2, 581.1)))
event = Waypoint((434.8, 590.6))
self.clear_event(event)

View File

@ -46,9 +46,13 @@ class Route(RouteBase):
| spawn | Waypoint((425.6, 791.4)), | 94.2 | 91 |
| event | Waypoint((478.9, 791.0)), | 96.8 | 94 |
| exit_ | Waypoint((477.2, 789.2)), | 4.3 | 94 |
| exit1 | Waypoint((487.2, 781.5)), | 96.8 | 89 |
| exit2 | Waypoint((487.2, 799.2)), | 96.8 | 89 |
"""
self.map_init(plane=Luofu_DivinationCommission, floor="F2", position=(425.6, 791.4))
self.register_domain_exit(Waypoint((477.2, 789.2)), end_rotation=94)
self.register_domain_exit(
Waypoint((477.2, 789.2)), end_rotation=94,
left_door=Waypoint((487.2, 781.5)), right_door=Waypoint((487.2, 799.2)))
event = Waypoint((478.9, 791.0))
self.clear_event(event)

View File

@ -9,15 +9,19 @@ class Route(RouteBase):
@locked_position
def Luofu_StargazerNavalia_F1_X250Y498(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((249.4, 498.5)), | 190.1 | 184 |
| event | Waypoint((236.8, 528.9)), | 188.1 | 181 |
| exit_ | Waypoint((245.3, 550.1)), | 282.9 | 181 |
| Waypoint | Position | Direction | Rotation |
| -------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((249.4, 498.5)), | 190.1 | 184 |
| event | Waypoint((236.9, 535.2)), | 206.2 | 200 |
| exit_ | Waypoint((245.3, 550.1)), | 282.9 | 181 |
| exit1_X255Y562 | Waypoint((255.5, 562.5)), | 180.1 | 184 |
| exit2_X237Y559 | Waypoint((237.4, 559.3)), | 191.8 | 184 |
"""
self.map_init(plane=Luofu_StargazerNavalia, floor="F1", position=(249.4, 498.5))
self.register_domain_exit(Waypoint((245.3, 550.1)), end_rotation=181)
event = Waypoint((236.8, 528.9))
self.register_domain_exit(
Waypoint((245.3, 550.1)), end_rotation=181,
left_door=Waypoint((255.5, 562.5)), right_door=Waypoint((237.4, 559.3)))
event = Waypoint((236.9, 535.2))
self.clear_event(event)
# ===== End of generated waypoints =====

View File

@ -747,6 +747,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_ArtisanshipCommission_F1_X667Y189",
"route": "route.rogue.Combat.Luofu_ArtisanshipCommission_F1:Luofu_ArtisanshipCommission_F1_X667Y189",
"plane": "Luofu_ArtisanshipCommission",
"floor": "F1",
"position": [
667.0,
189.2
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_Cloudford_F1_X241Y947",
"route": "route.rogue.Combat.Luofu_Cloudford_F1:Luofu_Cloudford_F1_X241Y947",
@ -835,6 +846,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_Cloudford_F1Rogue_X49Y405",
"route": "route.rogue.Combat.Luofu_Cloudford_F1Rogue:Luofu_Cloudford_F1Rogue_X49Y405",
"plane": "Luofu_Cloudford",
"floor": "F1Rogue",
"position": [
49.3,
405.6
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_Cloudford_F2_X425Y111",
"route": "route.rogue.Combat.Luofu_Cloudford_F2:Luofu_Cloudford_F2_X425Y111",
@ -879,6 +901,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_DivinationCommission_F1_X737Y237",
"route": "route.rogue.Combat.Luofu_DivinationCommission_F1:Luofu_DivinationCommission_F1_X737Y237",
"plane": "Luofu_DivinationCommission",
"floor": "F1",
"position": [
737.2,
237.6
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_DivinationCommission_F1_X737Y372",
"route": "route.rogue.Combat.Luofu_DivinationCommission_F1:Luofu_DivinationCommission_F1_X737Y372",

View File

@ -38,6 +38,8 @@ class OcrPlaneName(OcrWhiteLetterOnComplexBackground):
# 区域-战
result = re.sub(r'区域.*战$', '区域战斗', result)
# 区域-事
result = re.sub(r'区域.*事$', '区域事件', result)
# 区域-事伴, 区域-事祥
result = re.sub(r'事[伴祥]', '事件', result)
# 医域-战斗

View File

@ -163,6 +163,14 @@ class RouteLoader(RogueUI, MinimapWrapper, RouteLoader_, CharacterSwitch):
# ('Occurrence_Herta_StorageZone_F2_X363Y166', 0.094, (363.0, 166.8))]
if route.name == 'Occurrence_Herta_StorageZone_F2_X363Y166' and similarity > 0.05:
return True
# Before Combat_Luofu_Cloudford_F1_X281Y873
if route.name == [
'Combat_Herta_StorageZone_F1_X273Y92',
'Occurrence_Herta_StorageZone_F1_X273Y93',
'Occurrence_Jarilo_RivetTown_F1_X289Y97',
'Occurrence_Luofu_DivinationCommission_F2_X425Y791',
] and similarity > 0.1:
return True
# INFO 21:27:00.816 │ Best 3 nearby predictions: [
# ('Combat_Herta_SupplyZone_F2_X45Y369', 0.184, (41.0, 369.1)),
# ('Combat_Luofu_Cloudford_F1_X281Y873', 0.149, (281.8, 869.6)),
@ -264,9 +272,10 @@ class RouteLoader(RogueUI, MinimapWrapper, RouteLoader_, CharacterSwitch):
if __name__ == '__main__':
self = RouteLoader('src', task='Rogue')
self = RouteLoader('1101九', task='Rogue')
# self.image_file = r''
self.device.screenshot()
self.position_find()
self.position_find_bruteforce(self.device.image)
# self.device.screenshot()