//require_once("config.php");
include_once("dbClass.php");
require_once("function.php");
require("header.php");
require("left.php");
require("nav.php");
$npcid=postget('npcid','int');
if(empty($npcid)){
echo "
无参数,请返回";
exit();
}
$where='npcid='.$npcid;
$listarr = selecttable('50_npc', array(), $where, $plussql);
$nv=$listarr['0'];
//print_r($tv);
//读宠物表
$where1='petname="'.$thevalue['itname'].'"';
$petarr = selecttable('50_pets', array(), $where1, $plussql);
$pets=$petarr['0'];
?>
---
 |
名称 |
|
地图 |
|
坐标 |
|
npc格言 |
|
说明 |
|
(,)
$mapbl=0.465;
?>
|
if($nv['npcsell1']!=''){
?>
相关物品
小图 |
物品名字 |
物品分类 |
物品说明 |
$i=1;
$name='npcsell1';
//$ndl='itd1g';
while($nv[$name]!=''){
$temp=pgb($nv[$name]);//看掉落物品属于哪种类型;
echo "  |
".$temp['name']." |
".$temp['fl']." |
".$temp['sm']." |
";
$i=$i+1;
$name="npcsell".$i;
$tempid='';
}
?>
}
//相关任务
//首先搜索任务前提表
//$qtsql='select rwid from 50_rw_qt where wptid=3 and wpid='.$eqid;
$npcsql='select rwid from 50_rw where rwfbnpc='.$npcid.' or rwwcnpc='.$npcid;
//$jlsql='select rwid from 50_rw_jl where wptid=3 and wpid='.$eqid;
////echo $qtsql;
//$qtres=$db->query($qtsql);
$rwres=$db->query($npcsql);
//$jlres=$db->query($jlsql);
while($rwrow=$db->getarray($rwres)){
$rwid[]=$rwrow['rwid'];
}
$rwc=count($rwid);
if($rwc>0){
$rwid=array_unique($rwid);
?>
";
}
?>
require("footer.php");
?>