rendered paste bodyITS SHOWING:
Creature No. Att. Def.
Wyvern 10 23520 21462
Horse 500 262000 366800
Lion 1000 1252000 1985200
Mummy 5 6150 8134
Tiger 3050 5313100 7438340
Phoenix 925 1390275 1631700
Salamander 1800 2214000 2230200
Rhino 20 53360 60088
Fox 1000 969000 1412600
BUT I HAVE:
Creatures
Fire Sprite 1000 Wyvern 10
Monkey 20000 Horse 500
Lion 1000 Mummy 5
Tiger 3050 Phoenix 925
Salamander 1800 Kangaroo 11
Rhino 20 Therizinsaurus 14
Fox 1000 Dyrad 6
===========
CODE
===========
$allowed = '105';
if (ereg('Creatures')) $allowed = $line_num + 8;
if (ereg('Your Auctions')) $notallowed = $line_num;
foreach ($this->creatures as $critter => $details)
{
if (ereg("$critter ",$line) && $line_num > $allowed && $line_num > $notallowed && $line_num != ($notallowed + 1))
{
// Found this creature :D
$crit = explode($critter . ' ',$line);
$no = $crit[1];
$no = explode(' ',$no);
$no = $no[0];
$attack = (($details['att']*($details['boost']+1)) ^2) * $no;
$defence = (($details['def']*($details['boost']+1)) ^2) * 1.4 * $no;
// Small bug with giggsey
if ($critter != 'Monkey' && $no != '410')
{
$table .= "<tr><td>{$critter}</td><td>{$no}</td><td style='color: red;'>{$attack}</td><td style='color: green;'>{$defence}</td></tr>";
}
}
}