Ignore:
Timestamp:
Sep 11, 2008, 9:10:27 AM (16 years ago)
Author:
george
Message:
  • Aktualizováno: Minimanager 0.12 rev. 99. Opraveno zobrazování honoru, přidána captcha p?i registraci nového účtu a mini fórum.
  • Přidáno: Český překlad pro Minimanager 0.12.
  • Smazáno: Staré fotky fyzického serveru přesunuty do fotogalerie.
  • Přidáno: Nějaké návody na eventy od bbtrashe.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/creature.php

    r307 r374  
    1010 */
    1111require_once("header.php");
    12 valid_login(1);
     12valid_login($action_permission['read']);
    1313include_once("./scripts/get_lib.php");
    1414
     
    1919        if ($flag & 1) $temp .= " {$lang_creature['gossip']} ";
    2020        if ($flag & 2) $temp .= " {$lang_creature['quest_giver']} ";
    21         if ($flag & 4) $temp .= " {$lang_creature['vendor']} ";
    22         if ($flag & 8) $temp .= " {$lang_creature['taxi']} ";
    2321        if ($flag & 16) $temp .= " {$lang_creature['trainer']} ";
    24         if ($flag & 32) $temp .= " {$lang_creature['spirit_healer']} ";
    25         if ($flag & 64) $temp .= " {$lang_creature['guard']} ";
    26         if ($flag & 128) $temp .= " {$lang_creature['inn_keeper']} ";
    27         if ($flag & 256) $temp .= " {$lang_creature['banker']} ";
    28         if ($flag & 1024) $temp .= " {$lang_creature['tabard_vendor']} ";
    29         if ($flag & 2048) $temp .= " {$lang_creature['battlemaster']} ";
    30         if ($flag & 4096) $temp .= " {$lang_creature['auctioneer']} ";
    31         if ($flag & 8192) $temp .= " {$lang_creature['stable_master']} ";
    32         if ($flag & 16384) $temp .= " {$lang_creature['armorer']} ";
     22        if ($flag & 128) $temp .= " {$lang_creature['vendor']} ";
     23        if ($flag & 4096) $temp .= " {$lang_creature['armorer']} ";
     24        if ($flag & 8192) $temp .= " {$lang_creature['taxi']} ";
     25        if ($flag & 16384) $temp .= " {$lang_creature['spirit_healer']} ";
     26        if ($flag & 65536) $temp .= " {$lang_creature['inn_keeper']} ";
     27        if ($flag & 131072) $temp .= " {$lang_creature['banker']} ";
     28        if ($flag & 262144) $temp .= " {$lang_creature['retitioner']} ";
     29        if ($flag & 524288) $temp .= " {$lang_creature['tabard_vendor']} ";
     30        if ($flag & 1048576) $temp .= " {$lang_creature['battlemaster']} ";
     31        if ($flag & 2097152) $temp .= " {$lang_creature['auctioneer']} ";
     32        if ($flag & 4194304) $temp .= " {$lang_creature['stable_master']} ";
     33        if ($flag & 268435456) $temp .= " {$lang_creature['guard']} ";
     34
    3335 if ($temp != "") return $temp;
    3436        else return $lang_creature['none'];
     
    9092                <option value=\"1\">{$lang_creature['gossip']}</option>
    9193                <option value=\"2\">{$lang_creature['quest_giver']}</option>
    92                 <option value=\"4\">{$lang_creature['vendor']}</option>
    93                 <option value=\"8\">{$lang_creature['taxi']}</option>
    9494                <option value=\"16\">{$lang_creature['trainer']}</option>
    95                 <option value=\"32\">{$lang_creature['spirit_healer']}</option>
    96                 <option value=\"64\">{$lang_creature['guard']}</option>
    97                 <option value=\"128\">{$lang_creature['inn_keeper']}</option>
    98                 <option value=\"256\">{$lang_creature['banker']}</option>
    99                 <option value=\"512\">{$lang_creature['retitioner']}</option>
    100                 <option value=\"1024\">{$lang_creature['tabard_vendor']}</option>
    101                 <option value=\"2048\">{$lang_creature['battlemaster']}</option>
    102                 <option value=\"4096\">{$lang_creature['auctioneer']}</option>
    103                 <option value=\"8192\">{$lang_creature['stable_master']}</option>
    104                 <option value=\"16384\">{$lang_creature['armorer']}</option>
     95                <option value=\"128\">{$lang_creature['vendor']}</option>
     96                <option value=\"4096\">{$lang_creature['armorer']}</option>
     97                <option value=\"8192\">{$lang_creature['taxi']}</option>
     98                <option value=\"16384\">{$lang_creature['spirit_healer']}</option>
     99                <option value=\"65536\">{$lang_creature['inn_keeper']}</option>
     100                <option value=\"131072\">{$lang_creature['banker']}</option>
     101                <option value=\"262144\">{$lang_creature['retitioner']}</option>
     102                <option value=\"524288\">{$lang_creature['tabard_vendor']}</option>
     103                <option value=\"1048576\">{$lang_creature['battlemaster']}</option>
     104                <option value=\"2097152\">{$lang_creature['auctioneer']}</option>
     105                <option value=\"4194304\">{$lang_creature['stable_master']}</option>
     106                <option value=\"268435456\">{$lang_creature['guard']}</option>
    105107                </select></td>
    106108          <td>{$lang_creature['type']}:</td>
     
    171173$output .= "</td></tr>
    172174        <tr>
    173                 <td colspan=\"6\">-----------------------------------------------------------------------------------------------------------------------------------------------</td>
     175                <td colspan=\"6\"><hr></td>
    174176        </tr>
    175177        <tr>
     
    227229 if(isset($health)) $where .= "AND minhealth <= $health AND maxhealth >= $health ";
    228230 if(isset($faction_A)) $where .= "AND faction_A = '$faction_A' ";
    229  if(isset($faction_H)) $where .= "AND faction_B = '$faction_A' ";
     231 if(isset($faction_H)) $where .= "AND faction_H = '$faction_H' ";
    230232 if(isset($lootid)) $where .= "AND lootid = '$lootid' ";
    231233 if(isset($ScriptName)) $where .= "AND ScriptName LIKE '%$ScriptName%' ";
     
    382384                <option value=\"1\">1: {$lang_creature['gossip']}</option>
    383385                <option value=\"2\">2: {$lang_creature['quest_giver']}</option>
    384                 <option value=\"4\">4: {$lang_creature['vendor']}</option>
    385                 <option value=\"8\">8: {$lang_creature['taxi']}</option>
    386386                <option value=\"16\">16: {$lang_creature['trainer']}</option>
    387                 <option value=\"32\">32: {$lang_creature['spirit_healer']}</option>
    388                 <option value=\"64\">64: {$lang_creature['guard']}</option>
    389                 <option value=\"128\">128: {$lang_creature['inn_keeper']}</option>
    390                 <option value=\"256\">256: {$lang_creature['banker']}</option>
    391                 <option value=\"512\">512: {$lang_creature['retitioner']}</option>
    392                 <option value=\"1024\">1024: {$lang_creature['tabard_vendor']}</option>
    393                 <option value=\"2048\">2048: {$lang_creature['battlemaster']}</option>
    394                 <option value=\"4096\">4096: {$lang_creature['auctioneer']}</option>
    395                 <option value=\"8192\">8192: {$lang_creature['stable_master']}</option>
    396                 <option value=\"16384\">16384: {$lang_creature['armorer']}</option>
     387                <option value=\"128\">128: {$lang_creature['vendor']}</option>
     388                <option value=\"4096\">4096: {$lang_creature['armorer']}</option>
     389                <option value=\"8192\">8192: {$lang_creature['taxi']}</option>
     390                <option value=\"16384\">16384: {$lang_creature['spirit_healer']}</option>
     391                <option value=\"65536\">65536: {$lang_creature['inn_keeper']}</option>
     392                <option value=\"131072\">131072: {$lang_creature['banker']}</option>
     393                <option value=\"262144\">262144: {$lang_creature['retitioner']}</option>
     394                <option value=\"524288\">524288: {$lang_creature['tabard_vendor']}</option>
     395                <option value=\"1048576\">1048576: {$lang_creature['battlemaster']}</option>
     396                <option value=\"2097152\">2097152: {$lang_creature['auctioneer']}</option>
     397                <option value=\"4194304\">4194304: {$lang_creature['stable_master']}</option>
     398                <option value=\"268435456\">268435456: {$lang_creature['guard']}</option>
    397399           </select></td>
    398400
     
    641643           </select></td>
    642644
    643  <td>".makeinfocell($lang_creature['civilian'],$lang_creature['civilian_desc'])."</td>
    644  <td><input type=\"checkbox\" name=\"civilian\" value=\"1\" /></td>
     645 <td>".makeinfocell($lang_creature['flags_extra'],$lang_creature['flags_extra_desc'])."</td>
     646 <td><input type=\"text\" name=\"flags_extra\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
    645647</tr>
    646648<tr>
     
    690692 $entry = $sql->quote_smart($_GET['entry']);
    691693 $deplang = get_lang_id();
    692  $result = $sql->query("SELECT `creature_template`.`entry`,`modelid_A`,`modelid_A2`,`modelid_H`,`modelid_H2`, IFNULL(".($deplang<>0?"name_loc$deplang":"NULL").",`name`) as name,`subname`,`minlevel`,`maxlevel`,`minhealth`,`maxhealth`,`minmana`,`maxmana`,`armor`,`faction_A`,`faction_H`,`npcflag`,`speed`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,`baseattacktime`,`rangeattacktime`,`flags`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`class`,`race`,`minrangedmg`,`maxrangedmg`,`rangedattackpower`,`type`,`civilian`,`flag1`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`RacialLeader`,`RegenHealth`,`equipment_id`,`ScriptName` FROM creature_template LEFT JOIN locales_creature ON creature_template.entry = locales_creature.entry WHERE creature_template.entry = '$entry'");
    693 
     694 $result = $sql->query("SELECT `creature_template`.`entry`,`modelid_A`,`modelid_A2`,`modelid_H`,`modelid_H2`, IFNULL(".($deplang<>0?"name_loc$deplang":"NULL").",`name`) as name,`subname`,`minlevel`,`maxlevel`,`minhealth`,`maxhealth`,`minmana`,`maxmana`,`armor`,`faction_A`,`faction_H`,`npcflag`,`speed`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,`baseattacktime`,`rangeattacktime`,`flags`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`class`,`race`,`minrangedmg`,`maxrangedmg`,`rangedattackpower`,`type`,`flags_extra`,`flag1`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`RacialLeader`,`RegenHealth`,`equipment_id`,`ScriptName` FROM creature_template LEFT JOIN locales_creature ON creature_template.entry = locales_creature.entry WHERE creature_template.entry = '$entry'");
    694695
    695696 if ($mob = $sql->fetch_assoc($result)){
     
    729730                $output .= "<li><a href=\"#\" onclick=\"return showPane('pane8', this)\">{$lang_creature['trainer']}</a></li>";
    730731                }
     732        }
     733        if ($mob['npcflag'] & 128) {
     734                $vendor_flag = 1;
     735                $output .= "<li><a href=\"#\" onclick=\"return showPane('pane7', this)\">{$lang_creature['vendor']}</a></li>";
     736        }
     737        if ($mob['npcflag'] & 16384) {
     738                $vendor_flag = 1;
     739                $output .= "<li><a href=\"#\" onclick=\"return showPane('pane7', this)\">{$lang_creature['vendor']}</a></li>";
    731740        }
    732741if ($mob['lootid']) {
     
    836845 unset($type);
    837846
    838 $npcflag = array(0 => "", 1 => "", 2 => "", 4 => "", 8 => "", 16 => "", 32 => "", 64 => "", 128 => "",
    839  256 => "", 512 => "", 1024 => "", 2048 => "", 4096 => "", 8192 => "", 16384 => "");
     847$npcflag = array(0 => "", 1 => "", 2 => "", 16 => "", 128 => "", 4096 => "", 8192 => "", 16384 => "", 65536 => "",
     848 131072 => "", 262144 => "", 524288 => "", 1048576 => "", 2097152 => "", 4194304 => "", 268435456 => "");
    840849
    841850 if($mob['npcflag'] == 0) $npcflag[0] = " selected=\"selected\" ";
     
    843852        if ($mob['npcflag'] & 1) $npcflag[1] = " selected=\"selected\" ";
    844853        if ($mob['npcflag'] & 2) $npcflag[2] = " selected=\"selected\" ";
    845         if ($mob['npcflag'] & 4) $npcflag[4] = " selected=\"selected\" ";
    846         if ($mob['npcflag'] & 8) $npcflag[8] = " selected=\"selected\" ";
    847854        if ($mob['npcflag'] & 16) $npcflag[16] = " selected=\"selected\" ";
    848         if ($mob['npcflag'] & 32) $npcflag[32] = " selected=\"selected\" ";
    849         if ($mob['npcflag'] & 64) $npcflag[64] = " selected=\"selected\" ";
    850855        if ($mob['npcflag'] & 128) $npcflag[128] = " selected=\"selected\" ";
    851         if ($mob['npcflag'] & 256) $npcflag[256] = " selected=\"selected\" ";
    852         if ($mob['npcflag'] & 512) $npcflag[512] = " selected=\"selected\" ";
    853         if ($mob['npcflag'] & 1024) $npcflag[1024] = " selected=\"selected\" ";
    854         if ($mob['npcflag'] & 2048) $npcflag[2048] = " selected=\"selected\" ";
    855856        if ($mob['npcflag'] & 4096) $npcflag[4096] = " selected=\"selected\" ";
    856857        if ($mob['npcflag'] & 8192) $npcflag[8192] = " selected=\"selected\" ";
    857858        if ($mob['npcflag'] & 16384) $npcflag[16384] = " selected=\"selected\" ";
     859        if ($mob['npcflag'] & 65536) $npcflag[65536] = " selected=\"selected\" ";
     860        if ($mob['npcflag'] & 131072) $npcflag[131072] = " selected=\"selected\" ";
     861        if ($mob['npcflag'] & 262144) $npcflag[262144] = " selected=\"selected\" ";
     862        if ($mob['npcflag'] & 524288) $npcflag[524288] = " selected=\"selected\" ";
     863        if ($mob['npcflag'] & 1048576) $npcflag[1048576] = " selected=\"selected\" ";
     864        if ($mob['npcflag'] & 2097152) $npcflag[2097152] = " selected=\"selected\" ";
     865        if ($mob['npcflag'] & 4194304) $npcflag[4194304] = " selected=\"selected\" ";
     866        if ($mob['npcflag'] & 268435456) $npcflag[268435456] = " selected=\"selected\" ";
    858867  }
    859868
     
    12021211  unset($InhabitType);
    12031212
    1204  if ($mob['civilian']) $civilian = "checked";
    1205         else $civilian = "";
    1206 
    1207 $output .= "<td>".makeinfocell($lang_creature['civilian'],$lang_creature['civilian_desc'])."</td>
    1208  <td><input type=\"checkbox\" name=\"civilian\" value=\"1\" $civilian /></td>
     1213$output .= "<td>".makeinfocell($lang_creature['flags_extra'],$lang_creature['flags_extra_desc'])."</td>
     1214     <td><input type=\"text\" name=\"flags_extra\" size=\"8\" maxlength=\"11\" value=\"{$mob['flags_extra']}\" /></td>
    12091215</tr>
    12101216<tr>
     
    12321238        $row_flag = 0;
    12331239        $output .= "<table class=\"hidden\" align=\"center\"><tr>";
    1234         $result1 = $sql->query("SELECT item,ChanceOrRef,QuestChanceOrGroup,mincount,maxcount,freeforall, lootcondition, condition_value1,condition_value2 FROM creature_loot_template WHERE entry = {$mob['lootid']} ORDER BY ChanceOrRef DESC");
     1240        $result1 = $sql->query("SELECT item,ChanceOrQuestChance,`groupid`,mincountOrRef,maxcount, lootcondition, condition_value1,condition_value2 FROM creature_loot_template WHERE entry = {$mob['lootid']} ORDER BY ChanceOrQuestChance DESC");
    12351241        while ($item = $sql->fetch_row($result1)){
    12361242                $cel_counter++;
    1237                 $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['freeforall']}: $item[5]<br />{$lang_creature['lootcondition']}: $item[6]<br />{$lang_creature['condition_value1']}: $item[7]<br />{$lang_creature['condition_value2']}: $item[8]";
     1243                $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['lootcondition']}: $item[5]<br />{$lang_creature['condition_value1']}: $item[6]<br />{$lang_creature['condition_value2']}: $item[7]";
    12381244                $output .= "<td>";
    12391245                $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip");
    12401246                $output .= "<br /><input type=\"checkbox\" name=\"del_loot_items[]\" value=\"$item[0]\" /></td>";
    12411247
    1242                 if ($cel_counter >= 16) {
     1248                if ($cel_counter >= 14) {
    12431249                        $cel_counter = 0;
    12441250                        $output .= "</tr><tr>";
     
    12551261        <td><input type=\"text\" name=\"item\" size=\"8\" maxlength=\"10\" value=\"\" /></td>
    12561262<td>".makeinfocell($lang_creature['loot_drop_chance'],$lang_creature['loot_drop_chance_desc'])."</td>
    1257         <td><input type=\"text\" name=\"ChanceOrRef\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
     1263        <td><input type=\"text\" name=\"ChanceOrQuestChance\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
    12581264<td>".makeinfocell($lang_creature['loot_quest_drop_chance'],$lang_creature['loot_quest_drop_chance_desc'])."</td>
    1259         <td><input type=\"text\" name=\"QuestChanceOrGroup\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
     1265        <td><input type=\"text\" name=\"groupid\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
    12601266</tr>
    12611267<tr>
    12621268<td>".makeinfocell($lang_creature['min_count'],$lang_creature['min_count_desc'])."</td>
    1263         <td><input type=\"text\" name=\"mincount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
     1269        <td><input type=\"text\" name=\"mincountOrRef\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    12641270<td>".makeinfocell($lang_creature['max_count'],$lang_creature['max_count_desc'])."</td>
    12651271        <td><input type=\"text\" name=\"maxcount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    1266 <td>".makeinfocell($lang_creature['freeforall'],$lang_creature['freeforall_desc'])."</td>
    1267         <td><input type=\"text\" name=\"freeforall\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    12681272</tr>
    12691273<tr>
     
    13191323$output .= "<div id=\"pane7\">
    13201324        <br /><br /><table class=\"lined\" style=\"width: 720px;\">
    1321         <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['sells']}:</td></tr>
    1322         <tr><td colspan=\"6\">";
     1325        <tr class=\"large_bold\"><td colspan=\"8\" class=\"hidden\" align=\"left\">{$lang_creature['sells']}:</td></tr>
     1326        <tr><td colspan=\"8\">";
    13231327
    13241328        $cel_counter = 0;
    13251329        $row_flag = 0;
    13261330        $output .= "<table class=\"hidden\" align=\"center\"><tr>";
    1327         $result1 = $sql->query("SELECT item, maxcount, incrtime FROM npc_vendor WHERE entry = {$mob['entry']}");
     1331        $result1 = $sql->query("SELECT item, maxcount, incrtime, ExtendedCost FROM npc_vendor WHERE entry = {$mob['entry']}");
    13281332        while ($item = $sql->fetch_row($result1)){
    13291333                $cel_counter++;
     
    13351339                $output .= "<br /><input type=\"checkbox\" name=\"del_vendor_item[]\" value=\"$item[0]\" /></td>";
    13361340
    1337                 if ($cel_counter >= 16) {
     1341                if ($cel_counter >= 14) {
    13381342                        $cel_counter = 0;
    13391343                        $output .= "</tr><tr>";
     
    13451349        $output .= "</td></tr></table>
    13461350 </td></tr>
    1347 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['add_items_to_vendor']}:</td></tr>
     1351<tr class=\"large_bold\"><td colspan=\"8\" class=\"hidden\" align=\"left\">{$lang_creature['add_items_to_vendor']}:</td></tr>
    13481352<tr>
    13491353<td>".makeinfocell($lang_creature['vendor_item_id'],$lang_creature['vendor_item_id_desc'])."</td>
     
    13521356        <td><input type=\"text\" name=\"vendor_maxcount\" size=\"8\" maxlength=\"3\" value=\"0\" /></td>
    13531357<td>".makeinfocell($lang_creature['vendor_incrtime'],$lang_creature['vendor_incrtime_desc'])."</td>
    1354         <td><input type=\"text\" name=\"vendor_incrtime\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
     1358  <td><input type=\"text\" name=\"vendor_incrtime\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
     1359<td>".makeinfocell($lang_creature['vendor_extended_cost'],$lang_creature['vendor_extended_cost_desc'])."</td>
     1360  <td><input type=\"text\" name=\"vendor_extended_cost\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
    13551361</tr>
    13561362</table><br />{$lang_creature['check_to_delete']}<br /><br />
     
    14141420        $row_flag = 0;
    14151421        $output .= "<table class=\"hidden\" align=\"center\"><tr>";
    1416         $result1 = $sql->query("SELECT item,ChanceOrRef,QuestChanceOrGroup,mincount,maxcount,freeforall, lootcondition, condition_value1, condition_value2 FROM skinning_loot_template WHERE entry = {$mob['skinloot']} ORDER BY ChanceOrRef DESC");
     1422        $result1 = $sql->query("SELECT item,ChanceOrQuestChance,`groupid`,mincountOrRef,maxcount, lootcondition, condition_value1, condition_value2 FROM skinning_loot_template WHERE entry = {$mob['skinloot']} ORDER BY ChanceOrQuestChance DESC");
    14171423        while ($item = $sql->fetch_row($result1)){
    14181424                $cel_counter++;
    1419                 $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['freeforall']}: $item[5]<br />{$lang_creature['lootcondition']}: $item[6]<br />{$lang_creature['condition_value1']}: $item[7]<br />{$lang_creature['condition_value2']}: $item[8]";
     1425                $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['lootcondition']}: $item[5]<br />{$lang_creature['condition_value1']}: $item[6]<br />{$lang_creature['condition_value2']}: $item[7]";
    14201426                $output .= "<td>";
    14211427                $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip");
     
    14371443        <td><input type=\"text\" name=\"skin_item\" size=\"8\" maxlength=\"10\" value=\"\" /></td>
    14381444<td>".makeinfocell($lang_creature['loot_drop_chance'],$lang_creature['loot_drop_chance_desc'])."</td>
    1439         <td><input type=\"text\" name=\"skin_ChanceOrRef\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
     1445        <td><input type=\"text\" name=\"skin_ChanceOrQuestChance\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
    14401446<td>".makeinfocell($lang_creature['loot_quest_drop_chance'],$lang_creature['loot_quest_drop_chance_desc'])."</td>
    1441         <td><input type=\"text\" name=\"skin_QuestChanceOrGroup\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
     1447        <td><input type=\"text\" name=\"skin_groupid\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
    14421448</tr>
    14431449<tr>
    14441450<td>".makeinfocell($lang_creature['min_count'],$lang_creature['min_count_desc'])."</td>
    1445         <td><input type=\"text\" name=\"skin_mincount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
     1451        <td><input type=\"text\" name=\"skin_mincountOrRef\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    14461452<td>".makeinfocell($lang_creature['max_count'],$lang_creature['max_count_desc'])."</td>
    14471453        <td><input type=\"text\" name=\"skin_maxcount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    1448 <td>".makeinfocell($lang_creature['freeforall'],$lang_creature['freeforall_desc'])."</td>
    1449         <td><input type=\"text\" name=\"skin_freeforall\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    14501454</tr>
    14511455<tr>
     
    14711475        $row_flag = 0;
    14721476        $output .= "<table class=\"hidden\" align=\"center\"><tr>";
    1473         $result1 = $sql->query("SELECT item,ChanceOrRef,QuestChanceOrGroup,mincount,maxcount,freeforall, lootcondition, condition_value1, condition_value2 FROM pickpocketing_loot_template WHERE entry = {$mob['pickpocketloot']} ORDER BY ChanceOrRef DESC");
     1477        $result1 = $sql->query("SELECT item,ChanceOrQuestChance,`groupid`,mincountOrRef,maxcount, lootcondition, condition_value1, condition_value2 FROM pickpocketing_loot_template WHERE entry = {$mob['pickpocketloot']} ORDER BY ChanceOrQuestChance DESC");
    14741478        while ($item = $sql->fetch_row($result1)){
    14751479                $cel_counter++;
    1476                 $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['freeforall']}: $item[5]<br />{$lang_creature['lootcondition']}: $item[6]<br />{$lang_creature['condition_value1']}: $item[7]<br />{$lang_creature['condition_value2']}: $item[8]";
     1480                $tooltip = get_item_name($item[0])." ($item[0])<br />{$lang_creature['drop_chance']}: $item[1]%<br />{$lang_creature['quest_drop_chance']}: $item[2]%<br />{$lang_creature['drop_chance']}: $item[3]-$item[4]<br />{$lang_creature['lootcondition']}: $item[5]<br />{$lang_creature['condition_value1']}: $item[6]<br />{$lang_creature['condition_value2']}: $item[7]";
    14771481                $output .= "<td>";
    14781482                $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip");
     
    14941498        <td><input type=\"text\" name=\"pp_item\" size=\"8\" maxlength=\"10\" value=\"\" /></td>
    14951499<td>".makeinfocell($lang_creature['loot_drop_chance'],$lang_creature['loot_drop_chance_desc'])."</td>
    1496         <td><input type=\"text\" name=\"pp_ChanceOrRef\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
     1500        <td><input type=\"text\" name=\"pp_ChanceOrQuestChance\" size=\"8\" maxlength=\"11\" value=\"0\" /></td>
    14971501<td>".makeinfocell($lang_creature['loot_quest_drop_chance'],$lang_creature['loot_quest_drop_chance_desc'])."</td>
    1498         <td><input type=\"text\" name=\"pp_QuestChanceOrGroup\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
     1502        <td><input type=\"text\" name=\"pp_groupid\" size=\"8\" maxlength=\"10\" value=\"0\" /></td>
    14991503</tr>
    15001504<tr>
    15011505<td>".makeinfocell($lang_creature['min_count'],$lang_creature['min_count_desc'])."</td>
    1502         <td><input type=\"text\" name=\"pp_mincount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
     1506        <td><input type=\"text\" name=\"pp_mincountOrRef\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    15031507<td>".makeinfocell($lang_creature['max_count'],$lang_creature['max_count_desc'])."</td>
    15041508        <td><input type=\"text\" name=\"pp_maxcount\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    1505 <td>".makeinfocell($lang_creature['freeforall'],$lang_creature['freeforall_desc'])."</td>
    1506         <td><input type=\"text\" name=\"pp_freeforall\" size=\"8\" maxlength=\"3\" value=\"1\" /></td>
    15071509</tr>
    15081510<tr>
     
    16091611 if (isset($_POST['family']) && $_POST['family'] != '') $family = $sql->quote_smart($_POST['family']);
    16101612        else $family = 0;
    1611  //if (isset($_POST['bounding_radius']) && $_POST['bounding_radius'] != '') $bounding_radius = $sql->quote_smart($_POST['bounding_radius']);
    1612  //     else $bounding_radius = 0;
    16131613 if (isset($_POST['trainer_type']) && $_POST['trainer_type'] != '') $trainer_type = $sql->quote_smart($_POST['trainer_type']);
    16141614        else $trainer_type = 0;
     
    16291629 if (isset($_POST['type']) && $_POST['type'] != '') $type = $sql->quote_smart($_POST['type']);
    16301630        else $type = 0;
    1631  if (isset($_POST['civilian']) && $_POST['civilian'] != '') $civilian = $sql->quote_smart($_POST['civilian']);
    1632         else $civilian = 0;
     1631 if (isset($_POST['flags_extra']) && $_POST['flags_extra'] != '') $flags_extra = $sql->quote_smart($_POST['flags_extra']);
     1632     else $flags_extra = 0;
    16331633 if (isset($_POST['flag1']) && $_POST['flag1'] != '') $flag1 = $sql->quote_smart($_POST['flag1']);
    16341634        else $flag1 = 0;
    1635 // if (isset($_POST['equipmodel1']) && $_POST['equipmodel1'] != '') $equipmodel1 = $sql->quote_smart($_POST['equipmodel1']);
    1636 //      else $equipmodel1 = 0;
    1637 // if (isset($_POST['equipmodel2']) && $_POST['equipmodel2'] != '') $equipmodel2 = $sql->quote_smart($_POST['equipmodel2']);
    1638 //      else $equipmodel2 = 0;
    1639 // if (isset($_POST['equipmodel3']) && $_POST['equipmodel3'] != '') $equipmodel3 = $sql->quote_smart($_POST['equipmodel3']);
    1640 //      else $equipmodel3 = 0;
    1641 // if (isset($_POST['equipinfo1']) && $_POST['equipinfo1'] != '') $equipinfo1 = $sql->quote_smart($_POST['equipinfo1']);
    1642 //      else $equipinfo1 = 0;
    1643 // if (isset($_POST['equipinfo2']) && $_POST['equipinfo2'] != '') $equipinfo2 = $sql->quote_smart($_POST['equipinfo2']);
    1644 //      else $equipinfo2 = 0;
    1645 // if (isset($_POST['equipinfo3']) && $_POST['equipinfo3'] != '') $equipinfo3 = $sql->quote_smart($_POST['equipinfo3']);
    1646 //      else $equipinfo3 = 0;
    1647 // if (isset($_POST['equipslot1']) && $_POST['equipslot1'] != '') $equipslot1 = $sql->quote_smart($_POST['equipslot1']);
    1648 //      else $equipslot1 = 0;
    1649 // if (isset($_POST['equipslot2']) && $_POST['equipslot2'] != '') $equipslot2 = $sql->quote_smart($_POST['equipslot2']);
    1650 //      else $equipslot2 = 0;
    1651 // if (isset($_POST['equipslot3']) && $_POST['equipslot3'] != '') $equipslot3 = $sql->quote_smart($_POST['equipslot3']);
    1652 //      else $equipslot3 = 0;
    16531635 if (isset($_POST['lootid']) && $_POST['lootid'] != '') $lootid = $sql->quote_smart($_POST['lootid']);
    16541636         else $lootid = 0;
     
    16921674        else $RacialLeader = 0;
    16931675
    1694         if (isset($_POST['ChanceOrRef']) && $_POST['ChanceOrRef'] != '') $ChanceOrRef = $sql->quote_smart($_POST['ChanceOrRef']);
    1695                 else $ChanceOrRef = 0;
    1696         if (isset($_POST['QuestChanceOrGroup']) && $_POST['QuestChanceOrGroup'] != '') $QuestChanceOrGroup = $sql->quote_smart($_POST['QuestChanceOrGroup']);
    1697                 else $QuestChanceOrGroup = 0;
    1698         if (isset($_POST['mincount']) && $_POST['mincount'] != '') $mincount = $sql->quote_smart($_POST['mincount']);
    1699                 else $mincount = 0;
     1676        if (isset($_POST['ChanceOrQuestChance']) && $_POST['ChanceOrQuestChance'] != '') $ChanceOrQuestChance = $sql->quote_smart($_POST['ChanceOrQuestChance']);
     1677                else $ChanceOrQuestChance = 0;
     1678        if (isset($_POST['groupid']) && $_POST['groupid'] != '') $groupid = $sql->quote_smart($_POST['groupid']);
     1679                else $groupid = 0;
     1680        if (isset($_POST['mincountOrRef']) && $_POST['mincountOrRef'] != '') $mincountOrRef = $sql->quote_smart($_POST['mincountOrRef']);
     1681                else $mincountOrRef = 0;
    17001682        if (isset($_POST['maxcount']) && $_POST['maxcount'] != '') $maxcount = $sql->quote_smart($_POST['maxcount']);
    17011683                else $maxcount = 0;
    17021684
    1703         if (isset($_POST['freeforall']) && $_POST['freeforall'] != '') $freeforall = $sql->quote_smart($_POST['freeforall']);
    1704                 else $freeforall = 0;
    17051685        if (isset($_POST['lootcondition']) && $_POST['lootcondition'] != '') $lootcondition = $sql->quote_smart($_POST['lootcondition']);
    17061686                else $lootcondition = 0;
     
    17291709        if (isset($_POST['vendor_maxcount']) && $_POST['vendor_maxcount'] != '') $vendor_maxcount = $sql->quote_smart($_POST['vendor_maxcount']);
    17301710                else $vendor_maxcount = 0;
    1731         if (isset($_POST['vendor_incrtime']) && $_POST['vendor_incrtime'] != '') $vendor_incrtime = $sql->quote_smart($_POST['vendor_incrtime']);
    1732                 else $vendor_incrtime = 0;
    1733 
    1734         if (isset($_POST['skin_ChanceOrRef']) && $_POST['skin_ChanceOrRef'] != '') $skin_ChanceOrRef = $sql->quote_smart($_POST['skin_ChanceOrRef']);
    1735                 else $skin_ChanceOrRef = 0;
    1736         if (isset($_POST['skin_QuestChanceOrGroup']) && $_POST['skin_QuestChanceOrGroup'] != '') $skin_QuestChanceOrGroup = $sql->quote_smart($_POST['skin_QuestChanceOrGroup']);
    1737                 else $skin_QuestChanceOrGroup = 0;
    1738         if (isset($_POST['skin_mincount']) && $_POST['skin_mincount'] != '') $skin_mincount = $sql->quote_smart($_POST['skin_mincount']);
    1739                 else $skin_mincount = 0;
     1711  if (isset($_POST['vendor_incrtime']) && $_POST['vendor_incrtime'] != '') $vendor_incrtime = $sql->quote_smart($_POST['vendor_incrtime']);
     1712    else $vendor_incrtime = 0;
     1713  if (isset($_POST['vendor_extended_cost']) && $_POST['vendor_extended_cost'] != '') $vendor_extended_cost = $sql->quote_smart($_POST['vendor_extended_cost']);
     1714    else $vendor_extended_cost = 0;
     1715
     1716        if (isset($_POST['skin_ChanceOrQuestChance']) && $_POST['skin_ChanceOrQuestChance'] != '') $skin_ChanceOrQuestChance = $sql->quote_smart($_POST['skin_ChanceOrQuestChance']);
     1717                else $skin_ChanceOrQuestChance = 0;
     1718        if (isset($_POST['skin_groupid']) && $_POST['skin_groupid'] != '') $skin_groupid = $sql->quote_smart($_POST['skin_groupid']);
     1719                else $skin_groupid = 0;
     1720        if (isset($_POST['skin_mincountOrRef']) && $_POST['skin_mincountOrRef'] != '') $skin_mincountOrRef = $sql->quote_smart($_POST['skin_mincountOrRef']);
     1721                else $skin_mincountOrRef = 0;
    17401722        if (isset($_POST['skin_maxcount']) && $_POST['skin_maxcount'] != '') $skin_maxcount = $sql->quote_smart($_POST['skin_maxcount']);
    17411723                else $skin_maxcount = 0;
    17421724
    1743         if (isset($_POST['skin_freeforall']) && $_POST['skin_freeforall'] != '') $skin_freeforall = $sql->quote_smart($_POST['skin_freeforall']);
    1744                 else $skin_freeforall = 0;
    17451725        if (isset($_POST['skin_lootcondition']) && $_POST['skin_lootcondition'] != '') $skin_lootcondition = $sql->quote_smart($_POST['skin_lootcondition']);
    17461726                else $skin_lootcondition = 0;
     
    17551735                else $del_skin_items = NULL;
    17561736
    1757         if (isset($_POST['pp_ChanceOrRef']) && $_POST['pp_ChanceOrRef'] != '') $pp_ChanceOrRef = $sql->quote_smart($_POST['pp_ChanceOrRef']);
    1758                 else $pp_ChanceOrRef = 0;
    1759         if (isset($_POST['pp_QuestChanceOrGroup']) && $_POST['pp_QuestChanceOrGroup'] != '') $pp_QuestChanceOrGroup = $sql->quote_smart($_POST['pp_QuestChanceOrGroup']);
    1760                 else $pp_QuestChanceOrGroup = 0;
    1761         if (isset($_POST['pp_mincount']) && $_POST['pp_mincount'] != '') $pp_mincount = $sql->quote_smart($_POST['pp_mincount']);
    1762                 else $pp_mincount = 0;
     1737        if (isset($_POST['pp_ChanceOrQuestChance']) && $_POST['pp_ChanceOrQuestChance'] != '') $pp_ChanceOrQuestChance = $sql->quote_smart($_POST['pp_ChanceOrQuestChance']);
     1738                else $pp_ChanceOrQuestChance = 0;
     1739        if (isset($_POST['pp_groupid']) && $_POST['pp_groupid'] != '') $pp_groupid = $sql->quote_smart($_POST['pp_groupid']);
     1740                else $pp_groupid = 0;
     1741        if (isset($_POST['pp_mincountOrRef']) && $_POST['pp_mincountOrRef'] != '') $pp_mincountOrRef = $sql->quote_smart($_POST['pp_mincountOrRef']);
     1742                else $pp_mincountOrRef = 0;
    17631743        if (isset($_POST['pp_maxcount']) && $_POST['pp_maxcount'] != '') $pp_maxcount = $sql->quote_smart($_POST['pp_maxcount']);
    17641744                else $pp_maxcount = 0;
    17651745
    1766         if (isset($_POST['pp_freeforall']) && $_POST['pp_freeforall'] != '') $pp_freeforall = $sql->quote_smart($_POST['pp_freeforall']);
    1767                 else $pp_freeforall = 0;
    17681746        if (isset($_POST['pp_lootcondition']) && $_POST['pp_lootcondition'] != '') $pp_lootcondition = $sql->quote_smart($_POST['pp_lootcondition']);
    17691747                else $pp_lootcondition = 0;
     
    17941772                if ($npcflag[$t] & 1) $tmp = $tmp + 1;
    17951773                if ($npcflag[$t] & 2) $tmp = $tmp + 2;
    1796                 if ($npcflag[$t] & 4) $tmp = $tmp + 4;
    1797                 if ($npcflag[$t] & 8) $tmp = $tmp + 8;
    17981774                if ($npcflag[$t] & 16) $tmp = $tmp + 16;
    1799                 if ($npcflag[$t] & 32) $tmp = $tmp + 32;
    1800                 if ($npcflag[$t] & 64) $tmp = $tmp + 64;
    18011775                if ($npcflag[$t] & 128) $tmp = $tmp + 128;
    1802                 if ($npcflag[$t] & 256) $tmp = $tmp + 256;
    1803                 if ($npcflag[$t] & 512) $tmp = $tmp + 512;
    1804                 if ($npcflag[$t] & 1024) $tmp = $tmp + 1024;
    1805                 if ($npcflag[$t] & 2048) $tmp = $tmp + 2048;
    18061776                if ($npcflag[$t] & 4096) $tmp = $tmp + 4096;
    18071777                if ($npcflag[$t] & 8192) $tmp = $tmp + 8192;
    18081778                if ($npcflag[$t] & 16384) $tmp = $tmp + 16384;
     1779                if ($npcflag[$t] & 65536) $tmp = $tmp + 65536;
     1780                if ($npcflag[$t] & 131072) $tmp = $tmp + 131072;
     1781                if ($npcflag[$t] & 262144) $tmp = $tmp + 262144;
     1782                if ($npcflag[$t] & 524288) $tmp = $tmp + 524288;
     1783                if ($npcflag[$t] & 1048576) $tmp = $tmp + 1048576;
     1784                if ($npcflag[$t] & 2097152) $tmp = $tmp + 2097152;
     1785                if ($npcflag[$t] & 4194304) $tmp = $tmp + 4194304;
     1786                if ($npcflag[$t] & 268435456) $tmp = $tmp + 268435456;
    18091787                }
    18101788        $npcflag = ($tmp) ? $tmp : 0;
     
    18151793        maxdmg, dmgschool, attackpower, baseattacktime, rangeattacktime, flags, dynamicflags, family,
    18161794        trainer_type, trainer_spell, class, race, minrangedmg, maxrangedmg, rangedattackpower,
    1817         type, civilian, flag1, lootid, pickpocketloot, skinloot, resistance1,
     1795    type, flags_extra, flag1, lootid, pickpocketloot, skinloot, resistance1,
    18181796        resistance2, resistance3, resistance4, resistance5, resistance6, spell1, spell2, spell3, spell4,
    18191797        mingold, maxgold, AIName, MovementType, InhabitType, RacialLeader, ScriptName) VALUES ( '$entry', '$modelid_A', '$modelid_H', '$name',
     
    18211799        '$speed', '$rank', '$mindmg', '$maxdmg', '$dmgschool', '$attackpower', '$baseattacktime', '$rangeattacktime', '$flags',
    18221800        '$dynamicflags', '$family', '$trainer_type', '$trainer_spell', '$class', '$race',
    1823         '$minrangedmg', '$maxrangedmg', '$rangedattackpower', '$type', '$civilian', '$flag1',
     1801    '$minrangedmg', '$maxrangedmg', '$rangedattackpower', '$type', '$flags_extra', '$flag1',
    18241802        '$lootid', '$pickpocketloot', '$skinloot', '$resistance1', '$resistance2',
    18251803        '$resistance3', '$resistance4', '$resistance5', '$resistance6', '$spell1', '$spell2', '$spell3', '$spell4',
    18261804        '$mingold', '$maxgold', '$AIName', '$MovementType', '$InhabitType', '$RacialLeader', '$ScriptName' )";
     1805       
     1806         redirect("creature.php?error=7");
    18271807
    18281808 } elseif ($_POST['opp_type'] == "edit"){
     
    18301810        $sql_query = "UPDATE creature_template SET  ";
    18311811
    1832         $result = $sql->query("SELECT `creature_template`.`entry`,`modelid_A`,`modelid_A2`,`modelid_H`,`modelid_H2`, IFNULL(".($deplang<>0?"name_loc$deplang":"NULL").",`name`) as name,`subname`,`minlevel`,`maxlevel`,`minhealth`,`maxhealth`,`minmana`,`maxmana`,`armor`,`faction_A`,`faction_H`,`npcflag`,`speed`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,`baseattacktime`,`rangeattacktime`,`flags`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`class`,`race`,`minrangedmg`,`maxrangedmg`,`rangedattackpower`,`type`,`civilian`,`flag1`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`RacialLeader`,`RegenHealth`,`equipment_id`,`ScriptName` FROM creature_template LEFT JOIN locales_creature ON creature_template.entry = locales_creature.entry WHERE creature_template.entry = '$entry'");
     1812    $result = $sql->query("SELECT `creature_template`.`entry`,`modelid_A`,`modelid_A2`,`modelid_H`,`modelid_H2`, IFNULL(".($deplang<>0?"name_loc$deplang":"NULL").",`name`) as name,`subname`,`minlevel`,`maxlevel`,`minhealth`,`maxhealth`,`minmana`,`maxmana`,`armor`,`faction_A`,`faction_H`,`npcflag`,`speed`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,`baseattacktime`,`rangeattacktime`,`flags`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`class`,`race`,`minrangedmg`,`maxrangedmg`,`rangedattackpower`,`type`,`flags_extra`,`flag1`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`RacialLeader`,`RegenHealth`,`equipment_id`,`ScriptName` FROM creature_template LEFT JOIN locales_creature ON creature_template.entry = locales_creature.entry WHERE creature_template.entry = '$entry'");
    18331813        if ($mob_templ = $sql->fetch_assoc($result)){
    18341814                if ($mob_templ['modelid_A'] != $modelid_A) $sql_query .= "modelid_A='$modelid_A',";
     
    18571837                if ($mob_templ['dynamicflags'] != $dynamicflags) $sql_query .= "dynamicflags='$dynamicflags',";
    18581838                if ($mob_templ['family'] != $family) $sql_query .= "family='$family',";
    1859                 //if ($mob_templ['bounding_radius'] != $bounding_radius) $sql_query .= "bounding_radius='$bounding_radius',";
    18601839                if ($mob_templ['trainer_type'] != $trainer_type) $sql_query .= "trainer_type='$trainer_type',";
    18611840                if ($mob_templ['trainer_spell'] != $trainer_spell) $sql_query .= "trainer_spell='$trainer_spell',";
     
    18661845                if ($mob_templ['rangedattackpower'] != $rangedattackpower) $sql_query .= "rangedattackpower='$rangedattackpower',";
    18671846                if ($mob_templ['type'] != $type) $sql_query .= "type='$type',";
    1868                 if ($mob_templ['civilian'] != $civilian) $sql_query .= "civilian='$civilian',";
     1847        if ($mob_templ['flags_extra'] != $flags_extra) $sql_query .= "flags_extra='$flags_extra',";
    18691848                if ($mob_templ['flag1'] != $flag1) $sql_query .= "flag1='$flag1',";
    1870                 //if ($mob_templ['equipmodel1'] != $equipmodel1) $sql_query .= "equipmodel1='$equipmodel1',";
    1871                 //if ($mob_templ['equipmodel2'] != $equipmodel2) $sql_query .= "equipmodel2='$equipmodel2',";
    1872                 //if ($mob_templ['equipmodel3'] != $equipmodel3) $sql_query .= "equipmodel3='$equipmodel3',";
    1873                 //if ($mob_templ['equipinfo1'] != $equipinfo1) $sql_query .= "equipinfo1='$equipinfo1',";
    1874                 //if ($mob_templ['equipinfo2'] != $equipinfo2) $sql_query .= "equipinfo2='$equipinfo2',";
    1875                 //if ($mob_templ['equipinfo3'] != $equipinfo3) $sql_query .= "equipinfo3='$equipinfo3',";
    1876                 //if ($mob_templ['equipslot1'] != $equipslot1) $sql_query .= "equipslot1='$equipslot1',";
    1877                 //if ($mob_templ['equipslot2'] != $equipslot2) $sql_query .= "equipslot2='$equipslot2',";
    1878                 //if ($mob_templ['equipslot3'] != $equipslot3) $sql_query .= "equipslot3='$equipslot3',";
    18791849                if ($mob_templ['lootid'] != $lootid) $sql_query .= "lootid='$lootid',";
    18801850                if ($mob_templ['pickpocketloot'] != $pickpocketloot) $sql_query .= "pickpocketloot='$pickpocketloot',";
     
    19251895
    19261896        if ($item){
    1927         $sql_query .= "INSERT INTO creature_loot_template (entry, item, ChanceOrRef, QuestChanceOrGroup, mincount, maxcount, freeforall, lootcondition, condition_value1, condition_value2)
    1928                         VALUES ($lootid,$item,'$ChanceOrRef', '$QuestChanceOrGroup' ,$mincount ,$maxcount ,$freeforall ,$lootcondition ,$condition_value1 ,$condition_value2);\n";
     1897        $sql_query .= "INSERT INTO creature_loot_template (entry, item, ChanceOrQuestChance, `groupid`, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
     1898                        VALUES ($lootid,$item,'$ChanceOrQuestChance', '$groupid' ,$mincountOrRef ,$maxcount ,$lootcondition ,$condition_value1 ,$condition_value2);\n";
    19291899        }
    19301900
     
    19351905
    19361906        if ($skin_item){
    1937         $sql_query .= "INSERT INTO skinning_loot_template (entry, item, ChanceOrRef, QuestChanceOrGroup, mincount, maxcount, freeforall, lootcondition, condition_value1, condition_value2)
    1938                         VALUES ($skinloot,$skin_item,'$skin_ChanceOrRef', '$skin_QuestChanceOrGroup' ,$skin_mincount ,$skin_maxcount ,$skin_freeforall,$skin_lootcondition ,$skin_condition_value1 ,$skin_condition_value2);\n";
     1907        $sql_query .= "INSERT INTO skinning_loot_template (entry, item, ChanceOrQuestChance, `groupid`, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
     1908                        VALUES ($skinloot,$skin_item,'$skin_ChanceOrQuestChance', '$skin_groupid' ,$skin_mincountOrRef ,$skin_maxcount ,$skin_lootcondition ,$skin_condition_value1 ,$skin_condition_value2);\n";
    19391909        }
    19401910
     
    19451915
    19461916        if ($pp_item){
    1947         $sql_query .= "INSERT INTO pickpocketing_loot_template (entry, item, ChanceOrRef, QuestChanceOrGroup, mincount, maxcount, freeforall, lootcondition, condition_value1, condition_value2)
    1948                         VALUES ($pickpocketloot,$pp_item,'$pp_ChanceOrRef', '$pp_QuestChanceOrGroup' ,$pp_mincount ,$pp_maxcount ,$pp_freeforall,$pp_lootcondition ,$pp_condition_value1 ,$pp_condition_value2);\n";
     1917        $sql_query .= "INSERT INTO pickpocketing_loot_template (entry, item, ChanceOrQuestChance, `groupid`, mincountOrRef, maxcount, lootcondition, condition_value1, condition_value2)
     1918                        VALUES ($pickpocketloot,$pp_item,'$pp_ChanceOrQuestChance', '$pp_groupid' ,$pp_mincountOrRef ,$pp_maxcount ,$pp_lootcondition ,$pp_condition_value1 ,$pp_condition_value2);\n";
    19491919        }
    19501920
     
    19781948
    19791949        if ($vendor_item){
    1980         $sql_query .= "INSERT INTO npc_vendor (entry, item, maxcount, incrtime)
    1981                         VALUES ($entry,$vendor_item,$vendor_maxcount,$vendor_incrtime);\n";
     1950        $sql_query .= "INSERT INTO npc_vendor (entry, item, maxcount, incrtime, ExtendedCost)
     1951                        VALUES ($entry,$vendor_item,$vendor_maxcount,$vendor_incrtime,$vendor_extended_cost);\n";
    19821952        }
    19831953
     
    21092079case 6:
    21102080   $output .= "<h1><font class=\"error\">{$lang_creature['err_no_fields_updated']}</font></h1>";
     2081   break;
     2082case 7:
     2083   $output .= "<h1><font class=\"error\">{$lang_creature['add_new_success']}</font></h1>";
    21112084   break;
    21122085default: //no error
Note: See TracChangeset for help on using the changeset viewer.