| View previous topic :: View next topic |
| Author |
Message |
masta_sean How do I cheat?
Reputation: 0
Joined: 10 Jul 2007 Posts: 2
|
Posted: Tue Jul 10, 2007 6:37 pm Post subject: how to i run this php script? |
|
|
<?
for( $i = 0; $i < 500; $i++ )
{
//just get the valid url of the pet frame from facebook
$baseurl =my url;
//this sets up a fight against a level 30 monster
$fp = @fopen($baseurl.'&form_action=pet.do_fight&level=30&mcid=1&type=fightmonster', 'rb', false);
$response = @stream_get_contents($fp);
@fclose( $fp );
//this gets the fight id from the newly set up fight
$pos = strpos( $response, "'id' : ");
$fightId = substr( $response, $pos+7, 8 );
//this lets you win the fight automatically
$fp = @fopen($baseurl.'&form_action=pet.do_fight&type=lootbody&fid='.$fightId, 'rb', false);
@fclose( $fp );
}
echo "done";
?>
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Jul 10, 2007 7:00 pm Post subject: |
|
|
With a server with PHP installed.
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Jul 10, 2007 7:03 pm Post subject: |
|
|
| you don't need a server to install php
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Jul 10, 2007 8:41 pm Post subject: |
|
|
Open Notepad
paste that in there
save as a .php file instead of .txt
run it on a webpage.
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Jul 10, 2007 8:57 pm Post subject: |
|
|
But it's cooler with a server, you can brag.
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Tue Jul 10, 2007 9:23 pm Post subject: |
|
|
| lurc wrote: | Open Notepad
paste that in there
save as a .php file instead of .txt
run it on a webpage. |
Not unless by "run it on a webpage" you were referring to putting the file in your web root and accessing the file via localhost while you have a web server and php installed along with it.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Jul 11, 2007 9:36 am Post subject: |
|
|
| DeltaFlyer wrote: | | lurc wrote: | Open Notepad
paste that in there
save as a .php file instead of .txt
run it on a webpage. |
Not unless by "run it on a webpage" you were referring to putting the file in your web root and accessing the file via localhost while you have a web server and php installed along with it. |
uh, ok, we'll go with that -.- lol
|
|
| Back to top |
|
 |
|