Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 15:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Learning AutoIt

Discussion on Learning AutoIt within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2019
Posts: 14
Received Thanks: 1
Learning AutoIt

Hello,

I am learning coding, I just started with AutoIt to create simple scripts and I'd like to understand a very used Nostale bot made with Autoit ()

It only has several lines that I tried to copy in my own AutoIt file that you can find below and then execute it but it doesn't work, it says there is an error. I probably made some mistakes can you guys take a look at it and tell me what do I have to do to make it work ? It's probably so basic to y'all who use C++ but well I need to start somewhere

Code:
Func Départ ()
   WinActivate("NosTale","")
   AutoItSetOption ("PixelCoordMode",2)
Sleep(500)
while 1
   $agresse = 0
   If PixelGetColor(170,28) = 0x6B6C6C Then
	  ToolTip("En combat [Vie < 45%]",0,0)
	  $var = 0
	  While $var < 15
		 $var = $var  1
		 VerifVie()
		 Ramasse()
		 Combat()
	  WEnd
	  Repos()
   Else
	  ToolTip("Nostale en combat",0,0)
	  VerifVie()
	  Ramasse()
	  SelectMob()
	  Combat
   EndIf
WEnd
   EndFunc
ThomasGBL is offline  
Old 03/11/2020, 19:43   #2
 
elite*gold: 97
Join Date: Feb 2015
Posts: 364
Received Thanks: 203
Quote:
Originally Posted by ThomasGBL View Post
Hello,

I am learning coding, I just started with AutoIt to create simple scripts and I'd like to understand a very used Nostale bot made with Autoit ()

It only has several lines that I tried to copy in my own AutoIt file that you can find below and then execute it but it doesn't work, it says there is an error. I probably made some mistakes can you guys take a look at it and tell me what do I have to do to make it work ? It's probably so basic to y'all who use C++ but well I need to start somewhere

Code:
Func Départ ()
   WinActivate("NosTale","")
   AutoItSetOption ("PixelCoordMode",2)
Sleep(500)
while 1
   $agresse = 0
   If PixelGetColor(170,28) = 0x6B6C6C Then
	  ToolTip("En combat [Vie < 45%]",0,0)
	  $var = 0
	  While $var < 15
		 $var = $var  1
		 VerifVie()
		 Ramasse()
		 Combat()
	  WEnd
	  Repos()
   Else
	  ToolTip("Nostale en combat",0,0)
	  VerifVie()
	  Ramasse()
	  SelectMob()
	  Combat
   EndIf
WEnd
   EndFunc
I never did something with Autoit, but there are functions you never defined (?)
You should better write the code by yourself
EPvPAgen is offline  
Old 03/11/2020, 19:48   #3
 
elite*gold: 0
Join Date: Jan 2019
Posts: 14
Received Thanks: 1
I really Don't know much that's the first time I code Something but I watched many videos and read many articles before starting, maybe I should directly create it in C++ ?

Quote:
I never did something with Autoit, but there are functions you never defined (?) You should better write the code by yourself ]
I just copied/pasted the code and tried to understand it but indeed I could see that things were missing but the problem is I don't know how to resolve it by myself yet
ThomasGBL is offline  
Old 03/11/2020, 20:03   #4
 
elite*gold: 97
Join Date: Feb 2015
Posts: 364
Received Thanks: 203
Quote:
Originally Posted by ThomasGBL View Post
I really Don't know much that's the first time I code Something but I watched many videos and read many articles before starting, maybe I should directly create it in C++ ?



I just copied/pasted the code and tried to understand it but indeed I could see that things were missing but the problem is I don't know how to resolve it by myself yet
To solve your errors you have to write the functions, and they are the core part of the bot - i'm not quite sure why this page "released" that snippet of code

You could directly create it in C++ sure, but you better first learn the basics before creating a bot
EPvPAgen is offline  
Reply


Similar Threads Similar Threads
Learning AutoIT
01/19/2013 - AutoIt - 4 Replies
Hello Epvp , I'm intrested in autoIT programming and want to learn coding it and understanding it :) , my guestion is : How do I Learn AutoIT ? Regards big
Hey guys.I need help with learning to use Archlord bots with autoit.
07/23/2011 - Archlord - 4 Replies
Hello fellas. more-less writes on title lol.i need some1 to explain me AutoIT commands and help me with making Autoit bot. if i get help the bot i make i will put it on Elitepvpers. ty :rtfm::rtfm::rtfm::rtfm::rtfm:



All times are GMT +1. The time now is 15:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.