Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- D2Stats.au3.0 2017-02-22 14:10:02.000000000 +0100
- +++ D2Stats.au3 2017-02-23 10:30:42.000000000 +0100
- @@ -113,7 +113,7 @@
- endfunc
- func HotKeyCheck()
- - if (not IsIngame()) then return _Debug("Enter a game first.")
- + if (not IsIngame()) then return false
- return True
- endfunc
- @@ -156,20 +156,35 @@
- endfunc
- func HotKey_ShowIlvl()
- - if (not HotKeyCheck()) then return
- + if (not HotKeyCheck()) then
- + HotKeySet("{DEL}")
- + Send("{DEL}")
- + HotKeySet("{DEL}","HotKey_ShowIlvl")
- + return
- + endif
- local $ilvl = GetIlvl()
- if ($ilvl) then PrintString(StringFormat("ilvl: %02s", $ilvl))
- endfunc
- func HotKey_ToggleShowItems()
- - if (not HotKeyCheck()) then return
- + if (not HotKeyCheck()) then
- + HotKeySet("{HOME}")
- + Send("{HOME}")
- + HotKeySet("{HOME}", "HotKey_ToggleShowItems")
- + return
- + endif
- ToggleShowItems()
- endfunc
- func HotKey_DropFilter()
- + if (not HotKeyCheck()) then
- + HotKeySet("+{HOME}")
- + Send("+{HOME}")
- + HotKeySet("+{HOME}","HotKey_DropFilter")
- + return
- + endif
- if (not FileExists("DropFilter.dll")) then return PrintString("Couldn't find DropFilter.dll. Make sure it's in the same folder as " & @ScriptName & ".", 1)
- - if (not HotKeyCheck()) then return
- local $handle = GetDropFilterHandle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement