Changeset 178 for minimanager/creature.php
- Timestamp:
- Dec 23, 2007, 2:55:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/creature.php
r142 r178 73 73 <tr> 74 74 <td>{$lang_creature['level']}:</td> 75 <td ><input type=\"text\" size=\"10\" maxlength=\"3\" name=\"level\" /></td>75 <td colspan=\"2\"><input type=\"text\" size=\"10\" maxlength=\"3\" name=\"level\" /></td> 76 76 <td>{$lang_creature['health']}:</td> 77 <td><input type=\"text\" size=\"10\" maxlength=\"5\" name=\"health\" /></td> 77 <td colspan=\"2\"><input type=\"text\" size=\"10\" maxlength=\"5\" name=\"health\" /></td> 78 </tr> 79 <tr> 78 80 <td>{$lang_creature['faction_A']}:</td> 79 <td><input type=\"text\" size=\"10\" maxlength=\"4\" name=\"faction_A\" /></td> 81 <td colspan=\"2\"><input type=\"text\" size=\"10\" maxlength=\"4\" name=\"faction_A\" /></td> 82 <td>{$lang_creature['faction_H']}:</td> 83 <td colspan=\"2\"><input type=\"text\" size=\"10\" maxlength=\"4\" name=\"faction_H\" /></td> 80 84 </tr> 81 85 <tr> … … 191 195 ($_POST['npcflag'] === '')&&($_POST['type'] === '')&&($_POST['rank'] === '')&&($_POST['family'] === '') 192 196 &&(!isset($_POST['entry'])||$_POST['entry'] === '')&&(!isset($_POST['name'])||$_POST['name'] === '')&&(!isset($_POST['level'])||$_POST['level'] === '')&&(!isset($_POST['health'])||$_POST['health'] === '') 193 &&(!isset($_POST['faction_A'])||$_POST['faction_A'] === '')&&(!isset($_POST[' spell'])||$_POST['spell'] === '')&&(!isset($_POST['lootid'])||$_POST['lootid'] === '')&&(!isset($_POST['ScriptName'])||$_POST['ScriptName'] === '')197 &&(!isset($_POST['faction_A'])||$_POST['faction_A'] === '')&&(!isset($_POST['faction_H'])||$_POST['faction_H'] === '')&&(!isset($_POST['spell'])||$_POST['spell'] === '')&&(!isset($_POST['lootid'])||$_POST['lootid'] === '')&&(!isset($_POST['ScriptName'])||$_POST['ScriptName'] === '') 194 198 &&(!isset($_POST['custom_search'])||$_POST['custom_search'] === '')) { 195 199 redirect("creature.php?error=1"); … … 207 211 if ($_POST['level'] != '') $level = $sql->quote_smart($_POST['level']); 208 212 if ($_POST['health'] != '') $health = $sql->quote_smart($_POST['health']); 209 if ($_POST['faction_A'] != '') $faction = $sql->quote_smart($_POST['faction_A']); 213 if ($_POST['faction_A'] != '') $faction_A = $sql->quote_smart($_POST['faction_A']); 214 if ($_POST['faction_H'] != '') $faction_H = $sql->quote_smart($_POST['faction_H']); 210 215 if ($_POST['spell'] != '') $spell = $sql->quote_smart($_POST['spell']); 211 216 if ($_POST['lootid'] != '') $lootid = $sql->quote_smart($_POST['lootid']); … … 220 225 if(isset($level)) $where .= "AND minlevel <= $level AND maxlevel >= $level "; 221 226 if(isset($health)) $where .= "AND minhealth <= $health AND maxhealth >= $health "; 222 if(isset($faction_A)) $where .= "AND faction = '$faction_A' "; 227 if(isset($faction_A)) $where .= "AND faction_A = '$faction_A' "; 228 if(isset($faction_H)) $where .= "AND faction_B = '$faction_A' "; 223 229 if(isset($lootid)) $where .= "AND lootid = '$lootid' "; 224 if(isset($ScriptName)) $where .= "AND ScriptName LIKE '%$ScriptName%' "; 230 if(isset($ScriptName)) $where .= "AND ScriptName LIKE '%$ScriptName%' "; 225 231 if(isset($npcflag)) $where .= "AND npcflag = '$npcflag' "; 226 232 if(isset($type)) $where .= "AND type = '$type' "; … … 283 289 <input type=\"hidden\" name=\"backup_op\" value=\"0\"/> 284 290 <input type=\"hidden\" name=\"opp_type\" value=\"add_new\"/> 285 291 286 292 <div class=\"jtab-container\" id=\"container\"> 287 293 <ul class=\"jtabs\"> … … 299 305 <td>".makeinfocell($lang_creature['entry'],$lang_creature['entry_desc'])."</td> 300 306 <td><input type=\"text\" name=\"entry\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 301 307 302 308 <td>".makeinfocell($lang_creature['name'],$lang_creature['name_desc'])."</td> 303 309 <td colspan=\"3\"><input type=\"text\" name=\"name\" size=\"50\" maxlength=\"100\" value=\"mob\" /></td> … … 306 312 <td>".makeinfocell($lang_creature['sub_name'],$lang_creature['sub_name_desc'])."</td> 307 313 <td colspan=\"2\"><input type=\"text\" name=\"subname\" size=\"25\" maxlength=\"100\" value=\"\" /></td> 308 314 309 315 <td>".makeinfocell($lang_creature['script_name'],$lang_creature['script_name_desc'])."</td> 310 316 <td colspan=\"2\"><input type=\"text\" name=\"ScriptName\" size=\"25\" maxlength=\"128\" value=\"\" /></td> … … 315 321 <td>".makeinfocell($lang_creature['min_level'],$lang_creature['min_level_desc'])."</td> 316 322 <td><input type=\"text\" name=\"minlevel\" size=\"8\" maxlength=\"3\" value=\"1\" /></td> 317 323 318 324 <td>".makeinfocell($lang_creature['max_level'],$lang_creature['max_level_desc'])."</td> 319 325 <td><input type=\"text\" name=\"maxlevel\" size=\"8\" maxlength=\"3\" value=\"1\" /></td> 320 326 321 327 <td>".makeinfocell($lang_creature['rank'],$lang_creature['rank_desc'])."</td> 322 328 <td><select name=\"rank\"> … … 327 333 <option value=\"4\">4 - {$lang_creature['rare']}</option> 328 334 </select></td> 329 </tr> 335 </tr> 330 336 <tr> 331 337 <td>".makeinfocell($lang_creature['min_health'],$lang_creature['min_health_desc'])."</td> 332 338 <td colspan=\"2\"><input type=\"text\" name=\"minhealth\" size=\"14\" maxlength=\"10\" value=\"1\" /></td> 333 339 334 340 <td>".makeinfocell($lang_creature['max_health'],$lang_creature['max_health_desc'])."</td> 335 341 <td colspan=\"2\"><input type=\"text\" name=\"maxhealth\" size=\"14\" maxlength=\"10\" value=\"1\" /></td> 336 342 </tr> 337 <tr> 343 <tr> 338 344 <td>".makeinfocell($lang_creature['min_mana'],$lang_creature['min_mana_desc'])."</td> 339 345 <td colspan=\"2\"><input type=\"text\" name=\"minmana\" size=\"14\" maxlength=\"10\" value=\"0\" /></td> 340 346 341 347 <td>".makeinfocell($lang_creature['max_mana'],$lang_creature['max_mana_desc'])."</td> 342 348 <td colspan=\"2\"><input type=\"text\" name=\"maxmana\" size=\"14\" maxlength=\"10\" value=\"0\" /></td> 343 </tr> 349 </tr> 344 350 <tr> 345 351 <td>".makeinfocell($lang_creature['faction_A'],$lang_creature['faction_A_desc'])."</td> 346 352 <td colspan=\"2\"><input type=\"text\" name=\"faction_A\" size=\"14\" maxlength=\"10\" value=\"0\" /></td> 353 354 <td>".makeinfocell($lang_creature['faction_A'],$lang_creature['faction_A_desc'])."</td> 355 <td colspan=\"2\"><input type=\"text\" name=\"faction_A\" size=\"14\" maxlength=\"10\" value=\"0\" /></td> 356 </tr> 357 <tr> 358 <td></td> 359 <td colspan=\"2\"></td> 347 360 348 361 <td>".makeinfocell($lang_creature['type'],$lang_creature['type_desc'])."</td> … … 421 434 <option value=\"27\">27 - {$lang_creature['wind_serpent']}</option> 422 435 </select></td> 423 436 424 437 </tr> 425 438 … … 428 441 <td>".makeinfocell($lang_creature['loot_id'],$lang_creature['loot_id_desc'])."</td> 429 442 <td><input type=\"text\" name=\"lootid\" size=\"10\" maxlength=\"10\" value=\"0\" /></td> 430 443 431 444 <td>".makeinfocell($lang_creature['skin_loot'],$lang_creature['skin_loot_desc'])."</td> 432 445 <td><input type=\"text\" name=\"skinloot\" size=\"10\" maxlength=\"10\" value=\"0\" /></td> 433 446 434 447 <td>".makeinfocell($lang_creature['pickpocket_loot'],$lang_creature['pickpocket_loot_desc'])."</td> 435 448 <td><input type=\"text\" name=\"pickpocketloot\" size=\"10\" maxlength=\"10\" value=\"0\" /></td> … … 438 451 <td>".makeinfocell($lang_creature['min_gold'],$lang_creature['min_gold_desc'])."</td> 439 452 <td colspan=\"2\"><input type=\"text\" name=\"mingold\" size=\"14\" maxlength=\"30\" value=\"0\" /></td> 440 453 441 454 <td>".makeinfocell($lang_creature['max_gold'],$lang_creature['max_gold_desc'])."</td> 442 455 <td colspan=\"2\"><input type=\"text\" name=\"maxgold\" size=\"14\" maxlength=\"30\" value=\"0\" /></td> … … 454 467 <td>".makeinfocell($lang_creature['armor'],$lang_creature['armor_desc'])."</td> 455 468 <td colspan=\"2\"><input type=\"text\" name=\"armor\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 456 469 457 470 <td>".makeinfocell($lang_creature['speed'],$lang_creature['speed_desc'])."</td> 458 471 <td colspan=\"2\"><input type=\"text\" name=\"speed\" size=\"8\" maxlength=\"45\" value=\"1\" /></td> 459 472 </tr> 460 473 461 474 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['damage']}:</td></tr> 462 475 <tr> 463 476 <td>".makeinfocell($lang_creature['min_damage'],$lang_creature['min_damage_desc'])."</td> 464 477 <td><input type=\"text\" name=\"mindmg\" size=\"8\" maxlength=\"45\" value=\"1\" /></td> 465 478 466 479 <td>".makeinfocell($lang_creature['max_damage'],$lang_creature['max_damage_desc'])."</td> 467 480 <td><input type=\"text\" name=\"maxdmg\" size=\"8\" maxlength=\"45\" value=\"1\" /></td> 468 481 469 482 <td>".makeinfocell($lang_creature['attack_power'],$lang_creature['attack_power_desc'])."</td> 470 483 <td><input type=\"text\" name=\"attackpower\" size=\"8\" maxlength=\"10\" value=\"1\" /></td> … … 473 486 <td>".makeinfocell($lang_creature['min_range_dmg'],$lang_creature['min_range_dmg_desc'])."</td> 474 487 <td><input type=\"text\" name=\"minrangedmg\" size=\"8\" maxlength=\"45\" value=\"1\" /></td> 475 488 476 489 <td>".makeinfocell($lang_creature['max_range_dmg'],$lang_creature['max_range_dmg_desc'])."</td> 477 490 <td><input type=\"text\" name=\"maxrangedmg\" size=\"8\" maxlength=\"45\" value=\"1\" /></td> 478 491 479 492 <td>".makeinfocell($lang_creature['ranged_attack_power'],$lang_creature['ranged_attack_power_desc'])."</td> 480 493 <td><input type=\"text\" name=\"rangedattackpower\" size=\"8\" maxlength=\"10\" value=\"1\" /></td> … … 483 496 <td>".makeinfocell($lang_creature['attack_time'],$lang_creature['attack_time_desc'])."</td> 484 497 <td><input type=\"text\" name=\"baseattacktime\" size=\"8\" maxlength=\"4\" value=\"1000\" /></td> 485 498 486 499 <td>".makeinfocell($lang_creature['range_attack_time'],$lang_creature['range_attack_time_desc'])."</td> 487 500 <td><input type=\"text\" name=\"rangeattacktime\" size=\"8\" maxlength=\"4\" value=\"1000\" /></td> 488 501 489 502 <td>".makeinfocell($lang_creature['combat_reach'],$lang_creature['combat_reach_desc'])."</td> 490 503 <td><input type=\"text\" name=\"combat_reach\" size=\"8\" maxlength=\"10\" value=\"1\" /></td> … … 493 506 <td>".makeinfocell($lang_creature['bounding_radius'],$lang_creature['bounding_radius_desc'])."</td> 494 507 <td colspan=\"2\"><input type=\"text\" name=\"bounding_radius\" size=\"14\" maxlength=\"45\" value=\"2\" /></td> 495 508 496 509 <td>".makeinfocell($lang_creature['dmgschool'],$lang_creature['dmgschool_desc'])."</td> 497 510 <td colspan=\"2\"><select name=\"dmgschool\"> … … 505 518 </select></td> 506 519 </tr> 507 520 508 521 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['spells']}:</td></tr> 509 522 … … 511 524 <td>".makeinfocell($lang_creature['spell']." 1",$lang_creature['spell_desc'])."</td> 512 525 <td colspan=\"2\"><input type=\"text\" name=\"spell1\" size=\"14\" maxlength=\"11\" value=\"0\" /></td> 513 526 514 527 <td>".makeinfocell($lang_creature['spell']." 2",$lang_creature['spell_desc'])."</td> 515 528 <td colspan=\"2\"><input type=\"text\" name=\"spell2\" size=\"14\" maxlength=\"11\" value=\"0\" /></td> … … 518 531 <td>".makeinfocell($lang_creature['spell']." 3",$lang_creature['spell_desc'])."</td> 519 532 <td colspan=\"2\"><input type=\"text\" name=\"spell3\" size=\"14\" maxlength=\"11\" value=\"0\" /></td> 520 533 521 534 <td>".makeinfocell($lang_creature['spell']." 4",$lang_creature['spell_desc'])."</td> 522 535 <td colspan=\"2\"><input type=\"text\" name=\"spell4\" size=\"14\" maxlength=\"11\" value=\"0\" /></td> … … 527 540 <td>".makeinfocell($lang_creature['resis_holy'],$lang_creature['resis_holy_desc'])."</td> 528 541 <td><input type=\"text\" name=\"resistance1\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 529 542 530 543 <td>".makeinfocell($lang_creature['resis_fire'],$lang_creature['resis_fire_desc'])."</td> 531 544 <td><input type=\"text\" name=\"resistance2\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 532 545 533 546 <td>".makeinfocell($lang_creature['resis_nature'],$lang_creature['resis_nature_desc'])."</td> 534 547 <td><input type=\"text\" name=\"resistance3\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> … … 537 550 <td>".makeinfocell($lang_creature['resis_frost'],$lang_creature['resis_frost_desc'])."</td> 538 551 <td><input type=\"text\" name=\"resistance4\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 539 552 540 553 <td>".makeinfocell($lang_creature['resis_shadow'],$lang_creature['resis_shadow_desc'])."</td> 541 554 <td><input type=\"text\" name=\"resistance5\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 542 555 543 556 <td>".makeinfocell($lang_creature['resis_arcane'],$lang_creature['resis_arcane_desc'])."</td> 544 557 <td><input type=\"text\" name=\"resistance6\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 545 558 </tr> 546 559 547 560 </table><br /><br /> 548 561 </div>"; 549 562 550 563 551 564 $output .= "<div id=\"pane4\"> … … 553 566 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['models']}:</td></tr> 554 567 <tr> 555 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A ale'],$lang_creature['modelid_Aale_desc'])."</td>568 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A'],$lang_creature['modelid_A_desc'])."</td> 556 569 <td><input type=\"text\" name=\"modelid_A\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 557 558 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_Hemale'],$lang_creature['modelid_Hemale_desc'])."</td> 570 571 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A2'],$lang_creature['modelid_A2_desc'])."</td> 572 <td><input type=\"text\" name=\"modelid_A2\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 573 </tr> 574 <tr> 575 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_H'],$lang_creature['modelid_H_desc'])."</td> 559 576 <td><input type=\"text\" name=\"modelid_H\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 560 </tr> 561 <tr> 562 <td>".makeinfocell($lang_creature['equip_slot']." 1",$lang_creature['equip_slot_desc'])."</td> 563 <td><input type=\"text\" name=\"equipslot1\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 564 565 <td>".makeinfocell($lang_creature['equip_model']." 1",$lang_creature['equip_model_desc'])."</td> 566 <td><input type=\"text\" name=\"equipmodel1\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 567 568 <td>".makeinfocell($lang_creature['equip_info']." 1",$lang_creature['equip_info_desc'])."</td> 569 <td><input type=\"text\" name=\"equipinfo1\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 570 </tr> 571 <tr> 572 <td>".makeinfocell($lang_creature['equip_slot']." 2",$lang_creature['equip_slot_desc'])."</td> 573 <td><input type=\"text\" name=\"equipslot2\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 574 575 <td>".makeinfocell($lang_creature['equip_model']." 2",$lang_creature['equip_model_desc'])."</td> 576 <td><input type=\"text\" name=\"equipmodel2\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 577 578 <td>".makeinfocell($lang_creature['equip_info']." 2",$lang_creature['equip_info_desc'])."</td> 579 <td><input type=\"text\" name=\"equipinfo2\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 580 </tr> 581 <tr> 582 <td>".makeinfocell($lang_creature['equip_slot']." 3",$lang_creature['equip_slot_desc'])."</td> 583 <td><input type=\"text\" name=\"equipslot3\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 584 585 <td>".makeinfocell($lang_creature['equip_model']." 3",$lang_creature['equip_model_desc'])."</td> 586 <td><input type=\"text\" name=\"equipmodel3\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 587 588 <td>".makeinfocell($lang_creature['equip_info']." 3",$lang_creature['equip_info_desc'])."</td> 589 <td><input type=\"text\" name=\"equipinfo3\" size=\"8\" maxlength=\"10\" value=\"0\" /></td> 590 </tr> 591 577 578 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_H2'],$lang_creature['modelid_H2_desc'])."</td> 579 <td><input type=\"text\" name=\"modelid_H2\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 580 </tr> 592 581 </table><br /><br /> 593 582 </div>"; 594 583 595 584 $output .= "<div id=\"pane2\"> 596 585 <br /><br /><table class=\"lined\" style=\"width: 720px;\"> … … 599 588 <td>".makeinfocell($lang_creature['ai_name'],$lang_creature['ai_name_desc'])."</td> 600 589 <td colspan=\"2\"><input type=\"text\" name=\"AIName\" size=\"14\" maxlength=\"128\" value=\"\" /></td> 601 590 602 591 <td>".makeinfocell($lang_creature['movement_type'],$lang_creature['movement_type_desc'])."</td> 603 592 <td colspan=\"2\"><input type=\"text\" name=\"MovementType\" size=\"14\" maxlength=\"24\" value=\"0\" /></td> 604 593 </tr> 605 594 606 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['other']}:</td></tr> 607 595 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['other']}:</td></tr> 596 608 597 <td>".makeinfocell($lang_creature['class'],$lang_creature['class_desc'])."</td> 609 598 <td><select name=\"class\"> … … 618 607 <option value=\"9\">9 - {$lang_id_tab['warlock']}</option> 619 608 <option value=\"11\">11 - {$lang_id_tab['druid']}</option> 620 </select></td> 609 </select></td> 621 610 622 611 <td>".makeinfocell($lang_creature['race'],$lang_creature['race_desc'])."</td> … … 634 623 <option value=\"11\">11 - {$lang_id_tab['draenei']}</option> 635 624 </select></td> 636 625 637 626 <td>".makeinfocell($lang_creature['RacialLeader'],$lang_creature['RacialLeader_desc'])."</td> 638 627 <td><input type=\"checkbox\" name=\"RacialLeader\" value=\"1\" /></td> … … 641 630 <td>".makeinfocell($lang_creature['trainer_spell'],$lang_creature['trainer_spell_desc'])."</td> 642 631 <td><input type=\"text\" name=\"trainer_spell\" size=\"14\" maxlength=\"11\" value=\"0\" /></td> 643 632 644 633 <td>".makeinfocell($lang_creature['inhabit_type'],$lang_creature['inhabit_type_desc'])."</td> 645 634 <td><select name=\"InhabitType\"> … … 649 638 <option value=\"3\">3 - {$lang_creature['both']}</option> 650 639 </select></td> 651 640 652 641 <td>".makeinfocell($lang_creature['civilian'],$lang_creature['civilian_desc'])."</td> 653 642 <td><input type=\"checkbox\" name=\"civilian\" value=\"1\" /></td> 654 </tr> 643 </tr> 655 644 <tr> 656 645 <td>".makeinfocell($lang_creature['flags'],$lang_creature['flags_desc'])."</td> 657 646 <td><input type=\"text\" name=\"flags\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 658 647 659 648 <td>".makeinfocell($lang_creature['dynamic_flags'],$lang_creature['dynamic_flags_desc'])."</td> 660 649 <td><input type=\"text\" name=\"dynamicflags\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> 661 650 662 651 <td>".makeinfocell($lang_creature['flag_1'],$lang_creature['flag_1_desc'])."</td> 663 652 <td><input type=\"text\" name=\"flag1\" size=\"8\" maxlength=\"11\" value=\"0\" /></td> … … 666 655 </table><br /><br /> 667 656 </div> 668 657 669 658 </div> 670 659 </div> … … 693 682 694 683 if (!isset($_GET['entry'])) redirect("creature.php?error=1"); 695 684 696 685 $sql = new SQL; 697 686 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 698 687 699 688 $entry = $sql->quote_smart($_GET['entry']); 700 689 $result = $sql->query("SELECT * FROM creature_template WHERE entry = '$entry'"); … … 709 698 <input type=\"hidden\" name=\"opp_type\" value=\"edit\"/> 710 699 <input type=\"hidden\" name=\"entry\" value=\"$entry\"/> 711 700 712 701 <div class=\"jtab-container\" id=\"container\"> 713 702 <ul class=\"jtabs\"> … … 756 745 <td>".makeinfocell($lang_creature['entry'],$lang_creature['entry_desc'])."</td> 757 746 <td><a href=\"$creature_datasite$entry\" target=\"_blank\">$entry</a></td> 758 747 759 748 <td>".makeinfocell($lang_creature['name'],$lang_creature['name_desc'])."</td> 760 749 <td colspan=\"3\"><input type=\"text\" name=\"name\" size=\"50\" maxlength=\"100\" value=\"{$mob['name']}\" /></td> 761 750 </tr> 762 751 763 752 <tr> 764 753 <td>".makeinfocell($lang_creature['sub_name'],$lang_creature['sub_name_desc'])."</td> 765 754 <td colspan=\"2\"><input type=\"text\" name=\"subname\" size=\"25\" maxlength=\"100\" value=\"{$mob['subname']}\" /></td> 766 755 767 756 <td>".makeinfocell($lang_creature['script_name'],$lang_creature['script_name_desc'])."</td> 768 757 <td colspan=\"2\"><input type=\"text\" name=\"ScriptName\" size=\"25\" maxlength=\"128\" value=\"{$mob['ScriptName']}\" /></td> … … 774 763 775 764 <td>".makeinfocell($lang_creature['min_level'],$lang_creature['min_level_desc'])."</td> 776 <td ><input type=\"text\" name=\"minlevel\" size=\"8\" maxlength=\"3\" value=\"{$mob['minlevel']}\" /></td>777 765 <td colspan=\"2\"><input type=\"text\" name=\"minlevel\" size=\"8\" maxlength=\"3\" value=\"{$mob['minlevel']}\" /></td> 766 778 767 <td>".makeinfocell($lang_creature['max_level'],$lang_creature['max_level_desc'])."</td> 779 <td><input type=\"text\" name=\"maxlevel\" size=\"8\" maxlength=\"3\" value=\"{$mob['maxlevel']}\" /></td>"; 780 781 $rank = array(0 => "", 1 => "", 3 => "", 2 => "", 4 => ""); 782 $rank[$mob['rank']] = " selected=\"selected\" "; 783 784 $output .= "<td>".makeinfocell($lang_creature['rank'],$lang_creature['rank_desc'])."</td> 785 <td><select name=\"rank\"> 786 <option value=\"0\" {$rank[0]}>0 - {$lang_creature['normal']}</option> 787 <option value=\"1\" {$rank[1]}>1 - {$lang_creature['elite']}</option> 788 <option value=\"2\" {$rank[2]}>2 - {$lang_creature['rare_elite']}</option> 789 <option value=\"3\" {$rank[3]}>3 - {$lang_creature['world_boss']}</option> 790 <option value=\"4\" {$rank[4]}>4 - {$lang_creature['rare']}</option> 791 </select></td> 792 </tr> 793 768 <td colspan=\"2\"><input type=\"text\" name=\"maxlevel\" size=\"8\" maxlength=\"3\" value=\"{$mob['maxlevel']}\" /></td> 769 </tr> 770 794 771 <tr> 795 772 <td>".makeinfocell($lang_creature['min_health'],$lang_creature['min_health_desc'])."</td> 796 <td colspan=\"2\"><input type=\"text\" name=\"minhealth\" size=\"14\" maxlength=\"10\" value=\"{$mob['minhealth']}\" /></td>797 773 <td><input type=\"text\" name=\"minhealth\" size=\"14\" maxlength=\"10\" value=\"{$mob['minhealth']}\" /></td> 774 798 775 <td>".makeinfocell($lang_creature['max_health'],$lang_creature['max_health_desc'])."</td> 799 <td colspan=\"2\"><input type=\"text\" name=\"maxhealth\" size=\"14\" maxlength=\"10\" value=\"{$mob['maxhealth']}\" /></td> 800 </tr> 801 <tr> 776 <td><input type=\"text\" name=\"maxhealth\" size=\"14\" maxlength=\"10\" value=\"{$mob['maxhealth']}\" /></td> 777 778 "; 779 if ($mob['RegenHealth']) $RegenHealth = "checked"; 780 else $RegenHealth = ""; 781 782 $output .= "<td>".makeinfocell($lang_creature['RegenHealth'],$lang_creature['RegenHealth'])."</td> 783 <td><input type=\"checkbox\" name=\"RegenHealth\" value=\"1\" $RegenHealth /></td> 784 </tr> 785 <tr> 802 786 <td>".makeinfocell($lang_creature['min_mana'],$lang_creature['min_mana_desc'])."</td> 803 787 <td colspan=\"2\"><input type=\"text\" name=\"minmana\" size=\"14\" maxlength=\"10\" value=\"{$mob['minmana']}\" /></td> 804 788 805 789 <td>".makeinfocell($lang_creature['max_mana'],$lang_creature['max_mana_desc'])."</td> 806 790 <td colspan=\"2\"><input type=\"text\" name=\"maxmana\" size=\"14\" maxlength=\"10\" value=\"{$mob['maxmana']}\" /></td> 807 </tr> 808 791 </tr> 809 792 <tr> 810 793 <td>".makeinfocell($lang_creature['faction_A'],$lang_creature['faction_A_desc'])."</td> 811 <td colspan=\"2\"><input type=\"text\" name=\"faction_A\" size=\"14\" maxlength=\"5\" value=\"{$mob['faction_A']}\" /></td>"; 794 <td colspan=\"2\"><input type=\"text\" name=\"faction_A\" size=\"14\" maxlength=\"10\" value=\"{$mob['faction_A']}\" /></td> 795 796 <td>".makeinfocell($lang_creature['faction_H'],$lang_creature['faction_H_desc'])."</td> 797 <td colspan=\"2\"><input type=\"text\" name=\"faction_H\" size=\"14\" maxlength=\"10\" value=\"{$mob['faction_H']}\" /></td> 798 </tr> 799 <tr>"; 800 $rank = array(0 => "", 1 => "", 3 => "", 2 => "", 4 => ""); 801 $rank[$mob['rank']] = " selected=\"selected\" "; 802 803 $output .= "<td >".makeinfocell($lang_creature['rank'],$lang_creature['rank_desc'])."</td> 804 <td><select name=\"rank\"> 805 <option value=\"0\" {$rank[0]}>0 - {$lang_creature['normal']}</option> 806 <option value=\"1\" {$rank[1]}>1 - {$lang_creature['elite']}</option> 807 <option value=\"2\" {$rank[2]}>2 - {$lang_creature['rare_elite']}</option> 808 <option value=\"3\" {$rank[3]}>3 - {$lang_creature['world_boss']}</option> 809 <option value=\"4\" {$rank[4]}>4 - {$lang_creature['rare']}</option> 810 </select></td>"; 812 811 unset($rank); 813 812 814 813 $type = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "", 5 => "", 6 => "", 7 => "", 8 => "", 9 => "", 10 => ""); 815 814 $type[$mob['type']] = " selected=\"selected\" "; 816 817 $output .= "<td >".makeinfocell($lang_creature['type'],$lang_creature['type_desc'])."</td>815 816 $output .= "<td colspan=\"2\">".makeinfocell($lang_creature['type'],$lang_creature['type_desc'])."</td> 818 817 <td colspan=\"2\"><select name=\"type\"> 819 818 <option value=\"0\" {$type[0]}>0 - {$lang_creature['other']}</option> … … 832 831 <tr>"; 833 832 unset($type); 834 833 835 834 $npcflag = array(0 => "", 1 => "", 2 => "", 4 => "", 8 => "", 16 => "", 32 => "", 64 => "", 128 => "", 836 835 256 => "", 512 => "", 1024 => "", 2048 => "", 4096 => "", 8192 => "", 16384 => ""); … … 875 874 </select></td>"; 876 875 unset($npcflag); 877 876 878 877 $trainer_type = array(0 => "", 1 => "", 2 => "", 3 => ""); 879 878 $trainer_type[$mob['trainer_type']] = " selected=\"selected\" "; 880 879 881 880 $output .= "<td>".makeinfocell($lang_creature['trainer_type'],$lang_creature['trainer_type_desc'])."</td> 882 881 <td colspan=\"2\"><select name=\"trainer_type\"> … … 889 888 <tr>"; 890 889 unset($trainer_type); 891 890 892 891 $family = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "", 5 => "", 6 => "", 7 => "", 8 => "", 9 => "", 893 892 11 => "", 12 => "", 13 => "", 14 => "", 15 => "", 16 => "", 17 => "", 18 => "", 19 => "", 20 => "", 21 => "", … … 931 930 <td>".makeinfocell($lang_creature['loot_id'],$lang_creature['loot_id_desc'])."</td> 932 931 <td><input type=\"text\" name=\"lootid\" size=\"10\" maxlength=\"10\" value=\"{$mob['lootid']}\" /></td> 933 932 934 933 <td>".makeinfocell($lang_creature['skin_loot'],$lang_creature['skin_loot_desc'])."</td> 935 934 <td><input type=\"text\" name=\"skinloot\" size=\"10\" maxlength=\"10\" value=\"{$mob['skinloot']}\" /></td> 936 935 937 936 <td>".makeinfocell($lang_creature['pickpocket_loot'],$lang_creature['pickpocket_loot_desc'])."</td> 938 937 <td><input type=\"text\" name=\"pickpocketloot\" size=\"10\" maxlength=\"10\" value=\"{$mob['pickpocketloot']}\" /></td> … … 942 941 <td>".makeinfocell($lang_creature['min_gold'],$lang_creature['min_gold_desc'])."</td> 943 942 <td colspan=\"2\"><input type=\"text\" name=\"mingold\" size=\"14\" maxlength=\"30\" value=\"{$mob['mingold']}\" /></td> 944 943 945 944 <td>".makeinfocell($lang_creature['max_gold'],$lang_creature['max_gold_desc'])."</td> 946 945 <td colspan=\"2\"><input type=\"text\" name=\"maxgold\" size=\"14\" maxlength=\"30\" value=\"{$mob['maxgold']}\" /></td> 947 946 </tr>"; 948 947 unset($family); 949 948 950 949 $result1 = $sql->query("SELECT COUNT(*) FROM creature WHERE id = '{$mob['entry']}'"); 951 950 $output .= "<tr><td colspan=\"6\">{$lang_creature['creature_swapned']} : ".$sql->result($result1, 0)." {$lang_creature['times']}.</td></tr> … … 961 960 <td>".makeinfocell($lang_creature['armor'],$lang_creature['armor_desc'])."</td> 962 961 <td colspan=\"2\"><input type=\"text\" name=\"armor\" size=\"8\" maxlength=\"10\" value=\"{$mob['armor']}\" /></td> 963 962 964 963 <td>".makeinfocell($lang_creature['speed'],$lang_creature['speed_desc'])."</td> 965 964 <td colspan=\"2\"><input type=\"text\" name=\"speed\" size=\"8\" maxlength=\"45\" value=\"{$mob['speed']}\" /></td> 966 965 </tr> 967 966 968 967 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['damage']}:</td></tr> 969 968 <tr> 970 969 <td>".makeinfocell($lang_creature['min_damage'],$lang_creature['min_damage_desc'])."</td> 971 970 <td><input type=\"text\" name=\"mindmg\" size=\"8\" maxlength=\"45\" value=\"{$mob['mindmg']}\" /></td> 972 971 973 972 <td>".makeinfocell($lang_creature['max_damage'],$lang_creature['max_damage_desc'])."</td> 974 973 <td><input type=\"text\" name=\"maxdmg\" size=\"8\" maxlength=\"45\" value=\"{$mob['maxdmg']}\" /></td> 975 974 976 975 <td>".makeinfocell($lang_creature['attack_power'],$lang_creature['attack_power_desc'])."</td> 977 976 <td><input type=\"text\" name=\"attackpower\" size=\"8\" maxlength=\"10\" value=\"{$mob['attackpower']}\" /></td> … … 980 979 <td>".makeinfocell($lang_creature['min_range_dmg'],$lang_creature['min_range_dmg_desc'])."</td> 981 980 <td><input type=\"text\" name=\"minrangedmg\" size=\"8\" maxlength=\"45\" value=\"{$mob['minrangedmg']}\" /></td> 982 981 983 982 <td>".makeinfocell($lang_creature['max_range_dmg'],$lang_creature['max_range_dmg_desc'])."</td> 984 983 <td><input type=\"text\" name=\"maxrangedmg\" size=\"8\" maxlength=\"45\" value=\"{$mob['maxrangedmg']}\" /></td> 985 984 986 985 <td>".makeinfocell($lang_creature['ranged_attack_power'],$lang_creature['ranged_attack_power_desc'])."</td> 987 986 <td><input type=\"text\" name=\"rangedattackpower\" size=\"8\" maxlength=\"10\" value=\"{$mob['rangedattackpower']}\" /></td> … … 990 989 <td>".makeinfocell($lang_creature['attack_time'],$lang_creature['attack_time_desc'])."</td> 991 990 <td><input type=\"text\" name=\"baseattacktime\" size=\"8\" maxlength=\"4\" value=\"{$mob['baseattacktime']}\" /></td> 992 991 993 992 <td>".makeinfocell($lang_creature['range_attack_time'],$lang_creature['range_attack_time_desc'])."</td> 994 993 <td><input type=\"text\" name=\"rangeattacktime\" size=\"8\" maxlength=\"4\" value=\"{$mob['rangeattacktime']}\" /></td> 995 996 <td> ".makeinfocell($lang_creature['combat_reach'],$lang_creature['combat_reach_desc'])."</td>997 <td>< input type=\"text\" name=\"combat_reach\" size=\"8\" maxlength=\"10\" value=\"{$mob['combat_reach']}\" /></td>994 995 <td></td> 996 <td></td> 998 997 </tr> 999 998 <tr> 1000 <td> ".makeinfocell($lang_creature['bounding_radius'],$lang_creature['bounding_radius_desc'])."</td>1001 <td colspan=\"2\">< input type=\"text\" name=\"bounding_radius\" size=\"14\" maxlength=\"45\" value=\"{$mob['bounding_radius']}\" /></td>";1002 1003 999 <td></td> 1000 <td colspan=\"2\"></td>"; 1001 1002 1004 1003 $dmgschool = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "", 5 => "", 6 => ""); 1005 1004 $dmgschool[$mob['dmgschool']] = " selected=\"selected\" "; 1006 1005 1007 1006 $output .= "<td>".makeinfocell($lang_creature['dmgschool'],$lang_creature['dmgschool_desc'])."</td> 1008 1007 <td colspan=\"2\"><select name=\"dmgschool\"> … … 1016 1015 </select></td>"; 1017 1016 unset($dmgschool); 1018 1017 1019 1018 $output .= "</tr> 1020 1019 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['spells']}:</td></tr> … … 1023 1022 <td>".makeinfocell($lang_creature['spell']." 1",$lang_creature['spell_desc'])."</td> 1024 1023 <td colspan=\"2\"><input type=\"text\" name=\"spell1\" size=\"14\" maxlength=\"11\" value=\"{$mob['spell1']}\" /></td> 1025 1024 1026 1025 <td>".makeinfocell($lang_creature['spell']." 2",$lang_creature['spell_desc'])."</td> 1027 1026 <td colspan=\"2\"><input type=\"text\" name=\"spell2\" size=\"14\" maxlength=\"11\" value=\"{$mob['spell2']}\" /></td> … … 1030 1029 <td>".makeinfocell($lang_creature['spell']." 3",$lang_creature['spell_desc'])."</td> 1031 1030 <td colspan=\"2\"><input type=\"text\" name=\"spell3\" size=\"14\" maxlength=\"11\" value=\"{$mob['spell3']}\" /></td> 1032 1031 1033 1032 <td>".makeinfocell($lang_creature['spell']." 4",$lang_creature['spell_desc'])."</td> 1034 1033 <td colspan=\"2\"><input type=\"text\" name=\"spell4\" size=\"14\" maxlength=\"11\" value=\"{$mob['spell4']}\" /></td> … … 1039 1038 <td>".makeinfocell($lang_creature['resis_holy'],$lang_creature['resis_holy_desc'])."</td> 1040 1039 <td><input type=\"text\" name=\"resistance1\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance1']}\" /></td> 1041 1040 1042 1041 <td>".makeinfocell($lang_creature['resis_fire'],$lang_creature['resis_fire_desc'])."</td> 1043 1042 <td><input type=\"text\" name=\"resistance2\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance2']}\" /></td> 1044 1043 1045 1044 <td>".makeinfocell($lang_creature['resis_nature'],$lang_creature['resis_nature_desc'])."</td> 1046 1045 <td><input type=\"text\" name=\"resistance3\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance3']}\" /></td> … … 1049 1048 <td>".makeinfocell($lang_creature['resis_frost'],$lang_creature['resis_frost_desc'])."</td> 1050 1049 <td><input type=\"text\" name=\"resistance4\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance4']}\" /></td> 1051 1050 1052 1051 <td>".makeinfocell($lang_creature['resis_shadow'],$lang_creature['resis_shadow_desc'])."</td> 1053 1052 <td><input type=\"text\" name=\"resistance5\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance5']}\" /></td> 1054 1053 1055 1054 <td>".makeinfocell($lang_creature['resis_arcane'],$lang_creature['resis_arcane_desc'])."</td> 1056 1055 <td><input type=\"text\" name=\"resistance6\" size=\"8\" maxlength=\"10\" value=\"{$mob['resistance6']}\" /></td> 1057 1056 </tr> 1058 1057 1059 1058 </table><br /><br /> 1060 1059 </div>"; … … 1064 1063 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['models']}:</td></tr> 1065 1064 <tr> 1066 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A ale'],$lang_creature['modelid_Aale_desc'])."</td>1065 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A'],$lang_creature['modelid_A_desc'])."</td> 1067 1066 <td><input type=\"text\" name=\"modelid_A\" size=\"8\" maxlength=\"11\" value=\"{$mob['modelid_A']}\" /></td> 1068 1069 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_Hemale'],$lang_creature['modelid_Hemale_desc'])."</td> 1067 1068 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_A2'],$lang_creature['modelid_A2_desc'])."</td> 1069 <td><input type=\"text\" name=\"modelid_A2\" size=\"8\" maxlength=\"11\" value=\"{$mob['modelid_A2']}\" /></td> 1070 </tr> 1071 <tr> 1072 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_H'],$lang_creature['modelid_H_desc'])."</td> 1070 1073 <td><input type=\"text\" name=\"modelid_H\" size=\"8\" maxlength=\"11\" value=\"{$mob['modelid_H']}\" /></td> 1071 </tr> 1072 <tr> 1073 <td>".makeinfocell($lang_creature['equip_slot']." 1",$lang_creature['equip_slot_desc'])."</td> 1074 <td><input type=\"text\" name=\"equipslot1\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipslot1']}\" /></td> 1075 1076 <td>".makeinfocell($lang_creature['equip_model']." 1",$lang_creature['equip_model_desc'])."</td> 1077 <td><input type=\"text\" name=\"equipmodel1\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipmodel1']}\" /></td> 1078 1079 <td>".makeinfocell($lang_creature['equip_info']." 1",$lang_creature['equip_info_desc'])."</td> 1080 <td><input type=\"text\" name=\"equipinfo1\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipinfo1']}\" /></td> 1081 </tr> 1082 <tr> 1083 <td>".makeinfocell($lang_creature['equip_slot']." 2",$lang_creature['equip_slot_desc'])."</td> 1084 <td><input type=\"text\" name=\"equipslot2\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipslot2']}\" /></td> 1085 1086 <td>".makeinfocell($lang_creature['equip_model']." 2",$lang_creature['equip_model_desc'])."</td> 1087 <td><input type=\"text\" name=\"equipmodel2\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipmodel2']}\" /></td> 1088 1089 <td>".makeinfocell($lang_creature['equip_info']." 2",$lang_creature['equip_info_desc'])."</td> 1090 <td><input type=\"text\" name=\"equipinfo2\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipinfo2']}\" /></td> 1091 </tr> 1092 <tr> 1093 <td>".makeinfocell($lang_creature['equip_slot']." 3",$lang_creature['equip_slot_desc'])."</td> 1094 <td><input type=\"text\" name=\"equipslot3\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipslot3']}\" /></td> 1095 1096 <td>".makeinfocell($lang_creature['equip_model']." 3",$lang_creature['equip_model_desc'])."</td> 1097 <td><input type=\"text\" name=\"equipmodel3\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipmodel3']}\" /></td> 1098 1099 <td>".makeinfocell($lang_creature['equip_info']." 3",$lang_creature['equip_info_desc'])."</td> 1100 <td><input type=\"text\" name=\"equipinfo3\" size=\"8\" maxlength=\"10\" value=\"{$mob['equipinfo3']}\" /></td> 1101 </tr> 1102 1074 1075 <td colspan=\"2\">".makeinfocell($lang_creature['modelid_H2'],$lang_creature['modelid_H2_desc'])."</td> 1076 <td><input type=\"text\" name=\"modelid_H2\" size=\"8\" maxlength=\"11\" value=\"{$mob['modelid_H2']}\" /></td> 1077 </tr> 1078 </table><br /><br /> 1079 "; 1080 1081 1082 $result1 = $sql->query("SELECT * FROM creature_equip_template WHERE entry = '{$mob['equipment_id']}'"); 1083 if ($mobequip = $sql->fetch_assoc($result1)){ 1084 1085 $output .= "<br /><br /><table class=\"lined\" style=\"width: 720px;\"> 1086 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['equipment']}:</td></tr> 1087 <tr> 1088 <td>".makeinfocell($lang_creature['equip_slot']." 1",$lang_creature['equip_slot1_desc'])."</td> 1089 <td><input type=\"text\" name=\"equipslot1\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipslot1']}\" /></td> 1090 1091 <td>".makeinfocell($lang_creature['equip_model']." 1",$lang_creature['equip_model1_desc'])."</td> 1092 <td><input type=\"text\" name=\"equipmodel1\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipmodel1']}\" /></td> 1093 1094 <td>".makeinfocell($lang_creature['equip_info']." 1",$lang_creature['equip_info1_desc'])."</td> 1095 <td><input type=\"text\" name=\"equipinfo1\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipinfo1']}\" /></td> 1096 </tr> 1097 <tr> 1098 <td>".makeinfocell($lang_creature['equip_slot']." 2",$lang_creature['equip_slot2_desc'])."</td> 1099 <td><input type=\"text\" name=\"equipslot2\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipslot2']}\" /></td> 1100 1101 <td>".makeinfocell($lang_creature['equip_model']." 2",$lang_creature['equip_model2_desc'])."</td> 1102 <td><input type=\"text\" name=\"equipmodel2\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipmodel2']}\" /></td> 1103 1104 <td>".makeinfocell($lang_creature['equip_info']." 2",$lang_creature['equip_info2_desc'])."</td> 1105 <td><input type=\"text\" name=\"equipinfo2\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipinfo2']}\" /></td> 1106 </tr> 1107 <tr> 1108 <td>".makeinfocell($lang_creature['equip_slot']." 3",$lang_creature['equip_slot3_desc'])."</td> 1109 <td><input type=\"text\" name=\"equipslot3\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipslot3']}\" /></td> 1110 1111 <td>".makeinfocell($lang_creature['equip_model']." 3",$lang_creature['equip_model3_desc'])."</td> 1112 <td><input type=\"text\" name=\"equipmodel3\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipmodel3']}\" /></td> 1113 1114 <td>".makeinfocell($lang_creature['equip_info']." 3",$lang_creature['equip_info3_desc'])."</td> 1115 <td><input type=\"text\" name=\"equipinfo3\" size=\"8\" maxlength=\"10\" value=\"{$mobequip['equipinfo3']}\" /></td> 1116 </tr> 1103 1117 </table><br /><br /> 1104 1118 </div>"; 1105 1119 } 1120 else 1121 { 1122 $output .= "<br /><br /><table class=\"lined\" style=\"width: 720px;\"> 1123 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['equipment']}:</td></tr> 1124 </table><br /><br /> 1125 </div>"; 1126 } 1127 1106 1128 $output .= "<div id=\"pane2\"> 1107 1129 <br /><br /><table class=\"lined\" style=\"width: 720px;\"> … … 1110 1132 <td>".makeinfocell($lang_creature['ai_name'],$lang_creature['ai_name_desc'])."</td> 1111 1133 <td colspan=\"2\"><input type=\"text\" name=\"AIName\" size=\"14\" maxlength=\"128\" value=\"{$mob['AIName']}\" /></td> 1112 1134 1113 1135 <td>".makeinfocell($lang_creature['movement_type'],$lang_creature['movement_type_desc'])."</td> 1114 1136 <td colspan=\"2\"><input type=\"text\" name=\"MovementType\" size=\"14\" maxlength=\"24\" value=\"{$mob['MovementType']}\" /></td> … … 1119 1141 $class = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "",5 => "",7 => "",8 => "",9 => "",11 => ""); 1120 1142 $class[$mob['class']] = " selected=\"selected\" "; 1121 1143 1122 1144 $output .= "<td>".makeinfocell($lang_creature['class'],$lang_creature['class_desc'])."</td> 1123 1145 <td><select name=\"class\"> … … 1132 1154 <option value=\"9\" {$class[9]}>9 - {$lang_id_tab['warlock']}</option> 1133 1155 <option value=\"11\" {$class[11]}>11 - {$lang_id_tab['druid']}</option> 1134 </select></td>"; 1156 </select></td>"; 1135 1157 unset($class); 1136 1158 1137 1159 $race = array(0 => "", 1 => "", 2 => "", 3 => "", 4 => "",5 => "",6 => "", 7 => "",8 => "",10 => "",11 => ""); 1138 1160 $race[$mob['race']] = " selected=\"selected\" "; 1139 1161 1140 1162 $output .= "<td>".makeinfocell($lang_creature['race'],$lang_creature['race_desc'])."</td> 1141 1163 <td><select name=\"race\"> … … 1155 1177 if ($mob['RacialLeader']) $RacialLeader = "checked"; 1156 1178 else $RacialLeader = ""; 1157 1179 1158 1180 $output .= "<td>".makeinfocell($lang_creature['RacialLeader'],$lang_creature['RacialLeader_desc'])."</td> 1159 1181 <td><input type=\"checkbox\" name=\"RacialLeader\" value=\"1\" $RacialLeader /></td> … … 1166 1188 $InhabitType = array(0 => "", 1 => "", 2 => "", 3 => ""); 1167 1189 $InhabitType[$mob['InhabitType']] = " selected=\"selected\" "; 1168 1190 1169 1191 $output .= "<td>".makeinfocell($lang_creature['inhabit_type'],$lang_creature['inhabit_type_desc'])."</td> 1170 1192 <td><select name=\"InhabitType\"> … … 1175 1197 </select></td>"; 1176 1198 unset($InhabitType); 1177 1199 1178 1200 if ($mob['civilian']) $civilian = "checked"; 1179 1201 else $civilian = ""; 1180 1202 1181 1203 $output .= "<td>".makeinfocell($lang_creature['civilian'],$lang_creature['civilian_desc'])."</td> 1182 1204 <td><input type=\"checkbox\" name=\"civilian\" value=\"1\" $civilian /></td> 1183 </tr> 1205 </tr> 1184 1206 <tr> 1185 1207 <td>".makeinfocell($lang_creature['flags'],$lang_creature['flags_desc'])."</td> 1186 1208 <td><input type=\"text\" name=\"flags\" size=\"8\" maxlength=\"11\" value=\"{$mob['flags']}\" /></td> 1187 1209 1188 1210 <td>".makeinfocell($lang_creature['dynamic_flags'],$lang_creature['dynamic_flags_desc'])."</td> 1189 1211 <td><input type=\"text\" name=\"dynamicflags\" size=\"8\" maxlength=\"11\" value=\"{$mob['dynamicflags']}\" /></td> 1190 1212 1191 1213 <td>".makeinfocell($lang_creature['flag_1'],$lang_creature['flag_1_desc'])."</td> 1192 1214 <td><input type=\"text\" name=\"flag1\" size=\"8\" maxlength=\"11\" value=\"{$mob['flag1']}\" /></td> … … 1215 1237 $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip"); 1216 1238 $output .= "<br /><input type=\"checkbox\" name=\"del_loot_items[]\" value=\"$item[0]\" /></td>"; 1217 1239 1218 1240 if ($cel_counter >= 16) { 1219 1241 $cel_counter = 0; … … 1264 1286 $query1 = $sql->query("SELECT QuestLevel,Title FROM quest_template WHERE entry ='$quest[0]'"); 1265 1287 $quest_templ = $sql->fetch_row($query1); 1266 1288 1267 1289 $output .= "<tr><td width=\"5%\"><input type=\"checkbox\" name=\"del_questrelation[]\" value=\"$quest[0]\" /></td> 1268 1290 <td width=\"95%\" align=\"left\"><a class=\"tooltip\" href=\"$quest_datasite$quest[0]\" target=\"_blank\">({$quest_templ[0]}) $quest_templ[1]</a></td></tr>"; … … 1279 1301 $query1 = $sql->query("SELECT QuestLevel,Title FROM quest_template WHERE entry ='$quest[0]'"); 1280 1302 $quest_templ = $sql->fetch_row($query1); 1281 1303 1282 1304 $output .= "<tr><td width=\"5%\"><input type=\"checkbox\" name=\"del_involvedrelation[]\" value=\"$quest[0]\" /></td> 1283 1305 <td width=\"95%\" align=\"left\"><a class=\"tooltip\" href=\"$quest_datasite$quest[0]\" target=\"_blank\">({$quest_templ[0]}) $quest_templ[1]</a></td></tr>"; … … 1285 1307 1286 1308 $output .= "<tr class=\"large_bold\" align=\"left\"><td colspan=\"2\" class=\"hidden\">{$lang_creature['add_ends_quests']}:</td></tr> 1287 <tr><td colspan=\"2\" align=\"left\">".makeinfocell($lang_creature['quest_id'],$lang_creature['quest_id_desc'])." : 1309 <tr><td colspan=\"2\" align=\"left\">".makeinfocell($lang_creature['quest_id'],$lang_creature['quest_id_desc'])." : 1288 1310 <input type=\"text\" name=\"involvedrelation\" size=\"8\" maxlength=\"8\" value=\"\" /></td></tr> 1289 1311 … … 1310 1332 $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip"); 1311 1333 $output .= "<br /><input type=\"checkbox\" name=\"del_vendor_item[]\" value=\"$item[0]\" /></td>"; 1312 1334 1313 1335 if ($cel_counter >= 16) { 1314 1336 $cel_counter = 0; … … 1339 1361 <tr class=\"large_bold\"><td colspan=\"6\" class=\"hidden\" align=\"left\">{$lang_creature['trains']}:</td></tr> 1340 1362 <tr><td colspan=\"6\">"; 1341 1363 1342 1364 $cel_counter = 0; 1343 1365 $row_flag = 0; … … 1350 1372 $output .= maketooltip($spell[0], "$spell_datasite$spell[0]", $tooltip, "info_tooltip"); 1351 1373 $output .= "<br /><input type=\"checkbox\" name=\"del_trainer_spell[]\" value=\"$spell[0]\" /></td>"; 1352 1374 1353 1375 if ($cel_counter >= 16) { 1354 1376 $cel_counter = 0; … … 1397 1419 $output .= maketooltip("<img src=\"".get_icon($item[0])."\" class=\"icon_border\" alt=\"\" />", "$item_datasite$item[0]", $tooltip, "item_tooltip"); 1398 1420 $output .= "<br /><input type=\"checkbox\" name=\"del_skin_items[]\" value=\"$item[0]\" /></td>"; 1399 1421 1400 1422 if ($cel_counter >= 16) { 1401 1423 $cel_counter = 0; … … 1516 1538 error($lang_creature['item_not_found']); 1517 1539 exit(); 1518 } 1540 } 1519 1541 } 1520 1542 … … 1523 1545 //DO UPDATE CREATURE TEMPLATE 1524 1546 //######################################################################################################################## 1525 //Now We are going to clone the faction variable to the H faction for newer revision support. (MeleFire) 1526 $faction_A = faction_H; 1527 //Now we are done. Yay! 1547 1528 1548 function do_update() { 1529 1549 global $mangos_db, $realm_id; … … 1531 1551 if (!isset($_POST['opp_type']) || $_POST['opp_type'] === '') redirect("creature.php?error=1"); 1532 1552 if (!isset($_POST['entry']) || $_POST['entry'] === '') redirect("creature.php?error=1"); 1533 1553 1534 1554 $sql = new SQL; 1535 1555 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); … … 1629 1649 else $equipslot3 = 0; 1630 1650 if (isset($_POST['lootid']) && $_POST['lootid'] != '') $lootid = $sql->quote_smart($_POST['lootid']); 1631 else $lootid = 0; 1651 else $lootid = 0; 1632 1652 if (isset($_POST['pickpocketloot']) && $_POST['pickpocketloot'] != '') $pickpocketloot = $sql->quote_smart($_POST['pickpocketloot']); 1633 1653 else $pickpocketloot = 0; … … 1690 1710 if (isset($_POST['del_loot_items']) && $_POST['del_loot_items'] != '') $del_loot_items = $sql->quote_smart($_POST['del_loot_items']); 1691 1711 else $del_loot_items = NULL; 1692 1712 1693 1713 if (isset($_POST['involvedrelation']) && $_POST['involvedrelation'] != '') $involvedrelation = $sql->quote_smart($_POST['involvedrelation']); 1694 1714 else $involvedrelation = 0; … … 1785 1805 if ($npcflag[$t] & 16384) $tmp = $tmp + 16384; 1786 1806 } 1787 $npcflag = ($tmp) ? $tmp : 0; 1807 $npcflag = ($tmp) ? $tmp : 0; 1788 1808 1789 1809 if ($_POST['opp_type'] == "add_new"){ … … 1806 1826 1807 1827 $sql_query = "UPDATE creature_template SET "; 1808 1828 1809 1829 $result = $sql->query("SELECT * FROM creature_template WHERE entry = '$entry'"); 1810 1830 if ($mob_templ = $sql->fetch_assoc($result)){ … … 1877 1897 $sql->free_result($result); 1878 1898 unset($mob_templ); 1879 1899 1880 1900 if (($sql_query == "UPDATE creature_template SET ")&&(!$item)&&(!$del_loot_items) 1881 1901 &&(!$del_questrelation)&&(!$questrelation)&&(!$del_involvedrelation)&&(!$involvedrelation) … … 1890 1910 } else $sql_query = ""; 1891 1911 } 1892 1912 1893 1913 if ($trainer_spell){ 1894 1914 $sql_query .= "INSERT INTO npc_trainer (entry, spell, spellcost, reqskill, reqskillvalue, reqlevel) 1895 1915 VALUES ($entry,$trainer_spell,$spellcost,$reqskill ,$reqskillvalue ,$reqlevel);\n"; 1896 1916 } 1897 1917 1898 1918 if ($del_trainer_spell){ 1899 1919 foreach($del_trainer_spell as $spell_id) … … 1905 1925 VALUES ($lootid,$item,'$ChanceOrRef', '$QuestChanceOrGroup' ,$mincount ,$maxcount ,$freeforall ,$lootcondition ,$condition_value1 ,$condition_value2);\n"; 1906 1926 } 1907 1927 1908 1928 if ($del_loot_items){ 1909 1929 foreach($del_loot_items as $item_id) … … 1915 1935 VALUES ($skinloot,$skin_item,'$skin_ChanceOrRef', '$skin_QuestChanceOrGroup' ,$skin_mincount ,$skin_maxcount ,$skin_freeforall,$skin_lootcondition ,$skin_condition_value1 ,$skin_condition_value2);\n"; 1916 1936 } 1917 1937 1918 1938 if ($del_skin_items){ 1919 1939 foreach($del_skin_items as $item_id) 1920 1940 $sql_query .= "DELETE FROM skinning_loot_template WHERE entry = $skinloot AND item = $item_id;\n"; 1921 1941 } 1922 1942 1923 1943 if ($pp_item){ 1924 1944 $sql_query .= "INSERT INTO pickpocketing_loot_template (entry, item, ChanceOrRef, QuestChanceOrGroup, mincount, maxcount, freeforall, lootcondition, condition_value1, condition_value2) … … 1934 1954 $sql_query .= "INSERT INTO creature_questrelation (id, quest) VALUES ($entry,$questrelation);\n"; 1935 1955 } 1936 1956 1937 1957 if ($involvedrelation){ 1938 1958 $sql_query .= "INSERT INTO creature_involvedrelation (id, quest) VALUES ($entry,$involvedrelation);\n"; … … 1948 1968 $sql_query .= "DELETE FROM creature_involvedrelation WHERE id = $entry AND quest = $quest_id;\n"; 1949 1969 } 1950 1970 1951 1971 if ($del_vendor_item){ 1952 1972 foreach($del_vendor_item as $item_id) 1953 1973 $sql_query .= "DELETE FROM npc_vendor WHERE entry = $entry AND item = $item_id;\n"; 1954 1974 } 1955 1975 1956 1976 if ($vendor_item){ 1957 1977 $sql_query .= "INSERT INTO npc_vendor (entry, item, maxcount, incrtime) … … 1983 2003 if ($result) redirect("creature.php?action=edit&entry=$entry&error=4"); 1984 2004 else redirect("creature.php"); 1985 2005 1986 2006 } 1987 2007 … … 2033 2053 $sql->query("DELETE FROM npc_trainer WHERE entry = '$entry'"); 2034 2054 $sql->query("DELETE FROM npc_gossip WHERE npc_guid = '$entry'"); 2035 2055 2036 2056 $sql->close(); 2037 2057 redirect("creature.php"); 2038 2058 } 2039 2059 2040 2060 2041 2061 //######################################################################################################################## 2042 2062 // DELETE ALL CREATURE SPAWNS … … 2060 2080 redirect("creature.php?action=edit&entry=$entry&error=4"); 2061 2081 } 2062 2082 2063 2083 2064 2084 //########################################################################################################################
Note:
See TracChangeset
for help on using the changeset viewer.