Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
swesteve

Use Autohotkey to make bot take door to Lunaris Temple lvl 3

Recommended Posts

Hi,

Ive been trying to get the bot proceed down to lvl 3, and it works but i cant get the darn thing to turn on the bot again

To be honest, my programming skills are not sufficient :)

I'm running the bot with "Z" enabled to that the bot can see texts on doorways etc, and i've created a bmp image for "Lunaris Temple Level 3"

The script pauses the bot, enters the door and its supposed to turn on the bot again, but it does not work

Help me out here :)

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

;Let's make a tray icon
Menu, Tray, Icon, 3.bmp

;Activate game window
IfWinExist, Path of Exile ahk_class Direct3DWindowClass
WinActivate
Else

Loop
{
ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp
If Errorlevel = 1
Sleep 200
Else
{
Send {F12}
Click, %posx%, %posy%
ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp
If Errorlevel = 0
Click, %posx%, %posy%
Else
Sleep 2000
Send {F12}
}
}

Share this post


Link to post
Share on other sites

Hi,

Ive been trying to get the bot proceed down to lvl 3, and it works but i cant get the darn thing to turn on the bot again

To be honest, my programming skills are not sufficient :)

I'm running the bot with "Z" enabled to that the bot can see texts on doorways etc, and i've created a bmp image for "Lunaris Temple Level 3"

The script pauses the bot, enters the door and its supposed to turn on the bot again, but it does not work

Help me out here :)

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

;Let's make a tray icon
Menu, Tray, Icon, 3.bmp

;Activate game window
IfWinExist, Path of Exile ahk_class Direct3DWindowClass
WinActivate
Else

Loop
{
ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp
If Errorlevel = 1
Sleep 200
Else
{
Send {F12}
Click, %posx%, %posy%
ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp
If Errorlevel = 0
Click, %posx%, %posy%
Else
Sleep 2000
Send {F12}
}
}
this if is wrong:

Loop

{

ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp

If Errorlevel = 1

Sleep 200

Else

Send {F12}

sleep 500

Click, %posx%, %posy%

Sleep 2000

Send {F12}

}

im not sure couz i dont use ahk but this should work, if not try this:))

Loop

{

ImageSearch, posx, posy, 1, 1, 800, 600, *60 lunaris.bmp

If Errorlevel = 0

Send {F12}

sleep 2000

Click, %posx%, %posy%

Sleep 2000

Send {F12}

Else

sleep 200

}

Share this post


Link to post
Share on other sites

If you use click function, the click won't happen inside the game. I don't know if it's a bug with autohotkey or a bug with the game. Instead of click, do this:

1) use mousemove function to bring the mouse pointer to the location of the gate

2) then use the click function without any coordinates.

It works for me. Being running Ledge round the clock ;)

Share this post


Link to post
Share on other sites

whats this for language? good gosh i gotta learn that syntax. do i have entrance to the source code, no  dont or do i? i only know Siemens KoP FUP AWL, and sinumeric control. its like C+ but very old. like from ww2. its very different from what it looks like. but i only need that for work. its used for the siemens SPS..only common in industry, robots and things like that.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...