Go Back   Gaming Gutter > Non-Gaming > Programming


Programming - All general programming discussion in here.

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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post I *think* I just got...
Today 02:03 AM
Last post by Hodizzle
Today 03:07 AM
6 Replies, 24 Views
Go to first new post Lil Wayne
10-21-2008 09:33 PM
Last post by Toffie
Today 02:49 AM
46 Replies, 389 Views
Go to first new post forgot my birthday i put...
10-30-2008 09:27 AM
by dookie
Last post by seleporx
Today 02:29 AM
23 Replies, 487 Views
Go to first new post mOBSCENE's score sender...
Today 01:11 AM
Last post by seleporx
Today 02:28 AM
4 Replies, 27 Views
Go to first new post Plastic Surgery Hell
Yesterday 08:02 PM
by Li-Shun
Last post by Hodizzle
Today 01:51 AM
11 Replies, 60 Views
Reply
 
LinkBack Thread Tools Display Modes

 Making A Neopets Trainer Help Needed
Old 07-14-2008, 05:25 PM   #1 (permalink)
Junior Member

pilball is offline
 
Join Date: Jul 2008
Posts: 1
GPoints: 20
iTrader: 0 / 0%
pilball Is gaining popularity
Rep Power: 0
Exclamation Making A Neopets Trainer Help Needed

Hi, im coding a neopets trainer in vb6 and ive been making alot of progress due to the amount of tut's and guides available. I have just finished making my login using cheesies source code and Gluraks httpWRAPPER and it now logs in successfully or at least it says it does, then when i go to load the game(example is Extreme Herder) it loads game find but says "you are not logged it" and gives the options to 1)play game,2)sign in, or 3)sign up. I have many different http wrappers but i keep getting the same problem.

LOGIN CODE
Code:
Private Sub cmdLogin_Click()
cmdLogin.Enabled = False 'so the user doesn't click more than once
lblStatus.Caption = "Logging In (1/3)"
strHTML = Gluraks.GetWrapper("http://www.neopets.com/loginpage.phtml", "http://www.neopets.com/index.phtml")
lblStatus.Caption = "Logging In (2/3)"
strHTML = Gluraks.PostWrapper("http://www.neopets.com/hi.phtml", "destination=%2Findex.phtml&username=" & txtUser.Text, "http://www.neopets.com/loginpage.phtml")
lblStatus.Caption = "Logging In (3/3)"
strHTML = Gluraks.PostWrapper("http://www.neopets.com/login.phtml", "username=" & txtUser.Text & "&password=" & txtPass.Text & "&destination=%2Findex.phtml", "http://www.neopets.com/hi.phtml")
If InStrB(1, strHTML, "Location: /index.phtml") Then 'checks for successful login
lblStatus.Caption = "Successfully Logged In"
strHTML = Gluraks.GetWrapper("http://www.neopets.com/index.phtml", "http://www.neopets.com/hi.phtml")
lblStatus.Caption = "Parsing Account Details"
Label5(1).Caption = "Name: " & GB(strHTML, "Welcome, <a href=""/userlookup.phtml?user=", """")
Label6(1).Tag = GB(strHTML, "<a href=""/quickref.phtml""><b>", "</b></a> </td>")
If LenB(Label6(1).Tag) = 0 Then
Label6(1).Caption = "Pet(s): None"
Else
Label6(1).Caption = "Pet(s): " & Label6(1).Tag
End If
Label8(1).Caption = "Neo Cash: " & GB(strHTML, "NC: <a href='/mall/index.phtml'>", "</a>")
Label7.Caption = "NeoPoints: " & GB(strHTML, "NP: <a href=""/objects.phtml?type=inventory"">", "</a>")
cmdLogout.Visible = True
cmdLogin.Visible = False
cmdLogin.Enabled = True
lblStatus.Caption = "Logged In"
ElseIf InStrB(1, strHTML, "Location: /badpassword.phtml") Then 'checks for bad password
lblStatus.Caption = "Login Failed [Bad Password]"
cmdLogin.Enabled = True
ElseIf InStrB(1, strHTML, "FROZEN") Then 'checks if account is frozen
lblStatus.Caption = "Login Failed [Account Frozen]"
cmdLogin.Enabled = True
End If
End Sub
LOAD GAME CODE(Extreme Herder)
Code:
Private Sub ExtremeHerder_Click()
On Error Resume Next
Dim strcode As String
lblStat.Caption = "Extreme Herder Loaded"
Dpage = Gluraks.GetWrapper("http://www.neopets.com/games/play_flash.phtml?va=&game_id=149&nc_referer=&age=1&hiscore=&sp=0&questionSet=&r=9894224")
Dpage = Replace(Dpage, """", "")
strcode = GetStringBetween(Dpage, "np8_loader", "'")
strcode = "http://images.neopets.com/games/gaming_system/np8_loader" & strcode
Me.SWF.Movie = strcode
Me.SWF.Play
End Sub
  Reply With Quote

 
Old 07-15-2008, 04:37 AM   #2 (permalink)
Dead.

Male Rambo is offline
 
Join Date: Dec 2006
Location: Birmingham, United Kingdom
Age: 20
Posts: 2,587
GPoints: 126
iTrader: 0 / 0%
Rambo Is gaining popularity
Rep Power: 9
I do have a source code of mine for my old, old, old game trainer. However, the main problem is, its slightly old, and also, when you go to send a score, it didn't send. Lol.

I will have to fish it off my network hard drive later for you.

Oh and check you are using the same HTTPWrapper to call the the load game function. (I haven't used VB for ages.)
__________________
EX-ADMIN
of gaminggutter
  Reply With Quote

 
Old 07-26-2008, 01:04 AM   #3 (permalink)
Underground

eckkotc203 is offline
 
Join Date: Oct 2007
Posts: 505
GPoints: 432
iTrader: 0 / 0%
eckkotc203 Is Popular
Rep Power: 5
It's because the Flash Games are connected to Internet Explorer.
If you use an Inet login instead of a wrapper, it should work just fine.
__________________



  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

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 04:02 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.21118307 seconds (100.00% PHP - 0% MySQL) with 19 queries