Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FileConstants.au3>
- #include <WinAPIFiles.au3>
- #include <GDIPlus.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #include <WinAPISysWin.au3>
- Opt("GUIOnEventMode", 1) ; Change to OnEvent mode
- ; #FUNCTION# ====================================================================================================================
- ; Name ..........: OverlayWindow
- ; Description ...: Throws up a child window with transparent background over current window
- ;
- ; Parameters :
- ; $hwndParent parent hwnd
- ; $rectToHighlight rect to draw (or if null, skip)
- ; $rectForText rect for textToWrite
- ; $textToWrite the text to write
- ; ===============================================================================================================================
- Func OverlayWindow($hwndParent, $rectToHighlight, $rectForText, $textToWrite)
- $style = $WS_POPUP
- $exstyle = BitOR($WS_EX_TOPMOST, $WS_EX_TRANSPARENT, $WS_EX_LAYERED)
- $hGUI = GUICreate("transparent overlay", 420, 420, 0, 0, $style, $exstyle)
- GUISetBkColor(0x112233)
- _WinAPI_SetLayeredWindowAttributes($hGUI, 0x112233, 0, $LWA_COLORKEY)
- ConsoleWrite("**** $hGUI: " & $hGUI & @CRLF)
- GUISetOnEvent($GUI_EVENT_CLOSE, "OverlayWindow_Exit")
- GUISetState(@SW_SHOW, $hGUI)
- $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI)
- ConsoleWrite("**** $hGraphics : " & $hGraphics & @CRLF)
- _GDIPlus_GraphicsSetSmoothingMode($hGraphics, $GDIP_SMOOTHINGMODE_HIGHQUALITY)
- $hPen = _GDIPlus_PenCreate(0xFFFFFFFF, 4) ; Red
- If ($rectToHighlight <> Null) Then
- _GDIPlus_GraphicsDrawRect($hGraphics, $rectToHighlight[0], $rectToHighlight[1], $rectToHighlight[2], $rectToHighlight[3], $hPen)
- EndIf
- _GDIPlus_PenDispose($hPen)
- $hBrush = _GDIPlus_BrushCreateSolid(0xFFFFFFFF) ; RED
- $hFormat = _GDIPlus_StringFormatCreate()
- $hFamily = _GDIPlus_FontFamilyCreate("Arial")
- $hFont = _GDIPlus_FontCreate($hFamily, 9)
- $tLayout = _GDIPlus_RectFCreate($rectForText[0], $rectForText[1], $rectForText[2], $rectForText[3])
- $aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $textToWrite, $hFont, $tLayout, $hFormat)
- _GDIPlus_GraphicsDrawStringEx($hGraphics, $textToWrite, $hFont, $aInfo[0], $hFormat, $hBrush)
- _GDIPlus_BrushDispose($hBrush)
- _GDIPlus_StringFormatDispose($hFormat)
- _GDIPlus_FontFamilyDispose($hFamily)
- _GDIPlus_FontDispose($hFont)
- _GDIPlus_GraphicsDispose($hGraphics)
- Return $hGUI
- EndFunc
- Func OverlayWindow_Exit()
- ConsoleWrite("* * * Exit event called" & @CRLF)
- EndFunc
- Func Handle_Esc()
- $Done = True
- EndFunc
- ;-----------------------------------------------------------------
- ;Main()
- _GDIPlus_Startup()
- Global $Done = False
- Local $rect = [10, 10, 400, 400]
- Local $rectForText = [15, 15, 500, 500]
- global $current = 1
- global $hGUI
- global $act[11]
- $act[1] = "Act 1 Exp Farming Zone: The Ledge"&@CRLF&"• Kill Hillock"&@CRLF&"• Get Frostbolt"&@CRLF&"• Get the Coast Waypoint, kill Hailrake on Tidal Island"&@CRLF&"• get Quicksilver Flask in town and Onslaught Support"&@CRLF&"• Enter Submerged Passage, look for Flooded Depths and kill the Dweller of the Deep"&@CRLF&"• Get Passive Skillpoint in town"&@CRLF&"• Enter Prison, get Added Lightning Damage"&@CRLF&"• Complete Trial of Ascendancy in Lower Prison"&@CRLF&"• Kill Brutus, progress to Ship Graveyard and get the Waypoint"&@CRLF&"• Look for Ship Graveyard Cave, get Allflame then get Cavern of Wrath Waypoint"&@CRLF&"• Travel to Ship Graveyard Waypoint and kill Fairgraves"&@CRLF&"• Go to town to get Passive Skillpoint, Flame Dash, Spell Totem Support & Arc"&@CRLF&"• Topaz = Iron Ring any dexterity (green) gem"&@CRLF&"• Craft &1 Lightning Wand/Sceptre (Topaz ring, blue wand/sceptre, orb of alteration) "&@CRLF&"• Put Arc & Onslaught Support & Added Lightning Damage in there"
- $act[2] = "Act 2 Exp Farming Zone: The Northern Forest"&@CRLF&"• Once in town, enter the Old Fields first"&@CRLF&"• Look for the Den, kill Great White Beast and get second Quicksilver in town"&@CRLF&"• Continue to Crossroads and get Waypoint"&@CRLF&"• Enter Chamber of Sins, complete Trial of Ascendancy on Level 2 and kill Fidelitas"&@CRLF&"• Go back to Crossroads, enter Broken Bridge and kill Kraityn"&@CRLF&"• Back to Crossroads once more, enter Fellshrine Ruins and Crypt"&@CRLF&"• Complete Trial of Ascendancy in Crypt"&@CRLF&"• Back to town, enter Riverways and get the Waypoint"&@CRLF&"• enter Wetlands, kill Oak and get Waypoint"&@CRLF&"• Go to Western Forest, Help Alira & Captain Arteri"&@CRLF&"• Look for Weaver's Chambers and kill Weaver"&@CRLF&"• Back in town, get Herald of Thunder and Faster Casting Support for flame dash "&@CRLF&"• Enter Lioneye's Watch and get Passive Skillpoint"&@CRLF&"• Get two Passive Skillpoints from Eramir in town"&@CRLF&"• Make your way to the Ancient Pyramid, kill Vaal Oversoul"
- $act[3] = "Act 3 Exp Farming Zone: The Docks"&@CRLF&"• Kill the Blackguards in City of Sarn and enter town"&@CRLF&"• Go to Slums, enter Crematorium, finish Trial of Ascendancy and kill Piety"&@CRLF&"• Get Sewer Key in town"&@CRLF&"• Go back to Slums, enter Sewers, get Waypoint, find three busts and get skillpoint in town"&@CRLF&"• Get Marketplace Waypoint and finish Trial of Ascendancy in Catacombs"&@CRLF&"• Enter Battlefront, get Waypoint and kill Captain Aurelianus"&@CRLF&"• Go to Docks and get Thaumetic Sulphite"&@CRLF&"• Back to Battlefront, enter Solaris Temple and talk to Lady Dialla"&@CRLF&"• Destroy the Undying Blockade in Sewers"&@CRLF&"• Enter Ebony Barracks, get Waypoint and kill General Gravicius"&@CRLF&"• Enter Lunaris Temple, kill Piety and get Skillpoint in town"&@CRLF&"• Get Imperial Gardens Waypoint and finish Trial of Ascendancy"&@CRLF&"• Go to Library and finish Siosa's quest"&@CRLF&"• You can now buy all unlocked gems at Siosa (currency needs to be in bag!)"&@CRLF&"• Get Lightning Penetration from Siosa "&@CRLF&"• Enter the Sceptre of God and kill Dominus"
- $act[4] = "Act 4 Exp Farming Zone: The Dried Lake"&@CRLF&"• Enter the Dried Lake, kill Voll and enter the Mines"&@CRLF&"• Free Deshret's Spirit in Mines Level 2, progress to Crystal Veins and get Waypoint"&@CRLF&"• Get Passive Skillpoint and Summon Stone Golem in town and optionally farm Dried Lake"&@CRLF&"• Complete the first Labyrinth, you can enter it through the Sarn Encampment"&@CRLF&"• Read up on the Lord's Labyrinth and Izaro to get an idea what's going on"&@CRLF&"• After finishing the Labyrinth, ascend to Elementalist and get Paragon of Calamity"&@CRLF&"• Go back to Crystal Veins, enter Kaom's Dream and kill Kaom"&@CRLF&"• Now enter Daresso's Dream and kill Daresso"&@CRLF&"• buy Cast when Damage taken in town"&@CRLF&"• Put your Arc setup into a 4L "&@CRLF&"• Replace your now-outdated weapon with a good sceptre or wand, the Spell Damage recipe can help"&@CRLF&"• Kill Piety in Belly of the Beast, and finally Malachai in the Harvest"
- $act[5] = "Act 5 Exp Farming Zone: The Chamber of Innocence"&@CRLF&"• Kill Overseer Krow and enter town"&@CRLF&"• Find the Miasmeter in Control Blocks and kill Justicar Casticus"&@CRLF&"• Get Stibnite Flask and Skillpoint in town"&@CRLF&"• Replace one Quicksilver Flask with Stibnite Flask and try to roll of Staunching on it"&@CRLF&"• Make your way to Templar Courts, kill Avarius and get a unique jewel in town"&@CRLF&"• Get Ruined Square Waypoint and optionally kill Utula to get Assassin's Haste in town"&@CRLF&"• Finish the quest in Reliquary and get Skillpoint in town"&@CRLF&"• Look for the Sign of Purity in Ossuary"&@CRLF&"• Kill Kitava on Cathedral Rooftop"&@CRLF&"• You will suffer a permanent -30% resistance penalty after this fight"&@CRLF&"• !!!Should have all gems for setup now!!!"
- $act[6] = "Act 6 Exp Farming Zone: The Southern Forest"&@CRLF&"• Clear the Twilight Strand to unlock Lilly as Skillgem Vendor"&@CRLF&"• Get Increased Duration "&@CRLF&"• Look out for or craft a second weapon to use"&@CRLF&"• Get to Mud Flats and kill the Dishonored Queen"&@CRLF&"• Enter Karui Fortress, kill Tukohama and get Skillpoint in town"&@CRLF&"• Finish Trial of Ascendancy in Prison and kill Shavronne"&@CRLF&"• Enter Prisoner's Gate, kill Abberath and get Skillpoint in town"&@CRLF&"• Get Riverways Waypoint"&@CRLF&"• Enter Wetlands, kill Puppet Mistress and get Skillpoint in town"&@CRLF&"• Light the Beacon and kill the Brine King"
- $act[7] = "Act 7 Exp Farming Zone: The Northern Forest"&@CRLF&"• Find the Silver Locket in Broken Bridge and get Basalt Flask in town"&@CRLF&"• Replace one Life Flask with Basalt Flask"&@CRLF&"• Enter Crossroads, get Waypoint then enter Crypt through Fellshrine Ruins"&@CRLF&"• Finish Trial of Ascendancy and find Maligaro's Map"&@CRLF&"• Go back to Crossroads and enter Chamber of Sins"&@CRLF&"• Kill Maligaro in Maligaro's Sanctum"&@CRLF&"• Finish Trial of Ascendancy in Chamber of Sins Level 2 and enter the Den"&@CRLF&"• Make your way to Ashen Fields and kill Greust, then get Skillpoint in town"&@CRLF&"• Get Northern Forest Waypoint and enter Dread Thicket"&@CRLF&"• Collect all Fireflies and kill Gruthkul, then get Skillpoint in town"&@CRLF&"• Find Kishara's Star in Causeway and get Skillpoint in town"&@CRLF&"• Get the Vaal City Waypoint, enter Temple of Decay and go back to town"&@CRLF&"• Finish the second Labyrinth and get Shaper of Desolation"&@CRLF&"• Get back to the Temple of Decay and kill Arakaali"
- $act[8] = "Act 8 Exp Farming Zone: The Harbour Bridge"&@CRLF&"• Enter the Toxic Conduits and kill Doedre"&@CRLF&"• Go for Quay first, find Ankh of Eternity, kill Tolman and get Skillpoint in town"&@CRLF&"• Kill the Gemling Legionnaires in Grain Gate and get Skillpoint in town"&@CRLF&"• Enter Solaris Temple, get Sun Orb then enter Solaris Concourse and get Waypoint"&@CRLF&"• Go back to Doedre's Cesspool and go for the Grand Promenade now"&@CRLF&"• Get Bath House Waypoint and finish Trial of Ascendancy"&@CRLF&"• Enter High Gardens, kill Yugul and get Skillpoint in town"&@CRLF&"• Enter Lunaris Temple through Lunaris Concourse and get Moon Orb"&@CRLF&"• Go to Harbour Bridge and kill Solaris & Lunaris"
- $act[9] = "Act 9 Exp Farming Zone: The Blood Aqueduct"&@CRLF&"• Find the Storm Blade in Vastiri Desert and speak to Petarus & Vanja in town"&@CRLF&"• Look for a blocked entrance in Vastiri Desert"&@CRLF&"• Go to town, talk to Sin and then to Petarus & Vanja"&@CRLF&"• Kill Shakari and get Skillpoint in town"&@CRLF&"• Get Foothills Waypoint, enter Boiling Lake and get Basilisk Acid"&@CRLF&"• Enter the Tunnel and finish Trial of Ascendancy"&@CRLF&"• Get Quarry Waypoint, enter Refinery and get Trarthan Powder"&@CRLF&"• Go back to Quarry and kill Garukhan and get Sekhema Feather"&@CRLF&"• Go to town and give the feather to either Tasuni or Irasha, get Skillpoint"&@CRLF&"• Enter Belly of the Beast and kill the Depraved Trinity"
- $act[10] = "Act 10 Exp Farming Zone: The Desecrated Chambers"&@CRLF&"• Go left on Cathedral Rooftop and kill Plaguewing"&@CRLF&"• Get Sulphur Flask in town, replace Quicksilver Flask with it"&@CRLF&"• Go back to Cathedral Rooftop"&@CRLF&"• Now go right, enter the Ravaged Square and go south"&@CRLF&"• Enter the Control Blocks, kill Vilenta and get Skillpoint in town"&@CRLF&"• Optionally find the Teardrop in Reliquary"&@CRLF&"• Go back to Ravaged Square and get its Waypoint in the upper part"&@CRLF&"• Enter Ossuary, complete Trial of Ascendancy and get Elixir of Allure"&@CRLF&"• Get to Desecrated Chamber through Torched Courts and kill Avarius"&@CRLF&"• Finish the third Labyrinth and get Beacon of Ruin, if this is too hard then keep it for later"&@CRLF&"• Enter the Canals and make your way to the final bossfight"&@CRLF&"• You will suffer another permanent -30% resistance penalty after this fight"&@CRLF&"End"&@CRLF&"• Talk to Lani for two Skillpoints"&@CRLF&"• Enter Templar Laboratory and get a map from Zana, then buy all maps she's selling"&@CRLF&"• That's it, you've reached the endgame! Gear up and switch to the endgame gem setup"&@CRLF&"• Optionally farm yourself a Tabula Rasa through Humility cards in Blood Aqueduct"
- makeoverlay ()
- Func makeoverlay ()
- GUIDelete($hGUI)
- $hGUI = OverlayWindow(Null, Null, $rectForText, $act[$current] )
- EndFunc
- Func add ()
- $current = $current +1
- makeoverlay ()
- EndFunc
- Func sub ()
- $current = $current -1
- makeoverlay ()
- EndFunc
- HotKeySet ( "{right}", add)
- HotKeySet ( "{left}", sub)
- While Not $Done
- Sleep(100)
- WEnd
- GUIDelete($hGUI)
- _GDIPlus_Shutdown ()
- Exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement