PDA

View Full Version : Don't be alarmed



Stanley
09-08-2005, 09:00 PM
I've scripted up 150 armies, and will be sending them out to truly random locations throughout the globe. I just wanna see the pretty black stripes everywhere. Hopefully, they won't attack you, but you never know....

elk-tamer
09-08-2005, 09:22 PM
Cool. What does the script do?

Stanley
09-08-2005, 09:41 PM
Cool. What does the script do?

It's in VB.

I navigate to:
"http://www.googleearthhacks.com/war/storepurchase.php?item=1"

Which puts an army in my homebase.
From that page, I go to my homebase, and parse out the armyid and put it in sArmy.

I then choose a random city number and put it in sCity.

I then do something like:


Dim PostData() As Byte, sPostData As String
sPostData = "city=" & sCity & "&armyid=" & sArmy & "&Move%21=Move"
Call StringToByteArray(sPostData, PostData)
ReDim Preserve PostData(LBound(PostData) To UBound(PostData) + 1)
PostData(UBound(PostData)) = 0 'needs a null padding at end
WebNavigate "http://www.googleearthhacks.com/war/movearmy.php", , , PostData, "Content-Type: application/x-www-form-urlencoded "

Where WebNavigate is something like:


Private Sub WebNavigate(URL As String, Optional Flags, Optional Target, Optional PostData, Optional Headers)

Flags = navNoHistory And navNoWriteToCache And navNoReadFromCache

WebBrowser.navigate URL, Flags, Target, PostData, Headers
While WebBrowser.readyState <= READYSTATE_INTERACTIVE
doevents
Wend
End Sub


I then create a button whose only code is to do this 150 times.

This is using the WebBrowser control in Visual Basic.

There are faster ways to do it, but I'm a lazy bird.

His Lord Uberdude
09-08-2005, 09:52 PM
Stinkin' cheater. :mad:

Lukepuuk
09-08-2005, 10:01 PM
Which is good as it's upto Mickey to fix this I think. If possible.
So that when the game comes out of Beta, some player doesn't do this again.

elk-tamer
09-08-2005, 10:01 PM
Stinkin' cheater. :mad:

Scripting isn't cheating. Scripts can only do those things that aren't fun to do in a game anyway.

All of my scripts can be incorporated into the game interface if need be. I am working on a big button that says "Kill Nilla".

Stanley
09-08-2005, 10:02 PM
Stinkin' cheater. :mad:

so it's cheating to script a buy/send? I'm not unfairly getting the jewels for it, I'm just saving the time it takes!

I'd encourage people to come up with alternate interfaces to the web-php interface, not discourage it. Poo-on-you for thinking otherwise.


Scripting isn't cheating. Scripts are can only do those things that aren't fun to do in a game anyway.

All of my scripts can be incorporated into the game interface if need be. I am working on a big button that says "Kill Nilla".

exactly

Lukepuuk
09-08-2005, 10:03 PM
Gotta ask...what's up with Nilla? I 'hear' a lot about him on this forum :shock:

Lukepuuk
09-08-2005, 10:04 PM
so it's cheating to script a buy/send? I'm not unfairly getting the jewels for it, I'm just saving the time it takes!


No...we just want the scripts ourselves :spin:

Brendo
09-09-2005, 02:57 AM
I just wanna see the pretty black stripes everywhere.

Black lines?!?! They look like pretty pink ones to me


Hopefully, they won't attack you, but you never know....

Help!!! He's coming!!! Run!!!
**Vacates troops from all his cities**

War_Peace
09-09-2005, 12:52 PM
:D

Well, he can change the stripe colours anytime he wants...

anthonywitt
09-09-2005, 01:06 PM
What a name. What a warrior. Elk...what?

anthonywitt
09-09-2005, 01:26 PM
Hey now I know "Nilla" is a man or boy or whatever. All this time I thought this peson was a girl.
Oh I love your pink cities and lines.

Mickey
09-09-2005, 02:11 PM
I have two thoughts on this:

1 - It would be very difficult to stop this kind of scripting
2 - The scripts aren't doing anything illegal. He's not gaining extra money with the scripts, or gaining any kind of advantage. Just saving himself some hassle. Correct?

If so, I don't see a problem with it.

Roger Andrew
09-09-2005, 07:54 PM
This is a tostesterone area only .. no girls here?

Lukepuuk
09-09-2005, 08:02 PM
This is a tostesterone area only .. no girls here?

Hmmm lets put that one under Feauture Suggestions: Female Players.

Well Mickey? ;)

War_Peace
09-09-2005, 08:12 PM
I am a girl, hihi :spin: