echo $v['radius']; ?> </td> <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) { ?>
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 == '') { ?> No NPCs have Adventures! <?php } ?> </div> </div>
echo $v['min_level']; ?> </td> <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) { ?>
if ($merlist != '') { ?> <?php foreach ($merlist as $merlist) { ?> <td align="center" width="5%"> <a href="index.php?editor=npc&z=<?php echo get_zone_by_npcid($merlist['npcid']); ?> &npcid=<?php echo $merlist['npcid']; ?> "> <?php echo $merlist['name']; ?> - (<?php echo get_zone_by_npcid($merlist['npcid']); ?> )</td><br> <?php } } if ($merlist == '') { ?> <tr> <td align="left" width="100" style="padding: 10px;">Merchantlist is not assigned to any NPCs.</td> <?php } ?> </div> </div>
<?php if ($v['delivertonpc'] == 0) { ?> <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
$x = 0; foreach ($goallist as $goallist => $v) { ?> <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
</td> <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>
function MarkQuestNPC() { global $mysql, $quest_path; $query = "UPDATE npc_types SET isquest = 0"; $mysql->query_no_result($query); $query = "SELECT id FROM npc_types"; $results = $mysql->query_mult_assoc($query); foreach ($results as $r) { $npcid = $r['id']; $name = getNPCName($npcid); $npcname = str_replace("`", "-", $name); $zone = get_zone_by_npcid($npcid); $zonepath = "{$quest_path}/{$zone}"; $temppath = "{$quest_path}/templates"; $LuafullpathID = "{$zonepath}/{$npcid}.lua"; $LuafullpathName = "{$zonepath}/{$npcname}.lua"; $LuafulltempID = "{$temppath}/{$npcid}.lua"; $LuafulltempName = "{$temppath}/{$npcname}.lua"; $fullpathID = "{$zonepath}/{$npcid}.pl"; $fullpathName = "{$zonepath}/{$npcname}.pl"; $fulltempID = "{$temppath}/{$npcid}.pl"; $fulltempName = "{$temppath}/{$npcname}.pl"; if (file_exists($LuafullpathID) || file_exists($LuafullpathName) || file_exists($LuafulltempID) || file_exists($LuafulltempName) || file_exists($fullpathID) || file_exists($fullpathName) || file_exists($fulltempID) || file_exists($fulltempName)) { $query = "UPDATE npc_types SET isquest = 1 WHERE id={$npcid}"; $mysql->query_no_result($query); } } }
echo $v['fiid']; ?> ">lucy</a>]</span></td> <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 } ?>