From: Luca P. <lpa...@us...> - 2005-09-27 20:38:23
|
Update of /cvsroot/planeshift/planeshift/www/serverconsole/npcs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15133/npcs Modified Files: checknpctriggers.php Log Message: added location and sector Index: checknpctriggers.php =================================================================== RCS file: /cvsroot/planeshift/planeshift/www/serverconsole/npcs/checknpctriggers.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** checknpctriggers.php 26 Sep 2005 20:59:12 -0000 1.2 --- checknpctriggers.php 27 Sep 2005 20:38:15 -0000 1.3 *************** *** 6,10 **** // extract all invulnerable NPC names ! $query = "select c.id, c.name, sec.name from characters as c, sectors as sec "; $query = $query . " where npc_master_id !=0 and c.loc_sector_id=sec.id"; $query = $query . " and npc_impervious_ind='Y'"; --- 6,10 ---- // extract all invulnerable NPC names ! $query = "select c.id, c.name, sec.name, c.loc_x, c.loc_y, c.loc_z from characters as c, sectors as sec "; $query = $query . " where npc_master_id !=0 and c.loc_sector_id=sec.id"; $query = $query . " and npc_impervious_ind='Y'"; *************** *** 14,18 **** echo " <TABLE BORDER=1>"; ! echo " <TH> ID </TH> <TH> NAME</TH><TH> Missing Triggers</TH>"; // for each NPC --- 14,18 ---- echo " <TABLE BORDER=1>"; ! echo " <TH> ID </TH> <TH> NAME</TH><TH> Sector</TH><TH> Position</TH><TH> Missing Triggers</TH>"; // for each NPC *************** *** 42,46 **** if ($found1=="0" or $found2=="0" or $found3=="0") { ! echo "<TR><TD>$line[0] </TD><TD><A href='index.php?page=viewnpc&id=".$line[0]."'>".$line[1]."</a></TD><TD>"; if ($found1=="0") echo "greetings "; --- 42,46 ---- if ($found1=="0" or $found2=="0" or $found3=="0") { ! echo "<TR><TD>$line[0] </TD><TD><A href='index.php?page=viewnpc&id=".$line[0]."'>".$line[1]."</a></TD><TD>$line[2]</TD><TD>$line[3]/$line[4]/$line[5]</TD><TD>"; if ($found1=="0") echo "greetings "; |