Jump to content
Sign in to follow this  
Pacer

Guild Wars killer/loot picker

Recommended Posts

Pacer

I am very new to AutoIt, matter of fact I started yesterday. I searched some Guild Wars stuff just to practice and I found some scripts and learned from them.

I was making a killer and loot picker so I used someone's script and added my own in it. It is very bad I know. Lol. But it kind of works.

Only problem I have is that once I clear the area I need to Map back to the city. To Map back I have to press 'M' then click on the city.

I need to know how for AutoIt to figure out that it isn't killing anymore and to have to coordinates to map back to the city.

I can have it timed so that AutoIt maps back at a certain time, but I don't know how to have it click on the city.

Here is the code: (Half I found here and Half I made)

#NoTrayIcon 
#Include<GUIConstants.au3> 
Global $Paused 
;~~~~~~~~~~~~~~~  
HotKeySet("{Pause}", "Pause") 
HotKeySet("{End}", "Hide") 
HotKeySet("{Home}", "Show") 
;~~~~~~~~~~~~~~~
GuiCreate("Killbot", 100, 100,(@DesktopWidth-100)/2, (@DesktopHeight-50)/2, $WS_DLGFRAME)
WinSetOnTop("Killbot", "", 1)
;~~~~~~~~~~~~~~~
$startKB = GuiCtrlCreateCheckbox("Start", 4, 1, 50, 20)
$startPU = GUICtrlCreateCheckbox("Start2", 4, 25, 50, 20)
$Button_1 = GuiCtrlCreateButton("X", 95, 3, 18, 18)
$Buttonhelp = GUICtrlCreateButton("Help", 60, 3, 35, 18)
GuiSetState()
;~~~~~~~~~~~~~~~
While 1
$msg = GuiGetMsg()
;~~~~~~~~~~~~~~~
Select 
   Case GUICtrlRead($startKB) <> 4 
        While GUICtrlRead($startKB) <> 4 
          Kill() 
        WEnd 
   Case GUICtrlRead($startKB) = -15 
        ExitLoop 
EndSelect
;~~~~~~~~~~~~~~~
Select 
   Case GUICtrlRead($startPU) <> 4 
        While GUICtrlRead($startPU) <> 4 
          Pick() 
        WEnd 
   Case GUICtrlRead($startPU) = -15 
        ExitLoop 
EndSelect
;~~~~~~~~~~~~~~~
Select 
Case $msg = $Buttonhelp 
msgbox(0, "Help", "Press (Pause) to pause, press (End) to hide the window and press (Home) to show the window.Killbot was created for educational purposes only.") 
EndSelect
;~~~~~~~~~~~~~~~   
    Select
   Case $msg = $Button_1
        ExitLoop
    EndSelect
WEnd
;~~~~~~~~~~~~~~~  
Func Pause() 
$Paused = NOT $Paused 
While $Paused 
sleep(100) 
ToolTip('GWit is currently paused.',0,0) 
WEnd 
ToolTip("") 
EndFunc 
;~~~~~~~~~~~~~~~ 
Func Hide() 
GUISetState(@SW_HIDE) 
EndFunc 
;~~~~~~~~~~~~~~~ 
Func Show() 
GUISetState(@SW_SHOW) 
EndFunc 
;~~~~~~~~~~~~~~~

Func Kill()
    Send("{Alt down}");; hold (alt)     
        Sleep(100) 
        Send("{c down}") 
        Sleep(15) 
        Send("{c up}") 
        Sleep(25)    ;;   This is the attack sequence.;; 
        Send("{SPACE down}") 
        Sleep(15) 
        Send("{SPACE up}") 
        Sleep(15) 
                     #cs
                     Send("{2  down}") 
                     Sleep(15) 
                     Send("{2 up}")  
                     Sleep(15) 
                     Send("{3 down}") 
                     Sleep(15)                     ;; Skills sequence.;; 
                     Send("{3 up}") 
                     Sleep(15) 
                     Send("{4  down}") 
                     Sleep(15)                          
                     Send("{4 up}")  
                     Sleep(15)
                     #ce 
Send("{Alt up}") 

Sleep(6000)

Send("{; down}")
    Sleep(15)
    Send("{; up}")
    Sleep(15)

Send("{SPACE down}") 
        Sleep(15) 
        Send("{SPACE up}") 
        Sleep(15)
        
Sleep(100)      
        
Send("{; down}")
    Sleep(15)
    Send("{; up}")
    Sleep(15)

Send("{SPACE down}") 
        Sleep(15) 
        Send("{SPACE up}") 
        Sleep(15)

Sleep(200) 
EndFunc

Thank you guys!

Share this post


Link to post
Share on other sites
Golbez

im sure that there is a "life bar" of the thing you are killing.. y not just see what color it is at a certin spot on the screen..

ie: pixelsearch

Share this post


Link to post
Share on other sites
Pacer

im sure that there is a "life bar" of the thing you are killing.. y not just see what color it is at a certin spot on the screen..

ie: pixelsearch

That can work on my next bot, where I kill harder stuff. But on this one I am killing like 20 creatures then it has no more creatures to kill and it just keeps pressing 'c' and 'space' but that just means he is just standing there since there is no monsters near by.

Thanks though.

Share this post


Link to post
Share on other sites
NaPeK

Its old killbot and not working too good its to simple you just added ; to pick items after kill sequence

You should put kill() in loop for example it do kill sequence 4 times then pick items

in example

Func
$how_many = 4
$repeat = 0
While $repeat < $how_many

more advanced kill sequence here with hp bar checking to use healing skills

$repeat = $repeat + 1
WEnd
Call ("pickup")
EndFunc

in end of pickup function you can use MouseClick on upper of screen so your character move on area and after thic you can call kill function again

Edited by NaPeK

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×