Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz
You last visited: Today at 19:10

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

Advertisement



(GUIDE)How to create own scripts/bots with AutoIt

Discussion on (GUIDE)How to create own scripts/bots with AutoIt within the Rappelz forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 159
Received Thanks: 85
(GUIDE)How to create own scripts/bots with AutoIt

for all who want to learn something or create bots for browsergames, mmorpgs and other games


download Autoit here:


Now run the Scite Script Editor
this is where you type in your code, let check your code if errors are in it and compile it to executable exe file.

the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which you have to click or watch.

for that copy this code in the scite editor and compile it into exe or just run it.
--------------------------------------------------------------------------
MsgBox(0, "Hi", "Press Ok to continue! ESC to Exit!") ; first message box

$timeInput = InputBox("Timer Settings", "How many second delay?", "3")
$time = $timeInput*1000

Global $Paused
HotKeySet("{ESC}", "Terminate")
Sleep(3000)

While 1
$pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
Sleep($time)
WEnd

Func Terminate()
Exit 0
EndFunc

-------------------------------------------------------------------------
you can also use a tool from autoit : C:\...\AutoIt3\Au3Info.exe
Its called "AutoIt Window Info" and can also be found in the
--- Startmenu\...\autoit v3\AutoIt Window Info ---
-------------------------------------------------------------------------

The only thing you need in Scite editor is the Tool button and the Help Button
-The "Tool" button for Compiling, Go, and Syntax Check.
-The "Help" button for looking up commands or any other things(just search)


PRACTICE 1:
Browsergame Account creater for Legend or Gondal or other games.(also included a attack to transfer money to your main account )
--------------------------------------------------------------------------
global $Paused
global $cnt = 1 ;variable declaration
global $z = 0
$bot = InputBox("name of bot", "ESC = CLOSE , F8 PAUSE , ENTER NAME FOR BOT", "botname") ; input box where you can enter a name which is used for the variable
$attackname = InputBox("5 sec until start", "ESC = CLOSE , F8 PAUSE WHO ATTACK?", "enter name") ; a name which will be attacked later to transfer money

HotKeySet("{F8}", "TogglePause") ; determines a hotkey --> the function is at the end of script
HotKeySet("{ESC}", "Terminate")
Sleep(5000)


mousemove(400,560) ; moves mouse to position X,Y
mouseclick("") ; left clicks one time
mousemove(400,576)
mouseclick("")
mousemove(526,557)
mouseclick("")

While 1 ; starts a LOOP --> everything inbetween WHILE and WEND will be repeated until you quit

sleep(4000) ; pauses 4 seconds
mousemove(511,464)
mouseclick("")
send($bot) ; sends the keys --> $bot means what you have entered at the inputbox
send($cnt) ; adds a number after your name --> test1 test2 test3 ...... and so on
send("{tab}password") ; presses TAB and then enters a password
mousemove(478,523)
mouseclick("")
send($bot) send($cnt)
send("@.") ; enters a email address and then the registration will be finished and account is created

mousemove(327,679)
mouseclick("")
mousemove(545,561)
mouseclick("")
sleep(350)
mousemove(116,665)
mouseclick("")
MouseClickDrag("",682,587,823,585) ; means he clicks and drags the mouse from position 1 to position 2 for scrolling or something like that
mousemove(787,648)
mouseclick("")
mousemove(103,586)
mouseclick("")
MouseClickDrag("",697,405,588,465)
sleep(500)
MouseClickDrag("",719,630,456,513)
mousemove(102,505)
mouseclick("")
sleep(50)
mouseclickdrag("",690,530,472,530)
send($attackname) ; types in the name which will be attacked for transferring money
mousemove(598,584)
mouseclick("")
sleep(14500)
mousemove(102,505)
mouseclick("")
sleep(50)
mouseclickdrag("",690,530,472,530)
send($attackname)
mousemove(598,584)
mouseclick("")
sleep(14500)

mousemove(915,177)
mouseclick("")
mousemove(470,46)
mouseclick("")
send("http://page-of-browsergame{enter}") ; for going to account creation page again


$z = $cnt + 1 ; the counter
$cnt = $z ; for counter to add new value
WEnd ;THIS IS LOOP END, everything between WHILE and WEND will be repeatet until ESC is pressed


Func TogglePause() ; the pause function
$Paused = NOT $Paused
While $Paused
ToolTip('Please press "F8" to resume!',600,200,"",1,2)
sleep(1000)
WEnd
ToolTip("")
EndFunc


Func Terminate() ; the exit function
Exit 0
EndFunc

-------------------------------------------------------------------------

COPY THIS TO YOUR SCITE EDITOR AND READ THROUGH IT, COMMENTS ARE SHOWN IN GREEN NEXT TO THE COMMANDS!!!
Find out your coordinates and change the code to whatever you want.



PRACTICE 2:

BOT FOR COUNTER STRIKE : HOW TO HAVE REACTION TIME = 0
for example you aim at a door and someone moves in your crosshair. also good with sniper. this means as soon as if enemy is in the crosshair the bot will press left mouse button to fire. funny at LAN partys because it can not be detected but is little hard to use
--------------------------------------------------------------------------
#include <GUIConstants.au3> ; include whatever you want, the more you include the more functions and commands you can use
#include <GUIComboBox.au3>
#include <File.au3>
#include <Array.au3>
#Include <Misc.au3>
Global $Paused
hotkeyset("{c}", "_shootingtest") ; hotkeys are set this means c
hotkeyset("^{c}", "_shootingtest") ; this means CTRL+c (for being ducked that you can activate it)
hotkeyset("{esc}", "_exit")

_waituntilstart() ; starts the whole thing and jumps to Func_waituntilstart() one line below


Func _waituntilstart() ; Function starts with FUNC and ends with ENDFUNC
while 1
sleep(300)
wend
EndFunc ; this will only sleep and wait until you press C or CTRL+C

func _shootingtest() ; this FUNCTION will check if any movement is in the center of the screen(means crosshair here)
$check = pixelchecksum(505,382,519,386)

Do
$test = pixelchecksum(505,382,519,386)
sleep(10)
Until $check <> $test or _ispressed("46") ; DO XXX until YYY means he checks pixels until the colors change in the center(means that enemy is now with his head in your aim)
if $check <> $test Then
_fire() ; jumps to FIRE FUNCTION
endif
sleep(300)
_waituntilstart()
EndFunc


func _fire() ; will press left mouse button 3 times
sleep(10)
mouseclick("")
sleep(200)
mouseclick("")
sleep(200)
mouseclick("")
sleep(200)

_waituntilstart() ; jumps back to the wait function until you press C or CTRL C to start the thing again
EndFunc



func _exit()
Exit
EndFunc

--------------------------------------------------------------------------

Now lets learn something more about Pixel functions, conditions and other commands needed for complicated bot creating:

---WinMove("Rappelz", "", 0, 0)
moves Rappelz Window to the top left corner, position 0,0 (X,Y)

---$coordXY = PixelSearch($coord1, $coord2, $coord3, $coord4, 0x000000, 120)
searches a pixel in a defined color in a defined rectangle, 0x000000 means black, and 120 means the shader variation because little variations in colors are happening. 0 means only exact this one color, and the bigger the value the more variations are accepted.
FOR MORE DETAILS CHECK ALWAYS THE HELP FILE. ITS VERY VERY GOOD

---ControlClick("Rappelz","","","left", 1, X,Y)
performs a left click in the rappelz window at the X,Y position

---ControlSend("Rappelz", "", "", "{F7 DOWN}{F7 UP}")
performs a F7 in the rappelz game ( F7 is pressed down, and then released)
this is the same as {F7} but you can let him press CTRL ALT and F7 and then release one after the other again to perform a CTRL+ALT+F7

---if $monster ==1 Then
_attack()
Else
send("{tab}")
EndIf
IF variable is 1 he will jump to attack functon, Else he will press TAB

---WinActivate("Rappelz")
gives focus to the Rappelz window or any other window you like to choose





that should be enough for now and i hope you now understand more about autoit and scripting and writing bots

if you have questions or suggestions just let me know

HAVE FUN
anbieter4trala is offline  
Thanks
1 User
Old 11/17/2008, 03:05   #2
 
RICANPAPI_16's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 844
Received Thanks: 152
im lost is this TuT for a other game than rappelz?
RICANPAPI_16 is offline  
Old 11/17/2008, 22:02   #3
 
elite*gold: 0
Join Date: Jul 2008
Posts: 116
Received Thanks: 11
fun copy^^
becker1984 is offline  
Old 11/17/2008, 22:15   #4
 
RICANPAPI_16's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 844
Received Thanks: 152
Quote:
Originally Posted by becker1984 View Post
fun copy^^

what do u mean?
RICANPAPI_16 is offline  
Old 11/19/2008, 21:16   #5
 
TheMan!!'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 710
Received Thanks: 933
Why the haste because I made nothing of it when they are sized not understand what they have done.
TheMan!! is offline  
Reply


Similar Threads Similar Threads
[Guide] Using edxSilkroadProxy to Create a Simple AutoIt Clientless
11/09/2014 - SRO Coding Corner - 38 Replies
Warning: Do not use on ISRO due to the 7 day ban on a wrong opcode.. Use this only for educational purposes and a reference! Here it is! The third and final guide in my small series relating to the Silkroad proxy project. From here you will learn how to make a simple clientless that can spawn in game using the edxSilkroadProxy. Included is support for character listing and server stats. Be sure to read through the entire guide and code before trying to make your own version! Using...
How to create your own bots/macros with AutoIt
01/27/2013 - CO2 Programming - 143 Replies
Starting Your Script Creating your own bots and macros can be fun, and its very simple to do. This guide will talk about some basic methods on using AutoIt, and some very useful functions AutoIt provides that would help in making macros for Conquer. First, if you don't have it already, download AutoIt by clicking the following link. http://www.autoitscript.com/files/autoit3/...2.2. 0-setup.exe To start a new script, either go to Start>All Programs>AutoIt v3>SciTE Script Editor, OR...
[GUIDE] How to create Scripts/bots with AutoIT
09/22/2010 - Tutorials - 6 Replies
for all who want to learn something or create bots for browsergames, mmorpgs and other games download Autoit here: http://www.autoitscript.com/cgi-bin/getfile.pl?au toit3/autoit-v3-setup.exe Now run the Scite Script Editor this is where you type in your code, let check your code if errors are in it and compile it to executable exe file. the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which...



All times are GMT +2. The time now is 19:10.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.