コード例 #1
0
ファイル: quests.php プロジェクト: Rellfy/florensia-base
         break;
     case "15":
         $mission = $flolang->questworktype_15;
         break;
     case "16":
         $mission = $flolang->questworktype_16;
         break;
     default:
         $mission = $flolang->sprintf($flolang->questworktype_notset, $questxml->Mission->Work[$i]->attributes()->WorkType);
 }
 //WorkValue, only if not looting (if loot mob is already displayed)
 if (isset($questxml->Mission->Work[$i]->attributes()->WorkValue) && $questxml->Mission->Work[$i]->attributes()->WorkType != "3") {
     $workvalue = $questxml->Mission->Work[$i]->attributes()->WorkValue;
     if (MYSQL_NUM_ROWS(MYSQL_QUERY("SELECT " . $florensia->get_columnname("npcid", "npc") . "  FROM server_npc WHERE " . $florensia->get_columnname("npcid", "npc") . "='{$workvalue}'")) > 0) {
         $workvalue = "<a href='" . $florensia->outlink(array("npcdetails", $workvalue, $stringtable->get_string($workvalue))) . "'>" . $stringtable->get_string($workvalue, array('protectionlink' => 1)) . "</a>";
         $maploc = floclass_npc::get_maplist($questxml->Mission->Work[$i]->attributes()->WorkValue);
         $workvalue .= count($maploc['ids']) ? " (" . join(", ", $maploc['list']) . ")" : "";
     } elseif (MYSQL_NUM_ROWS(MYSQL_QUERY("SELECT itemid FROM server_item_idtable WHERE itemid='{$workvalue}'")) > 0) {
         $workvalue = "<a href='" . $florensia->outlink(array("itemdetails", $workvalue, $stringtable->get_string($workvalue))) . "'>" . $stringtable->get_string($workvalue, array('protectionlink' => 1)) . "</a>";
     } else {
         $workvalue = $stringtable->get_string($workvalue, array('protection' => 1));
     }
     $workvalue = "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>{$flolang->questvalue}</td>\n\t\t\t\t\t\t\t<td>{$workvalue}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t";
 } else {
     unset($workvalue);
 }
 $table_missions .= "\n\t\t\t\t\t<table class='subtitle small' style='width:100%; font-weight:normal;'>\n\t\t\t\t\t\t<tr><td colspan='2' style='border-bottom:1px solid; font-weight:bold;'>" . $flolang->sprintf($flolang->questmission, bcadd($i, 1)) . " ({$mission})</td></tr>\n\t\t\t\t\t\t{$loottable}\n\t\t\t\t\t\t{$workvalue}\n\t\t\t\t\t\t{$additionalrow}\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td style='width:120px;'>{$flolang->questamount}</td>\n\t\t\t\t\t\t\t<td>" . $questxml->Mission->Work[$i]->attributes()->Count . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t";
 /*
 			<tr>
 				<td>{$flolang->questpriority}</td>
 				<td>".$questxml->Mission->Work[$i]->attributes()->Priority."</td>