Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Li Luv's you <3
Yesterday 05:38 AM
by Li-Shun
Last post by .BloodyNightmare
Today 07:24 PM
51 Replies, 243 Views
Go to first new post Heather wants to kill a...
Today 06:49 PM
Last post by .BloodyNightmare
Today 07:23 PM
10 Replies, 11 Views
Go to first new post Benita just got her...
Today 04:43 PM
Last post by Axed
Today 07:22 PM
16 Replies, 96 Views
Go to first new post ENTER
Today 07:08 PM
Last post by Axed
Today 07:18 PM
1 Replies, 2 Views
Go to first new post Gaia Online.
Today 08:48 AM
by ~Bloo~
Last post by Phail-kun
Today 07:06 PM
1 Replies, 7 Views
Reply
 
LinkBack Thread Tools Display Modes

 Trainer Source Code
Old 10-10-2006, 03:53 AM   #1 (permalink)
Alex
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Trainer Source Code

Written in VB6. Uses a winsock client in a user control to connect etc. Not included. Not commented either.

Code:
Option Explicit

Private Declare Sub InitCommonControls Lib "comctl32.dll" ()

Const strGameURL = "http://neopets.com/games/meercachase.phtml"
Const lngGameID = 46

Dim bolLoggedIn As Boolean
Dim strHTML As String
Dim strLoadURL As String

Dim intTimes As Long
Dim lngBonus As Long
Dim lng100thScore As Long
Dim strLoadMain As String

Private Sub cmdDoubleScore_Click()
    lngBonus = shkFlash.GetVariable("_level10.BONUS")
    intTimes = intTimes * 2
    lblDoubleScore.Caption = "x" & intTimes
    lngBonus = lngBonus * 2
    Call shkFlash.SetVariable("_level10.BONUS", lngBonus)
End Sub

Private Sub Form_Initiate()
    InitCommonControls
End Sub

Private Sub cmdNoTail_Click()
    If (cmdNoTail.Caption = "Start No Tail Hack") Then
        tmrNoTail.Enabled = True
        cmdNoTail.Caption = "Stop No Tail Hack"
        lblNoTail.Caption = "Enabled"
    ElseIf (cmdNoTail.Caption = "Stop No Tail Hack") Then
        tmrNoTail.Enabled = False
        cmdNoTail.Caption = "Start No Tail Hack"
        lblNoTail.Caption = "Disabled"
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    End
End Sub

Private Sub Form_Load()
    intTimes = 1
End Sub
Private Sub cmdLoad_Click()
Dim strTemp As String
    'Get the 200th score
    lblStatus.Caption = "Getting 100th Score"
    strHTML = HTTPWrapper.Request("GET", "http://neopets.com/gamescores.phtml?game_id=" & lngGameID & "&limit=100", "http://neopets.com/gamescores.phtml?game_id=" & lngGameID)
    strHTML = Between(strHTML, "<td align=center rowspan=1></td></tr><tr><td align=center>100</td>", "<td align=center rowspan=1></td>")
    strHTML = Replace(strHTML, "<td align=center><a href='randomfriend.phtml?user=", vbNullString)
    lng100thScore = Between(strHTML, "<td align=center>", "</td>")
    lblTopScore = lng100thScore
    
    'Navigate to the page
    lblStatus.Caption = "Navigating to game page"
    strHTML = HTTPWrapper.Request("GET", strGameURL, "http://neopets.com/gameroom.phtml")
    
    'Get the game URL
    strLoadURL = Between(strHTML, "game_win = window.open('", ", 'newwin_")
    strLoadURL = Replace(strLoadURL, "'+quality", "high")
    
    Dim strHeight As String
    Dim strWidth As String
    Dim strGameSize As String
    
    strHeight = Between(strLoadURL, "height=", "&width=")
    strWidth = Between(strLoadURL, "&width=", "'+sizestr2+'")
    strGameSize = "&gamewidth=" & strWidth & "&gameheight=" & strHeight
    
    strLoadURL = Replace(strLoadURL, "'+sizestr2+'", strGameSize)
    
    'Load the game
    lblStatus.Caption = "Loading Game"
    strHTML = HTTPWrapper.Request("GET", strLoadURL)
    
    strLoadMain = Between(strHTML, "<PARAM name=""movie"" value=""", """><PARAM name=""quality"" value=""high"">")
    shkFlash.Movie = strLoadMain
    
    cmdLoad.Enabled = False
    cmdNoTail.Enabled = True
    cmdDoubleScore.Enabled = True
    lblLoaded.Caption = "True"
    
End Sub

Private Sub cmdLogin_Click()

    'Make sure username and password are correct
    If (txtUsername.Text = vbNullString) Then
        MsgBox "You must enter a username", vbCritical
        Exit Sub
    ElseIf (txtPassword.Text = vbNullString) Then
        MsgBox "You must enter a password", vbCritical
    End If
    
    lblStatus.Caption = "Logging In"
    strHTML = HTTPWrapper.Request("POST", "http://neopets.com/login.phtml?username=" & txtUsername & "&password=" & txtPassword & "&destination=/petcentral.phtml", "http://www.neopets.com")
            
    If InStr(1, strHTML, "Location: /petcentral.phtml") Then
        MsgBox "Logged in as " & txtUsername, vbInformation
        bolLoggedIn = True
        lblStatus.Caption = "Logged In"
        cmdLoad.Enabled = True
        cmdLogin.Enabled = False
    ElseIf InStr(1, strHTML, "/badpassword.phtml?") Then
        MsgBox "Error Logging In", vbCritical
        bolLoggedIn = False
        lblStatus.Caption = "Error Logging In"
    Else
        MsgBox "Error Logging In", vbCritical
        bolLoggedIn = False
        lblStatus.Caption = "Error Logging In"
    End If
End Sub

Private Sub lblScore_Change()
    intTimes = 1
    lblDoubleScore.Caption = "x1"
End Sub

Private Sub tmrNoTail_Timer()
    'No Tail
    Call shkFlash.SetVariable("_level10.hero.tailnum", "0")
End Sub

Private Sub tmrScore_Timer()
On Error Resume Next
Dim lngScore As Long

    lblScore.Caption = shkFlash.GetVariable("_level10.displayscore")
    lngScore = lblScore.Caption
    If (lngScore > lng100thScore) Then
        If (lblScore.Caption - lblTopScore.Caption >= 500) Then
            MsgBox "You are way over the limit. Program Aborted.", vbCritical
            shkFlash.Movie = strLoadMain
            tmrNoTail.Enabled = False
            cmdNoTail.Enabled = False
            cmdDoubleScore.Enabled = False
            cmdLoad.Enabled = True
            tmrScore.Enabled = False
            Exit Sub
        End If
        tmrNoTail.Enabled = False
        cmdNoTail.Enabled = False
        cmdDoubleScore.Enabled = False
        MsgBox "You have reached the score limit - Program Stopped", vbCritical
        tmrScore.Enabled = False
        shkFlash.Movie = strLoadMain
        Exit Sub
    End If
    
End Sub
  Reply With Quote

 
Old 10-11-2006, 02:43 PM   #2 (permalink)
Underground

Male Shane is offline
 
Join Date: Oct 2006
Location: Kerning City (Scania)
Age: 19
Posts: 796
GPoints: 47
iTrader: 0 / 0%
Shane Is gaining popularity
Rep Power: 8
Nice job, I was actually just browsing google for this.xD
__________________
Shane
  Reply With Quote

 
Old 10-11-2006, 03:02 PM   #3 (permalink)
Alex
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Rep Power:
Glad someone found it to be of some use
  Reply With Quote

 
Old 10-12-2006, 03:48 PM   #4 (permalink)
Underground

Male 070186333 is offline
 
070186333's Avatar
 
Join Date: Oct 2006
Age: 14
Posts: 97
GPoints: 23
iTrader: 0 / 0%
070186333 Is gaining popularity
Rep Power: 7
where u put the code? wat progremm?
  Reply With Quote

 
Old 10-12-2006, 04:54 PM   #5 (permalink)
Alex
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Rep Power:
This is a Visual Basic 6.0 Source Code
  Reply With Quote

 
Old 10-12-2006, 08:46 PM   #6 (permalink)
M52
Full Member

Undisclosed M52 is offline
 
M52's Avatar
 
Join Date: Oct 2006
Posts: 105
GPoints: 113
iTrader: 0 / 0%
M52 Is gaining popularity
Rep Power: 7
Nice Job Dude
__________________
Spartan-Ware - Administrator
  Reply With Quote

 
Old 10-13-2006, 04:18 AM   #7 (permalink)
Underground

Male Cadexn is offline
 
Cadexn's Avatar
 
Join Date: Oct 2006
Posts: 1,117
GPoints: 25
iTrader: 0 / 0%
Cadexn Is gaining popularity
Rep Power: 8
what the heck is this... O.O
  Reply With Quote

 
Old 10-14-2006, 07:10 AM   #8 (permalink)
Break
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Rep Power:
omg how you do that
  Reply With Quote

 
Old 10-17-2006, 03:09 AM   #9 (permalink)
Vagenius

Male Snakebite is online now
 
Snakebite's Avatar
 
Join Date: Oct 2006
Location: Slums of Shaolin
Age: 12
Posts: 10,072
GPoints: 2,241
iTrader: 7 / 100%
Snakebite Is a Lord of AwesomenessSnakebite Is a Lord of AwesomenessSnakebite Is a Lord of AwesomenessSnakebite Is a Lord of Awesomeness
Rep Power: 24
hmm this confused the shit out of me but i gotta learn stuff sooner or later either a job in computers or in brewmasteryism
__________________


Thanks Diinke
Quote:
Originally Posted by Tara Gilesbie
Sudenly a gothic old man flu in on his broomstick. He had lung black hair and a looong black bread. He wus werring a blak robe dat sed ‘avril lavigne’ on da back. He shotted a spel and Vlodemort ran away. It was…………………………………DUMBLYDO RE!
  Reply With Quote

 
Old 10-17-2006, 11:49 AM   #10 (permalink)
Fuzzy719
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Rep Power:
Wow, cool,i was also searching google for this....thx
  Reply With Quote
Reply

Bookmarks



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

Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[vb6] Pointer Trainer Thy Gamer Source Code 6 11-04-2007 02:08 PM
Commenting your PHP code Oosband Tutorials 0 10-18-2006 04:43 PM
Meerca Chase Trainer Alex Neopets 49 10-13-2006 02:49 AM
[vb6] Get Web browser Source code Thy Gamer Source Code 0 09-18-2006 07:32 PM

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 07:24 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.14972591 seconds (100.00% PHP - 0% MySQL) with 18 queries