# HG changeset patch # User "Rex Tsai " # Date 1223673569 -28800 # Node ID d183277b4d93fc8f9fc825585515b32ee588582c # Parent b18369979b58aab7d5ebe768754330a53d1a8438 refined the output message. diff -r b18369979b58 -r d183277b4d93 sheep.pl --- a/sheep.pl Sat Oct 11 01:22:16 2008 +0800 +++ b/sheep.pl Sat Oct 11 05:19:29 2008 +0800 @@ -82,15 +82,18 @@ my $robbery = $c->citylevel * ($c->citylevel - 1) * $sheep->trader_score_secondary / 10000; next if($robbery < 2000); + $line = sprintf("%d %s army %d %s/%s(%d),", $robbery, $c->status, $sheep->army_score_main, $sheep->name, $sheep->ally, $members); - $line .= sprintf("\"%s\" %d [%d,%d] %s http://s2.ikariam.tw/index.php?view=island&id=%d\n", + $line .= sprintf("\"%s\" %d [%d,%d] %s http://s2.ikariam.tw/index.php?view=island&id=%d&selectCity=%d\n", $c->cityname, $c->citylevel, $island->x, $island->y, $tradegoodText[$island->tradegood], - $island->id); + $island->id, + $c->cityId + ); printf("%s", $line); }