Jump to content
MakeWebGames

Do you have a Iteam list


Brad

Recommended Posts

Does anyone have a iteam list with

Iteam Name

Iteam Type

Iteam Price

Iteam Sell Price

If there is an effect

Combat Usage

Weapon Power Armor Defense

 

If you have one or can make one for me that will be great really just want wepons and armor.

Thanks

Link to comment
Share on other sites

<?php
@include_once(DIRNAME(__FILE__) .'/sglobals.php');
$get_items = $db->query("SELECT * FROM `items`;");
echo'<table width="90% class="table">
<tr>
<th>Name</th>
<th>Type</th>
<th>Buy Price</th>
<th>Sell Price</th>
<th>Effects</th>
<th>Attack</th>
<th>Defence</th>
</tr>';
while($item = $db->fetch_row($get_items)) {
$type = @mysql_result($db->query("SELECT `itmtypename` FROM `itemtypes` WHERE (`itmtypeid` = ". $item['itmid'] .");");
$effects = 0;
if($item['effect1_on']) { $effects++; }
if($item['effect2_on']) { $effects++; }
if($item['effect3_on']) { $effects++; }
echo'<tr>
<td>'.htmlspecialchars(stripslashes($item['itmname'])).'</td>
<td>'.htmlspecialchars(stripslashes($type)).'</td>
<td>'.money_formatter($item['itmbuyprice']).'</td>
<td>'.money_formatter($item['itmsellprice']).'</td>
<td>There are: '.$effects.' effects on this</td>
<td>'.number_format($item['weapon']).'</td>
<td>'.number_format($item['armor']).'</td>
</tr>';
}
echo'</table>';
echo'[size="1"]Made by Danny696-Navry[/size]';
$h->endpage();
?>

Basic but works *not tested tho*

Link to comment
Share on other sites

I think he wants a list of weapons for his game.

Like

Carl_Gustav_M45_01.jpg

Name: Carl Gustav Model 45

Length: 31.8" (808mm)

Weight: 7.62lb (3.45kg)

Barrel: 8.0"

Calibre: 9mm

Rifling: 6 groove r/hand

Feed: 36/50-round box

C. Rate: 600rpm

Muz Vel: 1210 f/s (369 m/s)

Sights: 328 yds (300m)

If so, just Google a list of weapons and you've got it!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...