Guest User

Untitled

a guest
Mar 5th, 2020
3,377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.41 KB | None | 0 0
  1. import time
  2. from win10toast import ToastNotifier
  3.  
  4. toaster = ToastNotifier()
  5.  
  6. maps = ["Academy",
  7.         "Ancient City",
  8.         "Arena",
  9.         "Armoury",
  10.         "Bone Crypt",
  11.         "Cage",
  12.         "Cells",
  13.         "Colosseum",
  14.         "Conservatory",
  15.         "Coral Ruins",
  16.         "Core",
  17.         "Courtyard",
  18.         "Cursed Crypt",
  19.         "Desert",
  20.         "Dungeon",
  21.         "Factory",
  22.         "Flooded Mine",
  23.         "Gardens",
  24.         "Ivory Temple",
  25.         "Lava Chamber",
  26.         "Maze",
  27.         "Mineral Pools",
  28.         "Museum",
  29.         "Necropolis",
  30.         "Orchard",
  31.         "Overgrown Ruin",
  32.         "Overgrown Shrine",
  33.         "Palace",
  34.         "Pen",
  35.         "Pier",
  36.         "Pit",
  37.         "Plaza",
  38.         "Precinct",
  39.         "Residence",
  40.         "Scriptorium",
  41.         "Shrine",
  42.         "Sunken City",
  43.         "Vaal Pyramid",
  44.         "Villa",
  45.         "Wasteland"]
  46.  
  47. with open('C:\Program Files (x86)\Grinding Gear Games\Path of Exile\logs\Client.txt', 'r') as file:
  48.     file.seek(0, 2)
  49.     while True:
  50.         where = file.tell()
  51.         line = file.readline()
  52.         if not line:
  53.             time.sleep(1)
  54.             file.seek(where)
  55.         else:
  56.             print(line)
  57.             for map in maps:
  58.                 if map in line:
  59.                     if "You have entered" not in line:
  60.                         continue
  61.                     toaster.show_toast("DO NOT RUN MAP", map)
  62.                     toaster.show_toast("DO NOT RUN MAP", map)
  63.                     toaster.show_toast("DO NOT RUN MAP", map)
Advertisement
Add Comment
Please, Sign In to add comment