BattleForums Junior Member
Join Date: Jan 2004 Location: Georgia Posts: 70
| AutoIt Starters tutorial Sup hey i know every that starfish has made a Autoit starters for a spam bot but i just this for prople who want to make more or less then a spam bot well here it goes Psycho*killa Autoit Tutorial Spam Bot
this is a autoit 3 tutorial:
a simple spambot would look something like this:
setenv, inifile, %A_SCRIPTDIR%\\(file name.ini)
then all your inireads
ex.
this is my psychospam ini's
run, %A_scriptdir%Psychospamexit.exe
setenv, inifile, %A_SCRIPTDIR%\\psychospam.ini
iniread, 1m, %inifile%, spam message c, 1m
iniread, 2m, %inifile%, spam message c, 2m
iniread, 3m, %inifile%, spam message c, 3m
iniread, 4m, %inifile%, spam message c, 4m
iniread, 5m, %inifile%, spam message c, 5m
iniread, messagecount, %inifile%, messages, messagecount
iniread, 1, %inifile%, channels, 1
iniread, 2, %inifile%, channels, 2
iniread, 3, %inifile%, channels, 3
iniread, 4, %inifile%, channels, 4
iniread, 5, %inifile%, channels, 5
iniread, channelcount, %inifile%, channels, channelcount
iniread, account, %inifile%, diablo2settings, account
iniread, password, %inifile%, diablo2settings, password
iniread, d2path, %inifile%, diablo2settings, d2path
iniread, characterslot, %inifile%, diablo2settings, characterslot1
iniread, characterslot, %inifile%, diablo2settings, characterslot2
iniread, characterslot, %inifile%, diablo2settings, characterslot3
iniread, characterslot, %inifile%, diablo2settings, characterslot4
iniread, characterslot, %inifile%, diablo2settings, characterslot5
iniread, characterslot, %inifile%, diablo2settings, characterslot6
iniread, characterslot, %inifile%, diablo2settings, characterslot7
iniread, characterslot, %inifile%, diablo2settings, characterslot8
iniread, d2titel, %inifile%, sleeps, d2titel
iniread, sleepintodiablo, %inifile%, sleeps, sleepintodiablo
iniread, sleeptologin, %inifile%, sleeps, sleeptologin
iniread, sleeptocharacterselect, %inifile%, sleeps, sleeptocharacterselect
iniread, sleeptobnet, %inifile%, sleeps, sleeptobnet
iniread, sleepforgames, %inifile%, sleeps, sleepforgames
iniread, sleeptojoingame, %inifile%, sleeps, sleeptojoingame
iniread, sleeptoexit, %inifile%, sleeps, sleeptoexit
iniread, whentojoingame, %inifile%, game, whentojoingame
iniread, repeat, %inifile%, repeat, repeat
iniread, channelmessages, %inifile%, channels, channelmessages
IniRead, channel_number, %SettingsFile%, channels,channel_number
IniRead, Spam_Message, %SettingsFile%, Spam Message, Spam_Message_Number
iniread, realm, %inifile%, realm, realm
iniread, chara_slot, %inifile%, chara_slot, chara_slot
iniread, number_of_channels, %inifile%, channel, numberofchannels
iniread, channel_name, %inifile%, channel name, numberofchannel
SetEnv, Session_Min, 0
SetEnv, Session_Max, 0
SetEnv, Spam_Message_Number, 0
SetEnv, Num_Of_Messages, 0
SetEnv, SettingsFile, %A_SCRIPTDIR%\\psychospam.ini
setenv, channel_number, 0
setenv, number_of_channels, 0
setenv, m_n, 0
setenv, n_o_m, 0
now i know its hard to read but if you download my spam bot it would be easier to read
now you dont have to do this but i swear it is MUCH easier to do this before you start your spam bot .
it would also be alot easier if you lable everything ex.
run_d2:
realm:
character_select:
ect.
if you do this it would be alot easier to know where the problem is if you have oneand also you need to have gosubs in the order of the lables
ex. ( from my spam bot)
gosub, run_d2
gosub, realm
gosub, Europe
gosub, login
gosub, character_select
gosub, join
gosub, type
gosub, leave
gosub, 1_5
gosub, loop
you need all the gosubs before Bot and after your iniread's
now if you put:
gosub, load_d2
gosub, load_MH
it WILL load diablo2 first so put it in the order you want it in and after each lable you much add reture to it to take it back to the gosubs
now for the character selection i use this method:
IfEqual, %char_slot%, 2, Send, {RIGHT}
IfEqual, %char_slot%, 3, Send, {DOWN}
IfEqual, %char_slot%, 4, Send, {RIGHT}{DOWN}
IfEqual, %char_slot%, 5, Send, {DOWN}{DOWN}
IfEqual, %char_slot%, 6, Send, {RIGHT}{DOWN}{DOWN}
IfEqual, %char_slot%, 7, Send, {DOWN}{DOWN}{DOWN}
IfEqual, %char_slot%, 8, Send, {RIGHT}{DOWN}{DOWN}{DOWN}
sleep, 3000
send, {ENTER}
you can also just tell the mouse to click on a spot.
for joing channles i use this method:
CHANNEL_MESSAGE_1:
leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %1% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %1m%{ENTER}
sleep, 3000
CHANNEL_MESSAGE_2:
leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %2% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %2m%{ENTER}
sleep, 3000
CHANNEL_MESSAGE_3:
leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %3% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %3m%{ENTER}
sleep, 3000
CHANNEL_MESSAGE_4:
leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %4% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %4m%{ENTER}
sleep, 3000
Iniread, Stop,
CHANNEL_MESSAGE_5:
leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %5% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %5m%{ENTER}
sleep, 3000
this method will not work inless you have your ini set like mine above you can change the %-----% to wut you wish but they must match the iniread
now joing games is the way to go i know so heres my method:
join:
leftclick, 672, 493
sleep, 3000
leftclick, 582, 490
sleep, 3000
leftclick, 672, 493
SLEEP, %sleepforgames%
leftclick, 514, 262
leftclick, 514, 262
sleep, %sleeptojoingame%
Iniread, Stop, %SettingsFile%, Ever Changing Values, Stop
IfEqual, Stop, Yes!, goto, end
type:
repeat, 3
Spam_Routine:
;Start of spam sub-routine
Random, Spam_Message_number, 1, 5
;Set's random spam message
IniRead, Spam_Message, %SettingsFile%, Spam Message, %Spam_Message_Number%
;Reads whatever random spam message it came up with
SetKeyDelay, 10
Send, {ENTER}%Spam_Message%{ENTER}
;Here is the spam message
Sleep, 2000
;Hang out in the game just spammed.
leave:
sleep, %sleeptoexit%
send, {ESCAPE}
sleep, 600
mousemove, 423, 288
sleep, 100
send, {ENTER}
this is a slow method but sure work method there are alot of other methods out there Running proggrams
now there are alot of ways to run programs the only command is:
run, (path)(or exe)
like for example
run, notepad.exe
or
run, C:\\Program Files\\AIM\\aim.exe
now you must i repeat MUST have two slashes \\ mouse movement MouseClick Perform a mouse click operation.
__________________
Last edited by Psycho*Killa; 03-11-2004 at 04:30 PM.
|