Script to build Travian Wing Links

So I've been playing a browser based strategy game called Travian for the past few months. You could kind of equate it to an RTS that you play over a year or so.

Alliances can be formed in the game, and alliances commonly create multiple wings, which starts making communication harder.

You can use this script to build a table of links to all players within said alliances:

Here's what the code looks like to build a table of a single wing

$query1 = "SELECT distinct uid, player from x_world where alliance = 'RATAN' order by player";
$results = mysql_query($query1) or die(mysql_error());
while ($row = mysql_fetch_array($results))
{
extract($row);
echo "http://s5.travian.us/nachrichten.php?t=1&id=". $uid ."\">" . $player ;
}
?>

But what if you have multiple wings?
Ideally I should have stored the alliance(s) in an array, but this was one of the first php apps I wrote, so I just duplicated the working code.

Join, or Die

This became a flag, but it was also considered to be one of the first examples of a political cartoon.
Ben Franklin penned it as far as anyone can tell, and it really is an image that speaks a thousand words.

Each piece of the snake represents one of the 13 original colonies. They faced an enemy greater than each of the parts, but together they stood for something more. This is also shown in another Franklin quote; "We must all hang together, or surely we will hang separately."

This is relevant even today. While everyone is concerned about what political candidate is best for their party, and who's going to win we should all realize that if we don't join together and worry about America winning in the end America, it's people and it's freedoms will surely die.

Don't Tread On Me

My personal favorite symbol of liberty and freedom has always been the Gadsden flag. If you don't know of it's background there are many places on the net that will tell you of it's history and meaning. This is my personal favorite because it stands for much more than a historical relic. It carries meaning to me that there are consequences for those who would impose upon your essential liberties and your pursuit of happiness.

DONT TREAD ON ME.

Me & an M-16

Photobucket

AR-15...Si Vis Pacem, Para Bellum.

So I've decided to build my own AR-15. I had Jon over at Anvil Arms in Lakeland Florida custom engrave the lower receiver for me.

Here's what it looks like, I don't have it in my hands yet though. It's at my FFL's place waiting for me to come get it.

Photobucket

I have some other parts for the build, but nothing's final at this stage.

Photobucket

KaosX clears "the house" with an AK-47

Just shooting at the range is fun, but IPSC style shooting is bar the most fun ive had at the range in ages.

This is a vid of the second or third time ive done IPSC shooting ever.

So my first run I went with my new Springfield XD SC and scored 32 seconds (horrible time)...but I had to do 2 extra reloads in the pistol.
I used an AK (no reloads) and got 16.05.

After taking some tips from an experienced shooter...I got the pistol run down to 18 seconds. Not bad at all.

eh marine!

Crazy Translated Music Videos!

I love this one, especially where he does the ninja-style flip at the beginning with his jacket's hood.

Michael Jackson would be proud

This is where I learned to dance

Small VB.Net utility to batch prefix file names in a directory

I started playing with VB.net 2008 express last week (as in learning the language too) and figured that it would be an interesting exercise to work through(see title). Documentation is pretty good via msdn and I only hit one snag in the process. Somewhere along the line Microsoft got rid of the Rename() function and replaced it with File.Move() and really it didn't matter since they do the same thing (as most Linux users will be familiar with) but Then in VS2008 they changed it back to Rename(). Oh well, it works for what I needed it to.

Let's get this straight flapjack. Carbines, Clips vs Mags.

Here is the Merriam Webster proper pronounciation of the word "Carbine"

http://www.merriam-webster.com/dictionary/carbine

Just click on the small speaker.

Also a video giving you the skinny on the difference between clips and mags

Powered by Drupal - Design by artinet