Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
New Source
Reply
Posted 2004-09-02, 12:04 AM
Basically this one checks in the lobby to see if the please wait box is up and if its up it sleeps for .6 sec if not there is no delay to create the game. I average about 34 sec to run through my password list of 1-10 and a-z. Basically if there is a 1 character password for the game you can get in fairly fast.
Also once inside the game it exits the script.

(Thanks to Vollstrecker and `Insolence` for helping me get the PixelSearch command to work in the lobby.)



Code:
;============================( GameForce )============================
;Version: 	  1.0
;Language:       English
;Platform:       Win9x / NT
;Author:         NDDWinD <nddwind@yahoo.com>
;
;------( Start )------


;========================( End script hotkey )========================

hotkeyset("{end}", "s_exit")
func s_exit()
exit
endfunc

;==========================( Read Pass.txt )==========================

Global $pass = FileOpen ( "pass.txt", 0 )

  If $pass = -1 Then
    MsgBox ( 0, "Error", "Unable to open passfile.txt." )
    Exit
  EndIf

;===========================( Game Name )============================

$gamename=InputBox ("Check out www.nbay.tk", "Enter exact game name:")

;==========================( Win Activate )==========================

AutoItSetOption ("WinTitleMatchMode", 4)
WinActivate("classname=Diablo II")
AutoItSetOption("MouseCoordMode", 0)
AutoItSetOption("PixelCoordMode", 0) 

;======================( Sleep )=======================

sleep(500)

;==================( Game Name as Pass)================

mouseclick("left", 712, 483, 1 ,2)
sleep(300)
send($gamename)
sleep(200)
send("{tab}")
sleep(300)
;/// PASSWORD ///
send($gamename)
;/// End Password ///
sleep(200)
send("{enter}")
sleep(300)

;================( Function name)========

readpass()

;================( Loop )================

Func readpass()

  While 1

    $password = FileReadLine ( $pass )
      If @ERROR = -1 Then ExitLoop

;===========( Pixel Search )===========
sleep(50)
mousemove (713, 465, 1)
sleep(50)

$lobby = PixelSearch( 416, 285, 416, 285, 0xFCE4A4 )
If @error Then
sleep(600)
EndIf

$gamecheck = PixelSearch ( 307, 602, 307, 602, 0xB08848, 7 )
If not @error Then
sleep(350)
send("{esc}")
exit
Endif


     mouseclick("left", 712, 483, 1 ,2) ;Click 'Join'

        sleep ( 200 )
          Send ( $gamename , 0 )
	sleep(100)
          Send ( '{TAB}' )
	sleep(200)
          Send ( $password , 0 )
	sleep(100)
          Send ( '{ENTER}' )
        sleep ( 100 )

   Wend


  FileClose ( $pass )

EndFunc

Last edited by nddwind; 2004-09-02 at 12:14 AM.
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-09-02, 12:19 AM in reply to nddwind's post "New Source"
All in the name of d2 my friend!
Old
Profile PM WWW Search
Sovereign enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzSovereign enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Sovereign
 



 
Reply
Posted 2004-09-02, 12:41 AM in reply to Sovereign's post starting "All in the name of d2 my friend!"
Sovereign said:
All in the name of d2 my friend!
Yea i guess d2 has done somthing for me, get me interested in programming.

Next up java script.
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-09-02, 12:51 AM in reply to nddwind's post starting "Yea i guess d2 has done somthing for..."
Javascript will be A LOT harder then autoit, and you haven't really done anything hard yet.

You really need to learn formatting, and you really need to explain what this does/how it does it/how to work it, and include a compiled version, I can almost gaurantee no one uses this.
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-09-02, 01:03 AM in reply to `Insolence`'s post starting "Javascript will be A LOT harder then..."
It matters not whether you win or lose; what matters is whether I win or lose.
Old
Profile PM WWW Search
Shining Knights enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzShining Knights enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Shining Knights
 



 
Reply
Posted 2004-09-02, 01:11 AM in reply to Shining Knights's post starting "It matters not whether you win or lose;..."
Ofcourse.

It is not useless, I've used it more than anything else, because: It's fun, very versatile, and a unique approach to things.

Ofcourse you won't become a 'leet hacker' but you won't become a 'leet hacker' just from learning ASM either, you'll need a deep background in C#/C++/Reverse engineering/debugging
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-09-02, 01:36 AM in reply to `Insolence`'s post starting "Ofcourse. It is not useless, I've..."
Which should i try to learn 1st Java or C++? or even VB

Also which would be the most useful overall. I heard vb is the easyiest of the 3 is this true?
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-09-02, 01:52 AM in reply to nddwind's post starting "Which should i try to learn 1st Java or..."
JAVASCRIPT! Not java, don't confuse the 2

VB is the easiest* but it is entirely useless, learn C++ after a while.

You're not nearly good enough to delve into C++ yet.

You haven't learned to research or anything yet.
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-09-02, 02:05 AM in reply to nddwind's post "New Source"
Well my school has an advanced and a beginner javascript class. So ill take the basic javascript class.
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-09-02, 02:18 AM in reply to nddwind's post starting "Well my school has an advanced and a..."
Excellent.

Just realize, the javascript you use in a website is quite a bit different...
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-09-02, 07:05 AM in reply to `Insolence`'s post starting "JAVASCRIPT! Not java, don't confuse the..."
`Insolence` said:
You're not nearly good enough to delve into C++ yet.
Yeah, I tried doing that without having a clue about even AutoIt.

I gave myself a headache, and I'm normally very good at learning by reading. I never made it past Arrays, lmao.

It's ok. There's a place near where I'm moving that has a few free C++ classes that I'll be hitting up so hard, they'll be calling me Ike.
Old
Profile PM WWW Search
Vollstrecker shows clear signs of ignorance and confidence; the two things needed to succeed in lifeVollstrecker shows clear signs of ignorance and confidence; the two things needed to succeed in life
 
 
Vollstrecker
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:56 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.