darkcodelagsniper
Member

Code:
svn checkout http://svn.code.sf.net/p/kol-airport-colors/code
Last edited:
svn checkout http://svn.code.sf.net/p/kol-airport-colors/code
I can't tell whether this is sarcastic or notThis is an important script.
Woops, thanks for pointing that out
I can't tell whether this is sarcastic or not
As soon as I saw it, I knew that I had to have it. I installed it immediately and now I don't know how I was able to play without it before.I can't tell whether this is sarcastic or not
string color_planes( buffer source )
{
return replace_all(create_matcher('http(s://s3\.amazonaws\.com/|://)images\.kingdomofloathing\.com/otherimages/(?=[^.]*plane)', source)
, '/images/relayimages/airport_color_planes/');
}
void main( )
{
write( color_planes( visit_url( ) ) );
}
The Plane to That 70s Volcano image has a bit on the bottom that is a red line that should be a black line (just under the plane's nose). Can you update that?
Here is a corrected image.View attachment 8805
buffer color_planes( buffer source )
{
string original = "https://d2uyhvukfffg5a.cloudfront.net/otherimages/";
string replace = "/images/relayimages/airport_color_planes/";
void replace_plane( string plane )
{
replace_string( source, original + plane, replace + plane );
}
replace_plane( "airport_plane_sleaze.gif" );
replace_plane( "airport_plane_70s.gif" );
replace_plane( "airport_plane_spooky.gif" );
replace_plane( "plane_stinko_dinko.gif" );
replace_plane( "airport_plane_cold.gif" );
return source;
}
void main( )
{
write( color_planes( visit_url( ) ) );
}