Jump to content

how do I Continuously run this script?


Recommended Posts

HotkeySet("{HOME}","_end")

Func _end()

Exit 0

EndFunc

WinMinimizeAll()

$var1 = 0

$var2 = 0

$var3 = 0

$var4 = 0

$var5 = 0

Sleep(3000)

Sleep(225)

Mouseclick("left",612,516,1,3)

Sleep(6500)

Sleep(36)

Mouseclick("left",787,548,1,3)

Sleep(3400)

Sleep(75)

Mouseclick("left",587,361,1,3)

Sleep(3000)

Send("{ENTER}")

Sleep(30000)

Send("{ENTER}")

Sleep(1250)

Send("hey")

Sleep(3000)

Send("{ENTER}")

Sleep(3000)

Send("{ESC DOWN}")

Sleep(50)

Send("{ESC UP}")

Sleep(50)

Send("{UP DOWN}")

Sleep(50)

Send("{UP UP}")

Sleep(350)

Send("{ENTER}")

Sleep(60000)

Its use: joins random game, types what I sellected "hey" then exits

Link to comment
Share on other sites

HotkeySet("{HOME}","_end")
Func _end()
Exit 0
EndFunc
WinMinimizeAll()

While 1
$var1 = 0
$var2 = 0
$var3 = 0
$var4 = 0
$var5 = 0
Sleep(3000)
Sleep(225)
Mouseclick("left",612,516,1,3)
Sleep(6500)
Sleep(36)
Mouseclick("left",787,548,1,3)
Sleep(3400)
Sleep(75)
Mouseclick("left",587,361,1,3)
Sleep(3000)
Send("{ENTER}")
Sleep(30000)
Send("{ENTER}")
Sleep(1250)
Send("hey")
Sleep(3000)
Send("{ENTER}")
Sleep(3000)
Send("{ESC DOWN}")
Sleep(50)
Send("{ESC UP}")
Sleep(50)
Send("{UP DOWN}")
Sleep(50)
Send("{UP UP}")
Sleep(350)
Send("{ENTER}")
Sleep(60000)

WEnd
Like this? I don't know exactly what you want to run continuously.

Nomad :D

Edited by Nomad
Link to comment
Share on other sites

so far its working, is there a way, i notice you play diablo 2. to have it join games with a specific word in it such as baal or chant?

Actually, I played for years, but haven't played in a couple months. If you mean to follow friends into games when they join/create games with baal or chant in the name, yeah. It would take a lot of work to do this though, and I've never really tried. But you'd need a OCR tailored to scan the specific area of the screen as well as recognize the font the game name is displayed as. There are several other small details as well. It will require a high level of AutoIt scripting skills to create a script which is 100% reliable.

If you are new to AutoIt, which I'm guessing you are, I would start off with some easier things until you get to know AutoIt a little better. You can't go straight to racing in NASCAR when you haven't ever driven a car, if you know what I mean. :wacko:

Whether you are going to attempt this or not, I suggest searching the forums for examples of anything you plan to do. It will give you some idea of how to structure your scripts and also of some of the functions available that you might want/need to use.

Nomad :D

Link to comment
Share on other sites

so far its working, is there a way, i notice you play diablo 2. to have it join games with a specific word in it such as baal or chant?

In addition to what nomad said,

D2 doesn't take kindly to bots of any kind as far as i know, so i wouldn't take the time to find and develop an OCR (optical character recongnizer) capable of understanding a game name, folowing it down the game list window should it move, and joining it, only to have D2s cheat/bot blocker stop it and ban your account is like throwing away time

Link to comment
Share on other sites

autoit is supposedly undetectable, havent been banned for mmbot and ive used forever which uses autoit

is it luck, or is the bot just to simple to be worth bblocking?

I once made a gold bot in autoit for d2, i was funny, because i would join a game and run it and it would drop 1000 piles of 1 gold :D:wacko:

stupid, but fun to do just to annoy people, it filled up half of the rogue encampment :D

Link to comment
Share on other sites

HotkeySet("{HOME}","_end")

Func _end()

Exit 0

EndFunc

WinMinimizeAll()

$var1 = 0

$var2 = 0

$var3 = 0

$var4 = 0

$var5 = 0

While 1

Sleep(3000)

Sleep(225)

Mouseclick("left",612,516,1,3)

Sleep(6500)

Sleep(36)

Mouseclick("left",787,548,1,3)

Sleep(3400)

Sleep(75)

Mouseclick("left",587,361,1,3)

Sleep(3000)

Send("{ENTER}")

Sleep(50000)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam Here)

Sleep(3000)

Send("{ENTER}")

Sleep(1500)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam 2")

Sleep(3000)

Send("{ENTER}")

Sleep(1500)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam 3")

Sleep(3000)

Send("{ENTER}")

Sleep(60000)

Send("{ESC DOWN}")

Sleep(500)

Send("{ESC UP}")

Sleep(500)

Send("{UP DOWN}")

Sleep(500)

Send("{UP UP}")

Sleep(350)

Send("{ENTER}")

WEnd

Theres the script completed

Requirements: D2loader 1.11b with -res800 added to path

1 more question before its fully done, how do i put it to have a run/pause button because once i load that it starts auto

Link to comment
Share on other sites

autoit is supposedly undetectable, havent been banned for mmbot and ive used forever which uses autoit

Nothing is undetectable indefinately. Warden, the anti-cheat program for D2, is a real beast when it comes to detecting cheats. I'm not saying that MMBot has been detected, which it likely has, but when Battle.net starts banning, they do it all at once. You might end up getting a ban for a program that you haven't used in 3 months just because you were tagged when you were using it and it took that long before they got around to banning everyone using it.

AutoIt is "mostly" undetectable on Battle.net, depending on how it is used. But once Battle.net becomes aware of any cheat, it's no longer undetectable because they will know exactly how to locate it when it's being used. One method is to simply scan your task manager for the process name, which Warden can, and does do. Register the process as a service you say? Even services have their own task manager. This is merely one method of detection.

For the most part, Battle.net doesn't care about programs that don't have a direct impact on their servers, and that don't give players a huge advantage over the legit players. D2Loader has been detectable for a very long time, but I've yet to hear of a ban over it. I even used it for years. But just try to hack their servers and see how fast you get banned.. and likely in the Defendant's seat in a courtroom. :wacko:

Anyway, if you try to make a bot to do what you want, I doubt you'll get banned over that. Also, unless a lot of people start using it, Battle.net will probably not even know it exists considering what it would be doing. I don't claim to know everything about Battle.net, but I know what I've seen over the years, and I know what I've done personally. Unless you're going to be manipulating the game code or severely lagging their servers, you'll likely have nothing to worry about.

Nomad :D

Link to comment
Share on other sites

1 more question before its fully done, how do i put it to have a run/pause button because once i load that it starts auto

Please use code boxes when posting scripts

with run/pause hotkeys:

CODE

HotkeySet("{END}","_end")

HotKeySet("{Home}", "RunScript")

HotKeySet("{PAUSE}","PauseScript")

Global $on

While 1

Sleep(500)

Wend

Func _end()

Exit 0

EndFunc

Func PauseScript()

$on=0

EndFunc

Func RunScript()

$on=1

WinMinimizeAll()

$var1 = 0

$var2 = 0

$var3 = 0

$var4 = 0

$var5 = 0

While 1

If $on = 1then

Sleep(3000)

Sleep(225)

Mouseclick("left",612,516,1,3)

Sleep(6500)

Sleep(36)

Mouseclick("left",787,548,1,3)

Sleep(3400)

Sleep(75)

Mouseclick("left",587,361,1,3)

Sleep(3000)

Send("{ENTER}")

Sleep(50000)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam Here)

Sleep(3000)

Send("{ENTER}")

Sleep(1500)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam 2")

Sleep(3000)

Send("{ENTER}")

Sleep(1500)

Send("{ENTER}")

Sleep(1250)

Send("Insert Spam 3")

Sleep(3000)

Send("{ENTER}")

Sleep(60000)

Send("{ESC DOWN}")

Sleep(500)

Send("{ESC UP}")

Sleep(500)

Send("{UP DOWN}")

Sleep(500)

Send("{UP UP}")

Sleep(350)

Send("{ENTER}")

endif

WEnd

EndFunc

Not tested

but it should work

Note: does not auto start, have to push home to run it and end quits

Edited by Paulie
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...