Advertisement
Guest User

lich steam

a guest
Jan 19th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. ; Edit log_file to your Client.txt path.
  2. ; Your game needs to be in windowed fullscreen mode.
  3. log_file = C:\Program Files (x86)\Steam\steamapps\common\Path of Exile\logs\Client.txt
  4. overlay_x := 910
  5. overlay_y := 550
  6. sound_lich = lich.wav
  7. sound_no_lich = lich_none.wav
  8.  
  9. ; Shouldn't need to edit below this line.
  10. filehandle := FileOpen(log_file, "r")
  11. if !IsObject(filehandle) {
  12. MsgBox Error while opening Path of Exile's Client.txt.
  13. }
  14. filehandle.seek(0, 2)
  15.  
  16. overlay_color = 000000
  17. Gui, Color, %overlay_color%
  18. Gui, 1:Margin , 0, 0
  19. Gui, Font, s20 bold, fontin
  20. Gui, Add, Text, Center vLich w150 cC49964 BackgroundTrans,
  21. Gui +LastFound +AlwaysOnTop +ToolWindow -Border -Caption +E0x20 ; E0x20 is clickthrough
  22. WinSet, TransColor, %overlay_color% 255
  23. SetTimer, check_poe_active, 100
  24. SetTimer, read_poe_log, 500
  25.  
  26. GuiControl,, Lich,
  27. Return
  28.  
  29. read_poe_log:
  30. loop {
  31. line := filehandle.readline()
  32. StringReplace, line, line, `r,, All
  33. StringReplace, line, line, `n,, All
  34.  
  35. if line {
  36. line_parts := StrSplit(line, A_Space)
  37.  
  38. if (line_parts[8] = "Entering" && line_parts[9] = "area")
  39. {
  40. LinePart := line_parts[10]
  41. If InStr(LinePart, "AbyssLeagueBoss2")
  42. {
  43. SoundPlay, %sound_lich%
  44. Loop, 10
  45. {
  46. GuiControl,, Lich, Amanamu
  47. Sleep, 500
  48. GuiControl,, Lich,
  49. Sleep, 500
  50. }
  51. ;GuiControl,, Lich, Amanamu
  52. }
  53. Else If InStr(LinePart, "AbyssLeagueBoss") ; wildcard, as Ulaman can be either AbyssLeagueBoss or AbyssLeagueBoss1,
  54. ; either way it's fine, as this will catch both
  55. {
  56. SoundPlay, %sound_lich%
  57. Loop, 10
  58. {
  59. GuiControl,, Lich, Ulaman ; This is a guess
  60. Sleep, 500
  61. GuiControl,, Lich,
  62. Sleep, 500
  63. }
  64. ;GuiControl,, Lich, Ulaman
  65. }
  66. Else If InStr(LinePart, "AbyssLeague")
  67. {
  68. SoundPlay, %sound_no_lich%
  69. Loop, 5
  70. {
  71. GuiControl,, Lich, No Lich
  72. Sleep, 500
  73. GuiControl,, Lich,
  74. Sleep, 500
  75. }
  76. }
  77. else
  78. {
  79. GuiControl,, Lich,
  80. }
  81. }
  82. } else break
  83. }
  84. return
  85.  
  86. check_poe_active:
  87. IfWinActive, ahk_exe PathOfExile_x64Steam.exe
  88. {
  89. Gui +LastFound +AlwaysOnTop +ToolWindow -Border -Caption +E0x20 ; E0x20 is clickthrough
  90. Gui, Show, x%overlay_x% y%overlay_y% h%A_ScreenHeight% w%A_ScreenWidth% NoActivate, PoE Ingame Overlay
  91. } else {
  92. Gui, Hide
  93. }
  94. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement