<td align="center" width="5%"><?php echo $v['chance']; ?> %</td> <td align="center" width="10%"><?php echo $traptype[$v['effect']]; ?> </td> <?php if ($v['effect'] == 2 || $v['effect'] == 3) { ?> <td align="center" width="10%"><a href="index.php?editor=npc&z=<?php echo get_zone_by_npcid($v['effectvalue']); ?> &zoneid=<?php echo get_zoneid_by_npcid($v['effectvalue']); ?> &npcid=<?php echo $v['effectvalue']; ?> "><?php echo getNPCName($v['effectvalue']); ?> </td> <?php } if ($v['effect'] == 1 || $v['effect'] == 4) { ?> <td align="center" width="10%"><?php echo $v['effectvalue']; ?>
<div class="table_container" style="width:250px;"> <div class="table_header"> NPCs with Adventures: </div> <div class="table_content"> <?php if ($results != '') { foreach ($results as $result) { extract($result); ?> <center><a href="index.php?editor=adventures&z=<?php echo get_zone_by_npcid($id); ?> &zoneid=<?php echo get_zoneid_by_npcid($id); ?> &npcid=<?php echo $id; ?> "><?php echo $name; ?> - (<?php echo get_zone_by_npcid($id); ?> )</a><br></center> <?php } } if ($results == '') { ?>
<td align="center" width="5%"><?php echo $v['max_level']; ?> </td> <td align="center" width="15%"><?php echo $advtype[$v['type']]; ?> </td> <?php if ($v['type'] == 1 || $v['type'] == 4) { ?> <td align="center" width="10%"><a href="index.php?editor=npc&z=&z=<?php echo get_zone_by_npcid($v['type_data']); ?> &zoneid=<?php echo get_zoneid_by_npcid($v['type_data']); ?> &npcid=<?php echo $v['type_data']; ?> "><?php echo getNPCName($v['type_data']); ?> </td> <?php } if ($v['type'] == 3) { ?> <td align="center" width="10%"><?php echo get_item_name($v['type_data']); ?>
<td align="center" width="5%"><?php echo $v['delivertonpc']; ?> </td> <?php } ?> <?php if ($v['delivertonpc'] > 0) { ?> <td align="center" width="5%"><a href="index.php?editor=npc&z=<?php echo get_zone_by_npcid($v['delivertonpc']); ?> &zoneid=<?php echo get_zoneid_by_npcid($v['delivertonpc']); ?> &npcid=<?php echo $v['delivertonpc']; ?> "><?php echo $v['delivertonpc']; ?> </td> <?php } ?> <td align="center" width="5%"><?php echo getZoneName($v['zoneid']); ?> </td>
<tr bgcolor="#<?php echo $x % 2 == 0 ? "BBBBBB" : "AAAAAA"; ?> "> <td align="center" width="5%"><?php echo $v['listid']; ?> </td> <?php if ($atype == '2') { ?> <td align="center" width="5%"><a href="index.php?editor=npc&z=<?php echo get_zone_by_npcid($v['entry']); ?> &zoneid=<?php echo get_zoneid_by_npcid($v['entry']); ?> &npcid=<?php echo $v['entry']; ?> "><?php echo getNPCName($v['entry']); ?> </td> <?php } ?> <?php if ($atype != '2') { ?> <td align="center" width="20%"><a href="index.php?editor=items&tskid=<?php
<td align="center" width="10%"><?php echo $eventtype[$v['event_']]; ?> </td> <td align="center" width="65%"><?php echo html_replace($v['text']); ?> </td> <?php if ($v['emoteid'] > 999) { $npcid = $v['emoteid']; } else { $npcid = get_npcid_by_emoteid($v['emoteid']); } $currzone = get_zone_by_npcid($npcid); $currzoneid = get_zoneid_by_npcid($npcid); ?> <td align="right"><a href="index.php?editor=npc&emoteid=<?php echo $v['emoteid']; ?> &action=72"><img src="images/edit2.gif" width="13" height="13" border="0" title="View Emote Set"></a></td> </tr> <?php $x++; } } else { ?> <tr> <td align="left" width="100" style="padding: 10px;">No NPC Emotes</td> </tr> <?php
<td align="center" width="8%"><?php echo $v['skill_level']; ?> </td> <td align="center" width="8%"><?php echo $v['chance']; ?> %</td> <?php if ($v['npc_id'] > 0) { ?> <td align="center" width="10%"> <a href="index.php?editor=npc&z=<?php echo get_zone_by_npcid($v['npc_id']); ?> &zoneid=<?php echo get_zoneid_by_npcid($v['npc_id']); ?> &npcid=<?php echo $v['npc_id']; ?> "><?php echo getNPCName($v['npc_id']); ?> </td> <?php } ?> <?php if ($v['npc_id'] < 1) { ?>