1st thread (and a question) - GEWar
GEWar

Go Back   GEWar > GEWar > GEWar Support > Script Library

Script Library To upload or download your Gewar mod/hacks. Warning: no jewelhunting scripts! Posts are moderated first.

Reply
 
Share Thread Tools Display Modes
  #1  
Old 07-16-2006, 11:12 PM
Rami's Avatar
Rami Rami is offline
Rami has no status
Guitar Hero II on 360.
 

Join Date: Apr 2006
Posts: 674
Likes: 0
Liked 0 Times in 0 Posts
Send a message via ICQ to Rami Send a message via MSN to Rami
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
1st thread (and a question)

woohoo, 1st post in new section.

I'm a noob at scripts, and I don't know anything about them, but what program do people use to make scripts? Also, is there a script out there that allows you to click on a person and track an army that you think may go to your city?
Reply With Quote
  #2  
Old 07-17-2006, 03:17 PM
Lenin's Avatar
Lenin Lenin is offline
Lenin has no status
Donator
 

Join Date: Jan 2006
Posts: 442
Likes: 0
Liked 0 Times in 0 Posts
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
most of the scripts ive seen use PHP, Perl or JavaScript.
PHP and Perl alow for a server to take care of everything without you having to run the code in your computer. It is best for stuff that needs to be updated every couple of minutes like stock charts.

Javascript runs mostly on your computer and it is best for individual programs such as controlling armies. etc.

Other languages can be used, Ive made some programs in Visual Basic that would look for cities that didnt have a nuke shield. This was for the test server.

and as for your questions about the armies. Ive seen scripts that alow you to select a player and see all his armies and destinations without using GE.
Ive also seen Radars that show you every army within a certain distance of a city even if the army is just flying over. But that is up to the individual who made it to post it up.
__________________
Superman wears Jack Bauer PJs.!!
Reply With Quote
  #3  
Old 07-17-2006, 03:19 PM
jackal22's Avatar
jackal22 jackal22 is offline
jackal22 has no status
Donator
 

Join Date: May 2006
Posts: 136
Likes: 0
Liked 0 Times in 0 Posts
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
arnt those kind of scripts againts the rules though?
__________________
Quote:
Originally Posted by Blitzkrieg
you can always rely on Jackal22 for impartial and insightful sports commentry.
Reply With Quote
  #4  
Old 07-17-2006, 03:31 PM
siddharthagandhi siddharthagandhi is offline
siddharthagandhi has no status
Banned
 

Join Date: Jan 2006
Location: Edison, NJ
Posts: 301
Likes: 0
Liked 0 Times in 0 Posts
Send a message via AIM to siddharthagandhi
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
I know pretty good visual basic, but I have no idea how to make a script...

Can anyone elaborate and what you do in VB?
Reply With Quote
  #5  
Old 07-17-2006, 04:16 PM
Lenin's Avatar
Lenin Lenin is offline
Lenin has no status
Donator
 

Join Date: Jan 2006
Posts: 442
Likes: 0
Liked 0 Times in 0 Posts
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Here are some tips for making scripts.
1st you need to know how GEwar works.
It works by adding some extra information to the address on top.
http://livehttpheaders.mozdev.org/
download that and install it in firefox. If you run it you will see all the extra information that firefox sends out to any page you connect to. If you poke around Gewar you will see that certain things are sent which tell what to do.
like buying 5 armies sends this ; http://www.gewar.net/war/storepurchase.php?item=3

Now in VB they have a "Inet" command. it alows you for your vb program to use various internet functions.
if you have some thing like

Text1.Text = "http://www.gewar.net/war/storepurchase.php?item=3"
Source1 = Inet1.OpenURL(Me.Text1.Text)
Text2.Text = Source1

Then it will buy the army for you and print out whatevere the page sends you to in Text2.text

--- for my no nuke shield finder; all i did was create a loop that went from 1 to 1163. thats the number of cities there are.

For i = 1 to CityNum
Text1.text= "http://www.gewar.net/war/city.php?city=" + i
Source1 = Inet1.OpenURL(Me.Text1.Text)
text2.text = Source1

then i searched for " This city has no nuke shield in place". If it found it it woudl alert me if it didnt then it would go on to the next city.

-----
Most of the VB scripts i have made are automated functions that i need done many many times.
__________________
Superman wears Jack Bauer PJs.!!

Last edited by Lenin; 07-17-2006 at 04:31 PM.
Reply With Quote
  #6  
Old 07-19-2006, 01:52 PM
dic101's Avatar
dic101 dic101 is offline
dic101 has no status
hi ya
 

Join Date: Jan 2006
Posts: 456
Likes: 0
Liked 0 Times in 0 Posts
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
'scripting' is just a way for one to interface w/ the gewar game.

gewar is based on http/html... let me break down what goes in a url:

http://www.gewar.net/test.php?q=what is your name&answer=dic101

the first part (red), http://www.gewar.net is obviously the web server address
the second part (dark green), /test.php is the specific web page you are loading
the third part (dark orange), ?q=what is your name begins the 'parameter' section of a url.
in this example, q= what is your name (q = could be question)
the fourth part (yellow green), &answer=dic101 is the syntax for subsequent parameters, the & delineates between parameters.

not sure if this is too technical for anybody (or if Luke really wants ppl to start messing 'round.. hehe). there's plenty of resources on the 'net about how to build advanced web pages that are 'interactive'. google/yahoo for 'cgi-bin'

happy hacking *cough* gewar-ing!
Reply With Quote
  #7  
Old 05-19-2007, 01:57 PM
spikey's Avatar
spikey spikey is offline
spikey has no status
Cannoneer
 

Join Date: Apr 2007
Posts: 264
Likes: 0
Liked 0 Times in 0 Posts
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Quote:
Originally Posted by Lenin
Other languages can be used, Ive made some programs in Visual Basic that would look for cities that didnt have a nuke shield. This was for the test server.

and as for your questions about the armies. Ive seen scripts that alow you to select a player and see all his armies and destinations without using GE.
Ive also seen Radars that show you every army within a certain distance of a city even if the army is just flying over. But that is up to the individual who made it to post it up.

Does anybody have anything like the scripts highlighted in red?
Reply With Quote
Reply

Bookmarks

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
Forum Jump

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All times are GMT. The time now is 10:37 PM.