*this script requres auto hotkey*
Script is designed to buy potions, then sell them so you can afk 100% while it buys them.
Hold f9 while in Neverwinter to break out of the loop.
Press F2 to start buying potions after you edit the coordinates.
Run script in admin mode if it seems to do nothing when you're in neverwinter!
tool to find coordinates of your cursor (ahk script)
Press caps lock after you activate it, and a small text box will show you your current cursor position. Press printscreen to copy the coords to your clipboard.
pastebin - Anonymous - post number 2414853
Buy potions.ahk
Code:
F2::
Loop {
if GetKeyState("F9", "P") ;Exit if f9 is pressed
break
Loop, 4
{
if GetKeyState("F9", "P") ;Exit if f9 is pressed
break
;set coords of buy button ( x, y) EDIT THE LINE BELOW
MouseMove, x,y
sleep, 100
Send {LButton}
sleep, 20 ;send 99 to buy 20 potions.
Send {9}
Send {9}
;set coords of okay button (x, y) EDIT THE LINE BELOW
MouseMove, x,y
sleep, 100
Send {LButton}
}
;set coords of potion to sell (inventory slot) EDIT THE LINE BELOW
MouseMove, x,y
sleep, 60
Send {LButton}
Send {LButton}
;set coords of buy tab (tab on the left of the potions after the sell window pops up) EDIT THE LINE BELOW
MouseMove, x,y
Send {LButton}
}
Video Instructions
http://www.youtube.com/watch?v=UrOwlrpxsr0
Instructions
- Get both the mouse coordinate ahk script and the potion buyer script. (copy them both into a text document and save it as a .ahk)
- right click the potion buying script and select edit.
- double click the mouse coordinate ahk script to start it up.
- Press caps lock to start finding coordinates.
- Go to a pvp potion vendor.
- Press print screen to copy the coordinates to the clipboard and then paste them in the spots labeled EDIT THE LINE BELOW. go here if you don't know where to place your cursor. http://puu.sh/3tqmY.jpg
- Don't forget to format out the = and put a comma between the numbers.
- Save and run.
Example end script
Code:
F2::
Loop {
if GetKeyState("F9", "P") ;Exit if f9 is pressed
break
Loop, 4
{
if GetKeyState("F9", "P") ;Exit if f9 is pressed
break
;set coords of buy button ( x, y) EDIT THE LINE BELOW
MouseMove, 653,894
sleep, 100
Send {LButton}
sleep, 20 ;send 99 to buy 20 potions.
Send {9}
Send {9}
;set coords of okay button (x, y) EDIT THE LINE BELOW
MouseMove, 1057,706
sleep, 100
Send {LButton}
}
;set coords of potion to sell (inventory slot) EDIT THE LINE BELOW
MouseMove, 1592,546
sleep, 60
Send {LButton}
Send {LButton}
;set coords of buy tab (tab on the left of the potions after the sell window pops up) EDIT THE LINE BELOW
MouseMove, 266,382
Send {LButton}
}
Gold to glory rates
1 glory potion = 25 copper | 25k glory spent = 62.5 gold
4 glory potion = 50 copper | 25k glory spent = 31.25 gold
7 glory potion = 1 silver | 25k glory spent = 35.71 gold
11 glory potion = 1.5 silver | 25k glory spent = 34.09 gold
15 glory potion = 2 silver | 25k glory spent = 33.33 gold