Go Back   Gaming Gutter


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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post GAMING GUTTER. READ....
11-17-2008 11:28 AM
Last post by Li-Shun
Today 08:50 AM
187 Replies, 1,134 Views
Go to first new post What gear has the best...
Today 08:25 AM
by wikibla
Last post by Li-Shun
Today 08:31 AM
1 Replies, 6 Views
Go to first new post Trading Scania items for...
Today 08:10 AM
Last post by checkone
Today 08:10 AM
0 Replies, 3 Views
Go to first new post Li Luv's you <3
Today 05:38 AM
by Li-Shun
Last post by Li-Shun
Today 08:10 AM
7 Replies, 42 Views
Go to first new post Price Check on Rare...
Today 07:56 AM
Last post by neopetsboy
Today 07:56 AM
0 Replies, 14 Views
View Single Post

 VB6 - Help meee D:
Old 01-21-2008, 10:57 AM   #1 (permalink)
Nub
Underground

Male Nub is offline
 
Nub's Avatar
 
Join Date: Jan 2007
Posts: 139
GPoints: 21
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 6
VB6 - Help meee D:

I'm trying to make a program for a pokemon rpg (specifically, a pokemon grabber) and my vb6 knowledge is extremely lacking so.. can anyone help me out here?

Code:
Private Sub cmdLogin_Click()
Dim strHTML As String

strHTML = Wrapper.PostWrapper("http://srpg.myircshells.com/login.php", "user=" & txtUser.Text & "&pass=" & txtPass.Text)

If InStr(1, strHTML, "failed") Then
lblStatus.Caption = "Bad password."
ElseIf InStr(1, strHTML, "logged") Then
lblStatus.Caption = "Logged In."
Else
lblStatus.Caption = "Unknown Error."
End If

If lblStatus.Caption = "Logged In." Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/index.php", "http://srpg.myircshells.com/login.php")
End If

If InStr(1, strHTML, "Shadow RPG") Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php", "http://srpg.myircshells.com/index.php")
End If


strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=explore", "http://srpg.myircshells.com/promo.php")
    

lblStatus.Caption = "Working."
If InStr(1, strHTML, "Try again") Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=explore", "http://srpg.myircshells.com/promo.php?action=explore")
ElseIf InStr(1, strHTML, "Unown") Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=catch", "http://srpg.myircshells.com/promo.php?action=explore")
Else
lblStatus.Caption = "?"
End If



End Sub
The actual logging in seems to be working flawlessly, but I just dunno how to make it loop to catch a pokemon (and if it doesn't find one, continue searching). You'll most likely have to take a look at the site if you're gonna try and help :x
__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]
 
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 08:54 AM.


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.06323409 seconds (100.00% PHP - 0% MySQL) with 18 queries