$content_out .= FormInput('Class', SelectIClass("iclass", $iclass)); $content_out .= FormInput('Race', SelectRace("irace", $irace)); $content_out .= FormInput('Slot', SelectSlot("islot", $islot)); $content_out .= FormInput('Stats <br><small>(1st Filter)</small>', SelectStats("istat1", $istat1) . '' . "<select id='istat1comp' class='form-control'>\n <option value='>='" . ($istat1comp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($istat1comp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($istat1comp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($istat1comp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' id='istat1value' value='" . $istat1value . "' class='form-control' placeholder='Value here...'/>"); $content_out .= FormInput('Stats <br><small>(2nd Filter)</small>', SelectStats("istat2", $istat2) . '' . "<select id='istat2comp' class='form-control'>\n <option value='>='" . ($istat2comp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($istat2comp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($istat2comp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($istat2comp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' id='istat2value' value='" . $istat2value . "' class='form-control' placeholder='Value here...'/>"); $content_out .= FormInput('Resists', SelectResists("iresists", $iresists) . '' . "<select id='iresistscomp' class='form-control'>\n <option value='>='" . ($iresistscomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($iresistscomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($iresistscomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($iresistscomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' id='iresistsvalue' value='" . $iresistsvalue . "' class='form-control' placeholder='Value here...'/>"); $content_out .= FormInput('Heroic Stats', SelectHeroicStats("iheroics", $iheroics) . '' . "\n <select id='iheroicscomp' class='form-control'>\n <option value='>='" . ($iheroicscomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($iheroicscomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($iheroicscomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($iheroicscomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' id='iheroicsvalue' value='" . $iheroicsvalue . "' class='form-control' placeholder='Value here...'/>"); $content_out .= FormInput('Modifiers', SelectModifiers("imod", $imod) . '' . "<select id='imodcomp' class='form-control'>\n <option value='>='" . ($imodcomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($imodcomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($imodcomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($imodcomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' id='imodvalue' value='" . $imodvalue . "' class='form-control' placeholder='Value here...'/>"); $content_out .= FormInput('Item Type', SelectIType("itype", $itype)); $content_out .= FormInput('Augmentation Type', SelectAugSlot("iaugslot", $iaugslot)); $content_out .= FormInput('With Effect', "<input type='text' value='" . $ieffect . "' style='width:400px' placeholder='Effect Name...' id='ieffect' class='form-control'/>"); $content_out .= FormInput('Min Required Level', SelectLevel("iminlevel", 255, $iminlevel)); $content_out .= FormInput('Max Required Level', SelectLevel("ireqlevel", 255, $ireqlevel)); $content_out .= FormInput('Tradeable Items Only', "<input type='checkbox' id='inodrop'" . ($inodrop ? " checked='1'" : "") . "/>"); $content_out .= FormInput('Item Availability', " <select id='iavailability' class='form-control'>\n <option value='0' " . ($iavailability == 0 ? " selected='1'" : "") . ">--- Select --- </option>\n <option value='1' " . ($iavailability == 1 ? " selected='1'" : "") . ">Mob Dropped</option>\n <option value='2' " . ($iavailability == 2 ? " selected='1'" : "") . ">Merchant Sold</option>\n\n </select>"); $content_out .= FormInput('Max Level', SelectLevel("iavaillevel", 255, $iavaillevel)); $content_out .= FormInput('Deity', SelectDeity("ideity", $ideity)); $ifv = "<select id='itemfield' class='form-control'>"; $ifv .= "<option value='0'> --- Select --- <option>"; foreach ($itemfields as $val) { if ($val != "") { if ($itemfield == $val) { $sel = " selected"; } else { $sel = ""; } $ifv .= "<option value='" . $val . "' " . $sel . ">" . $val . "</option>"; } } $ifv .= "</select><br> Contains <br><input type='text' id='itemfieldvalue' value='" . $itemfieldvalue . "' class='form-control'>"; $content_out .= FormInput('Item Field', $ifv);
include '../includes/constantes.php'; include '../includes/config.php'; include '../includes/functions.php'; include '../includes/mysql.php'; $Title = "Defensive AA"; include '../includes/headers.php'; print "<p><center><table border=0 width=0%>"; print "<form method=POST action={$PHP_SELF}>"; print "<tr><td nowrap><b>Combat stability : </b></td><td>"; print SelectLevel("ics", 3, $ics); print "<td></tr>"; print "<tr><td nowrap><b>Combat agility : </b></td><td>"; print SelectLevel("ica", 3, $ica); print "<td></tr>"; print "<tr><td nowrap><b>Innate defense : </b></td><td>"; print SelectLevel("iid", 5, $iid); print "<td></tr>"; #print "<tr><td nowrap><b>Lightning reflex : </b></td><td>"; #print SelectLevel("ilr",5,$ilr); #print "<td></tr>"; if (!isset($imhits)) { $imhits = 25; } if (!isset($imdam)) { $imdam = 140; } print "<tr><td nowrap><b>Number of hits from the mob : </b></td><td><input type=text value=\"{$imhits}\" size=4 name=imhits class=form></td></tr>"; print "<tr><td nowrap><b>Average per hit from the mob : </b></td><td><input type=text value=\"{$imdam}\" size=4 name=imdam class=form></td></tr>"; print "<tr align=center><td nowrap colspan=2><input type=submit value=Calculate name=icalculate class=form>\n </td></tr>"; print "</form></table></center>"; if (isset($icalculate)) {
$iminlevel = isset($_GET['iminlevel']) ? $_GET['iminlevel'] : ''; $imaxlevel = isset($_GET['imaxlevel']) ? $_GET['imaxlevel'] : ''; $inamed = isset($_GET['inamed']) ? $_GET['inamed'] : ''; $ishowlevel = isset($_GET['ishowlevel']) ? $_GET['ishowlevel'] : ''; $irace = isset($_GET['irace']) ? $_GET['irace'] : ''; if ($irace == 0) { $irace = ''; } print "<center><table border=0 width=0%><tr valign=top><td>"; print "<table border=0 width=0%>"; print "<form method=GET action={$PHP_SELF}>"; print "<tr><td nowrap><b>Name : </b></td><td><input type=text value=\"{$iname}\" size=30 name=iname ></td></tr>"; print "<tr><td nowrap><b>Level : </b></td><td nowrap>Between "; print SelectLevel("iminlevel", $ServerMaxNPCLevel, $iminlevel); print " and "; print SelectLevel("imaxlevel", $ServerMaxNPCLevel, $imaxlevel); print "</tr>"; print "<tr><td nowrap><b>Race : </b></td><td nowrap>"; print SelectMobRace("irace", $irace); print "</td></tr>"; print "<tr><td nowrap><b>Named mob : </b></td><td><input type=checkbox name=inamed " . ($inamed ? " checked" : "") . "></td></tr>"; print "</table></td><td><table border=0 width=0%>"; print "<tr><td nowrap><b>Show level : </b></td><td><input type=checkbox name=ishowlevel " . ($ishowlevel ? " checked" : "") . "></td></tr>"; print "</table>"; print "<tr align=center colspan=2><td nowrap colspan=2><input type=submit value=Search name=isearch class=form></td></tr>"; print "</form></table></center>"; if (isset($isearch) && $isearch != '') { $query = "SELECT {$tbnpctypes}.id,{$tbnpctypes}.name,{$tbnpctypes}.level\n\t\t\t\tFROM {$tbnpctypes}\n\t\t\t\tWHERE 1=1"; if ($iminlevel > $imaxlevel) { $c = $iminlevel; $iminlevel = $imaxlevel;
echo "<tr><td nowrap='1'><b>Max Required Level : </b></td><td>\n"; SelectLevel("ireqlevel", $ServerMaxLevel, $ireqlevel); echo "</td></tr>\n"; echo "<tr><td nowrap='1'><b>Tradeable Items Only : </b></td><td><input type='checkbox' name='inodrop'" . ($inodrop ? " checked='1'" : "") . "/></td></tr>\n"; echo "<tr>\n"; echo " <td nowrap='1'><b>Item availability : </b></td>\n"; echo " <td>\n"; echo " <select name='iavailability'>\n"; echo " <option value='0' " . ($iavailability == 0 ? " selected='1'" : "") . ">-</option>\n"; echo " <option value='1' " . ($iavailability == 1 ? " selected='1'" : "") . ">Mob Dropped</option>\n"; echo " <option value='2' " . ($iavailability == 2 ? " selected='1'" : "") . ">Merchant Sold</option>\n"; echo " </select>\n"; echo " </td>\n"; echo "</tr>\n"; echo "<tr><td nowrap='1'><b>Max Level : </b></td><td>"; SelectLevel("iavaillevel", $ServerMaxLevel, $iavaillevel); echo "</td></tr>\n"; echo "<tr><td nowrap='1'><b>Deity : </b></td><td>"; SelectDeity("ideity", $ideity); echo "</td></tr>\n"; echo "</td></tr></table>"; echo "<tr align='center'><td nowrap='1' colspan='2'><input type='submit' value='Search' name='isearch'/> <input type='reset' value='Reset'/></td></tr>\n"; echo "</form>\n"; echo "</tbody>"; echo "</table>\n"; // Print the query results if any if (isset($QueryResult)) { $Tableborder = 0; $num_rows = mysql_num_rows($QueryResult); $total_row_count = $num_rows; if ($num_rows > LimitToUse($MaxItemsReturned)) {
echo FormInput('Class', SelectIClass("iclass", $iclass)); echo FormInput('Race', SelectRace("irace", $irace)); echo FormInput('Slot', SelectSlot("islot", $islot)); echo FormInput('Stats <br><small>(1st Filter)</small>', SelectStats("istat1", $istat1) . '' . "<select name='istat1comp' class='form-control'>\n <option value='>='" . ($istat1comp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($istat1comp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($istat1comp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($istat1comp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' name='istat1value' value='" . $istat1value . "' class='form-control' placeholder='Value here...'/>"); echo FormInput('Stats <br><small>(2nd Filter)</small>', SelectStats("istat2", $istat2) . '' . "<select name='istat2comp' class='form-control'>\n <option value='>='" . ($istat2comp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($istat2comp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($istat2comp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($istat2comp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' name='istat2value' value='" . $istat2value . "' class='form-control' placeholder='Value here...'/>"); echo FormInput('Resists', SelectResists("iresists", $iresists) . '' . "<select name='iresistscomp' class='form-control'>\n <option value='>='" . ($iresistscomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($iresistscomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($iresistscomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($iresistscomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' name='iresistsvalue' value='" . $iresistsvalue . "' class='form-control' placeholder='Value here...'/>"); echo FormInput('Heroic Stats', SelectHeroicStats("iheroics", $iheroics) . '' . "<select name='iheroicscomp' class='form-control'>\n <option value='>='" . ($iheroicscomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($iheroicscomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($iheroicscomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($iheroicscomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' name='iheroicsvalue' value='" . $iheroicsvalue . "' class='form-control' placeholder='Value here...'/>"); echo FormInput('Modifiers', SelectModifiers("imod", $imod) . '' . "<select name='imodcomp' class='form-control'>\n <option value='>='" . ($imodcomp == '>=' ? " selected='1'" : "") . ">>=</option>\n <option value='<='" . ($imodcomp == '<=' ? " selected='1'" : "") . "><=</option>\n <option value='='" . ($imodcomp == '=' ? " selected='1'" : "") . ">=</option>\n <option value='<'" . ($imodcomp == '<' ? " selected='1'" : "") . "><</option>\n </select>\n <input type='text' size='4' name='imodvalue' value='" . $imodvalue . "' class='form-control' placeholder='Value here...'/>"); echo FormInput('Item Type', SelectIType("itype", $itype)); echo FormInput('Augmentation Type', SelectAugSlot("iaugslot", $iaugslot)); echo FormInput('With Effect', "<input type='text' value='" . $ieffect . "' style='width:400px' placeholder='Effect Name...' name='ieffect' class='form-control'/>"); echo FormInput('Min Required Level', SelectLevel("iminlevel", 255, $iminlevel)); echo FormInput('Max Required Level', SelectLevel("ireqlevel", 255, $ireqlevel)); echo FormInput('Tradeable Items Only', "<input type='checkbox' name='inodrop'" . ($inodrop ? " checked='1'" : "") . "/>"); echo FormInput('Item Availability', " <select name='iavailability' class='form-control'>\n <option value='0' " . ($iavailability == 0 ? " selected='1'" : "") . ">--- Select --- </option>\n <option value='1' " . ($iavailability == 1 ? " selected='1'" : "") . ">Mob Dropped</option>\n <option value='2' " . ($iavailability == 2 ? " selected='1'" : "") . ">Merchant Sold</option>\n\n </select>"); echo FormInput('Max Level', SelectLevel("iavaillevel", 255, $iavaillevel)); echo FormInput('Deity', SelectDeity("ideity", $ideity)); $ifv = "<select name='itemfield' class='form-control'>"; $ifv .= "<option value='0'> --- Select --- <option>"; foreach ($itemfields as $val) { if ($val != "") { if ($itemfield == $val) { $sel = " selected"; } else { $sel = ""; } $ifv .= "<option value='" . $val . "' " . $sel . ">" . $val . "</option>"; } } $ifv .= "</select><br> Contains <br><input type='text' name='itemfieldvalue' value='" . $itemfieldvalue . "' class='form-control'>"; echo FormInput('Item Field', $ifv);
print " <b>Level : </b>"; print SelectLevel("ilevel", 80, $ilevel); print "<td></tr>"; //print "<tr><td nowrap><b>Mob's level : </b></td><td>"; //print SelectLevel("imoblevel",80,$imoblevel); //print "<td></tr>"; print "<tr><td nowrap><b>STR : </b></td><td><input type=text value=\"{$istr}\" size=4 name=istr class=form></td></tr>"; print "<tr><td nowrap><b>DEX : </b></td><td><input type=text value=\"{$idex}\" size=4 name=idex class=form></td></tr>"; print "<tr><td nowrap><b>Weapon affinity (AA) : </b></td><td>"; print SelectLevel("iwa", 5, $iwa); print "<td></tr>"; print "<tr><td nowrap><b>Combat fury (AA) : </b></td><td>"; print SelectLevel("icf", 3, $icf); print "<td></tr>"; print "<tr><td nowrap><b>Ambidexterity (AA) : </b></td><td>"; print SelectLevel("iad", 1, $iad); print "<td></tr>"; //print "<tr><td nowrap><b>Attack : </b></td><td><input type=text value=\"$iatk\" size=4 name=iatk class=form></td></tr>"; print "<tr><td nowrap><b>Skill (primary weapon) : </b></td><td><input type=text value=\"{$i1skill}\" size=4 name=i1skill class=form></td></tr>"; print "<tr><td nowrap><b>Skill (secondary weapon) : </b></td><td><input type=text value=\"{$i2skill}\" size=4 name=i2skill class=form></td></tr>"; print "<tr><td nowrap><b>Skill (2H weapon) : </b></td><td><input type=text value=\"{$i2hskill}\" size=4 name=i2hskill class=form></td></tr>"; print "<tr><td nowrap><b>Primary weapon, damage : </b></td><td><input type=text value=\"{$ih1dam}\" size=4 name=ih1dam class=form>"; print " <b>Delay : </b><input type=text value=\"{$ih1del}\" size=4 name=ih1del class=form>"; print " <b>Proc damage : </b><input type=text value=\"{$ih1proc}\" size=4 name=ih1proc class=form></td></tr>"; print "<tr><td nowrap><b>Secondary weapon, damage : </b></td><td><input type=text value=\"{$ih2dam}\" size=4 name=ih2dam class=form>"; print " <b>Delay : </b><input type=text value=\"{$ih2del}\" size=4 name=ih2del class=form>"; print " <b>Proc damage : </b><input type=text value=\"{$ih2proc}\" size=4 name=ih2proc class=form></td></tr>"; print "<tr><td nowrap><b>2H weapon, damage : </b></td><td><input type=text value=\"{$i2hdam}\" size=4 name=i2hdam class=form>"; print " <b>Delay : </b><input type=text value=\"{$i2hdel}\" size=4 name=i2hdel class=form>"; print " <b>Proc damage : </b><input type=text value=\"{$i2hproc}\" size=4 name=i2hproc class=form></td></tr>"; print "<tr align=center><td nowrap colspan=2><input type=submit value=Calculate name=icalculate class=form>\n </td></tr>";
$myzone = GetFieldByQuery("long_name", "SELECT long_name FROM zone WHERE short_name like '" . addslashes($zone) . "'"); } $Title .= "<br><a href=zones.php?aZone={$zone}>{$myzone}</a>"; include '../includes/headers.php'; if ($AlwaysBuildQuest == TRUE) { print "<center><table border=0 width=0%>"; print "<form method=POST action={$PHP_SELF}>"; print "<input type=hidden value=\"{$zone}\" name=zone>"; print "<input type=hidden value=\"{$npc}\" name=npc>"; print "<tr><td nowrap><b>Run the quest as a </b></td>"; print "<td><select name=iclass class=form>"; print "<option value=\"c\"" . ($c == "" ? " selected" : "") . ">-</option>\n"; foreach ($dbclasses_names as $c) { print "<option value={$c}" . ($c == $iclass ? " selected" : "") . ">{$c}</option>\n"; } print "</select></td><td>"; print SelectLevel("ilevel", 70, $ilevel); print "</td><td><select name=ifaction class=form>"; foreach ($dbfactions as $k => $c) { print "<option value={$k} " . ($k == $ifaction ? " selected" : "") . ">{$c}</option>"; } print "</select></td><td>"; print "</td><td nowrap colspan=2><input type=submit value=\"Run again\" class=form></td></tr>"; print "</form></table></center>"; } $file = "{$quests_datas}" . urlencode($zone) . "/" . urlencode($npc) . ".inc"; if ($AlwaysBuildQuest == TRUE or !file_exists($file)) { system("/usr/bin/perl parse_quest.pl '{$zone}' '{$npc}.pl' '{$npcid}' '{$iclass}' '{$irace}' '{$ilevel}' '{$ifaction}'"); } require $file; include "../includes/footers.php";