d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Help My Coding > Script
Closed New Topic New Poll
Member
Posts: 11,555
Joined: Mar 27 2007
Gold: 4,386.00
May 23 2014 01:58am
;1370,640 - main weapon
;1410,640 - off hand
;1370,680 - open inventory slot
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
`::

GetKeyState,rmbState, RButton
GetKeyState,lmbState, LButton
If rmbState = D
{
Click Up Right
If lmbState = D
Click Up Left

;in case you want to return mouse to previous x,y coordinate
;MouseGetPos, currentX, currentY
;prevent mouse from moving during weapon swap

blockinput, mousemove
Sleep 25
Send q
; Pick up main hand (2 hander)
MouseClick, Left,1370,640,,3,D
Sleep 30

MouseClick, Left,1370,642,,2,U
Sleep 30

;Switch with shield in open weapon slot
MouseClick, Left,1370,680,,2,D
Sleep 30

MouseClick, Left,1370,682,,2,U
Sleep 30

;place shield in offhand
MouseClick, Left,1410,640,,2,D
Sleep 30

MouseClick, Left,1410,642,,2,U
Sleep 30

;bash
send 2
sleep 30

;switch back
;pick up shield
MouseClick, Left,1410,642,,2,D
Sleep 30

MouseClick, Left,1410,640,,2,U
Sleep 30

;Switch with 2h in open weapon slot
MouseClick, Left,1370,680,,2,D
Sleep 30

MouseClick, Left,1370,682,,2,U
Sleep 30

;put in main hand
MouseClick, Left,1370,640,,3,D
Sleep 25

MouseClick, Left,1370,642,,2,U
Sleep 30

Send q

;suspend Hotkey to prevent 2 from
;retriggering macro
Suspend On
Send 2
Suspend Off

Sleep 30

MouseMove, 1152,542,0
Send 6
Sleep 100
Click Down Right
BlockInput, MouseMoveOff

If rmbState = U
{}
Suspend on
send 2
Suspend off
}

return

End::
exitapp
return




PM me if you want to earn FG simply by telling me how to work this
Go Back To Programming & Development Topic List
Closed New Topic New Poll