Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ItemDrop v0.1
#1
Hey everyone,

Based upon a request by bintwang (see this post), I made this little utility which allows you to drop items from your inventory with your right mouse button and a second hotkey, well, this is pretty hard to describe. You hold down the second key (Left Ctrl for example/by default) and click your right mouse button after you picked the item up to drop it.

Download Link:
RapidShare Webhosting + Webspace

Read Me!:
Quote:ItemDrop v0.1 by RaZzor (Contact @ Blizzardsector.net)
Built on: 2008-09-08

------------------------------------------------------
Instructions:
------------------------------------------------------

1. Open the Settings.ini file.
2. Edit D2WindowName to match your Diablo II window name (e.g. "D2WindowName = Diablo II").
3. Edit the DropKey to your desired hotkey for quick-dropping an item (e.g. "DropKey = A2", Hex Code required,
see Hex Codes.txt for this, Left Ctrl is best for this in my opinion).
4. Edit ExitKey to your desired hotkey for terminating the script. (e.g. "ExitKey = {END}").

(Everything without the quotes of course.)

------------------------------------------------------
Hotkey Syntax:
------------------------------------------------------

All hotkeys (there are some exceptions, though) in AutoIt are simply the names of them in { } brackets.

------------------------------------------------------
Examples:
------------------------------------------------------

F9 = {F9}
O = {O}
ALT = {ALT}

etc.

------------------------------------------------------
Exceptions:
------------------------------------------------------

PAGEUP = {PGUP}
PAGEDOWN = {PGDN}
NUMPAD 0-9 = {NUMPAD0}-{NUMPAD9}
NUMPADMULTIPLY = {NUMPADMULT}
NUMPADADD = {NUMPADADD}
NUMPADSUBTRACT = {NUMPADSUB}
NUMPADDIVIDE = {NUMPADDIV}
NUMPADPERIOD = {NUMPADDOT}
NUMPADENTER = {NUMPADENTER}

Source Code
Code:
#cs ----------------------------------------------------------------------------
ItemDrop v0.1 by RaZzor (Contact @ Blizzardsector.net)
Built on: 2008-09-08
#ce ----------------------------------------------------------------------------

#include <Misc.au3>

$Ini = @ScriptDir & '\Settings.ini'
$WindowName = IniRead($Ini, "Settings", "D2WindowName", "Diablo II")
$DropKey = IniRead($Ini, "Hotkeys", "DropKey", "A2")
$ExitKey = IniRead($Ini, "Hotkeys", "ExitKey", "{END}")

HotKeySet($ExitKey, "Terminate")

While 1
    If WinActive($WindowName) Then
        $Coords = MouseGetPos()
            If $Coords[0] > 418 Then
                If  _IsPressed($DropKey) And _IsPressed("02") Then
                    MouseMove(300, 300, 0)
                    Sleep(10)
                    MouseClick("Left")
                EndIf ;Drop
            EndIf ;Coords
    EndIf ;WinActive
WEnd
    
Func Terminate()
    If WinActive($WindowName) Then
        Exit
    EndIf
EndFunc
Reply
#2
So basically this is for safety purposes right? Is there a way to disable and enable this in game?
Reply
#3
PoTatoes Wrote:So basically this is for safety purposes right? Is there a way to disable and enable this in game?

Actually is just for lazy people. ^^

Well, I could do some kind of "enabling" thing, but the script only works when you press Ctrl + right click and have the inventory section hovered (well, at least the coordinates) anyways so unless you're completely retarded, you should be fine..
Reply


Forum Jump:


Users browsing this thread: