[HTTPWrappers] Gaia daily chance [TuT]
In this tutorial i am going to show you how to make a daily chance by using HTTPwrapper.
First of all. You need to go download Temptii's wrappers.
Then open a new form. Name is Daily chance.
Then before you do ANYTHING. add existing item. Go to the file. Select all of them then hit ok.
Then add Refrence. Add all of them from TEMPTii's wrapper.
then,at the top put: Code:
Public Wrapper As HTTPWrapper = NewWrapper
Now that we have the base down. Get 2 textbox's and 2 Buttons
Put textbox2 password char as *
then name one button "login"
then another "grab daily chance"
Now since we have that done. customize it how you want it. Make it look nice.
Now. Since we have that We are going to code the button named Login. Code it as: Code:
Dim strHTML As String
strHTML = Wrapper.GetWrapper("http://www.gaiaonline.com/auth/login/", "http://www.gaiaonline.com/")
strHTML = Replace(strHTML, Chr(34), "'")
sid = GetStringBetween(strHTML, "<input type='hidden' name='sid' value='", "' />")
token = GetStringBetween(strHTML, "<input type='hidden' name='token' value='", "' />")
poststring = "username=" & TextBox1.Text & "&password=" & TextBox2.Text & "&token=" & token & "&sid=" & sid & "&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F"
strHTML = Wrapper.PostWrapper("http://www.gaiaonline.com/auth/login/", poststring, "http://www.gaiaonline.com/auth/login/")
If (InStr(1, strHTML, "?login_success=")) Then
MessageBox.Show("LOGGED IN!")
Else
MessageBox.Show("FAIL")
Then Code "Grab daily"As : Code:
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=1", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=2", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=3", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=4", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=5", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
Wrapper.PostWrapper("http://www.gaiaonline.com/dailycandy/?mode=nojs&action=issue&list_id=8", "action=issue&submit_action=Click+Here+to+Claim+Your+Reward%21")
MsgBox("The Daily Chance Has Been Grabbed!")
WEll there ya go! You just made a Daily chance!.
Also i would like to thank some people. Temptii for his wrappers. and his Source code.
And some people from ebu. But since most of you guys don't like ebu i won't say.
Rep meh!
Temptii's wrappurhs :D http://forum.logicalgamers.com/sourc...s-wrapper.html