Changeset 113 for db/check_database.php
- Timestamp:
- Oct 27, 2007, 10:23:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
db/check_database.php
r109 r113 1 1 <?php 2 if($vlozeni_souboru == "OK"){ 2 3 $Database = array( 4 'class' => array( 5 1 => "Warrior", 6 2 => "Paladin", 7 3 => "Hunter", 8 4 => "Rogue", 9 5 => "Priest", 10 6 => "", 11 7 => "Shaman", 12 8 => "Mage", 13 9 => "Warlock", 14 10 => "", 15 11 => "Druid" 16 ), 17 'race' => array( 18 1 => "Human", 19 2 => "Orc", 20 3 => "Dwarf", 21 4 => "Night Elf", 22 5 => "Undead", 23 6 => "Tauren", 24 7 => "Gnome", 25 8 => "Troll", 26 9 => "", 27 10 => "Blood Elf", 28 11 => "Dranei" 29 ), 30 'item' => array( 31 'class' => array( 32 0 => "Consumable", 33 1 => "Container", 34 2 => "Weapon", 35 4 => "Armor", 36 5 => "Reagent", 37 6 => "Projectile", 38 7 => "Trade Goods", 39 9 => "Recipe", 40 11 => "Quiver", 41 12 => "Quest", 42 13 => "Key", 43 15 => "Miscellaneous" 44 ), 45 'subclass' => array( 46 0 => array( // Consumable 47 1 => "Food", 48 2 => "Liquid", 49 3 => "Potion (usable in combat)", 50 4 => "Scroll (usable in combat)", 51 5 => "Bandage (usable in combat)", 52 6 => "Healthstone (usable in combat)", 53 7 => "Combat Effect (usable in combat)" 54 ), 55 2 => array( // Weapon 56 0 => "One Handed Axe", 57 1 => "Two Handed Axe", 58 2 => "Bow", 59 3 => "Rifle", 60 4 => "One Handed Mace", 61 5 => "Two Handed Mace", 62 6 => "Polearm", 63 7 => "One Handed Sword", 64 8 => "Two Handed Sword", 65 10 => "Staff", 66 11 => "One Handed Exotic", 67 12 => "Two Handed Exotic", 68 13 => "Fist Weapon", 69 14 => "Miscellaneous Weapon", 70 15 => "Dagger", 71 16 => "Thrown", 72 17 => "Spear", 73 18 => "Crossbow", 74 19 => "Wand", 75 20 => "Fishing Pole" 76 ), 77 4 => array( // Armor 78 0 => "Miscellaneous", 79 1 => "Cloth", 80 2 => "Leather", 81 3 => "Mail", 82 4 => "Plate", 83 6 => "Shield" 84 ), 85 6 => array( // Projectile 86 2 => "Arrows", 87 3 => "Bullets" 88 ), 89 7 => array( // Trade Goods 90 0 => "Trade Goods", 91 1 => "Parts", 92 2 => "Explosives", 93 3 => "Devices" 94 ), 95 9 => array( // Recipe 96 0 => array("Book"), 97 1 => array("Pattern","Leatherworking"), 98 2 => array("Pattern","Tailoring"), 99 3 => array("Schematic","Engineering"), 100 4 => array("Plans","Blacksmithing"), 101 5 => array("Recipe","Cooking"), 102 6 => array("Recipe","Alchemy"), 103 7 => array("Manual","First Aid"), 104 8 => array("Formula","Enchanting"), 105 9 => array("Fishing","Manual") 106 ), 107 11 => array( // Quiver 108 2 => array("Quiver","Arrows"), 109 3 => array("Ammo Pouch","Bullets") 110 ), 111 13 => array( // Projectile 112 2 => "Arrows", 113 3 => "Bullets" 114 ) 115 ), 116 'quality' => array( 117 0 => array("Grey","Poor"), 118 1 => array("White","Common"), 119 2 => array("Green","Uncommon"), 120 3 => array("Blue","Rare"), 121 4 => array("Purple","Epic"), 122 5 => array("Orange","Legendary"), 123 6 => array("Red","Artifact") 124 ), 125 'type' => array( 126 1 => "binded", 127 2 => "Conjured", 128 4 => "Openable item", 129 16 => "Shield", 130 32 => "Totem", 131 64 => "Mount", 132 256 => "Wand", 133 512 => "Ribboned Wrapping Paper", 134 1024 => "Essence", 135 8192 => "Guild Charter", 136 32768 => "PvP Reward Item" 137 ), 138 'equip' => array( 139 1 => "Head", 140 2 => "Neck", 141 3 => "Shoulder", 142 4 => "Shirt", 143 5 => "Chest", 144 6 => "Waist", // Belt 145 7 => "Legs", // Pants 146 8 => "Feet", // Boots 147 9 => "Wrists", // Bracers 148 10 => "Hands", // Gloves 149 11 => "Finger", // Ring 150 12 => "Trinket", 151 13 => "One Hand", 152 14 => "Off Hand", // includes Shield 153 15 => "Bow", 154 16 => "Back", 155 17 => "Two Hand", 156 18 => "Bag", // include Quivers 157 19 => "Tabard", 158 20 => "Robe", 159 21 => "Main Hand", 160 22 => "Off Hand", // Misc Items 161 23 => "Tome", 162 24 => "Ammunition", 163 25 => "Thrown", 164 26 => "Gun" 165 ), 166 'AllowableClass' => array( 167 1 => "Warrior", 168 2 => "Paladin", 169 4 => "Hunter", 170 8 => "Rogue", 171 16 => "Priest", 172 64 => "Shaman", 173 128 => "Mage", 174 256 => "Warlock", 175 1024 => "Druid" 176 ), 177 'AllowableRace' => array( 178 1 => "Human", 179 2 => "Orc", 180 4 => "Dwarf", 181 8 => "Night Elf", 182 16 => "Undead", 183 32 => "Tauren", 184 64 => "Gnome", 185 128 => "Troll", 186 512 => "Blood elf", 187 1024 => "Draenei" 188 ), 189 'RequiredReputationRank' => array( 190 0 => "Hated", 191 1 => "Hostile", 192 2 => "Unfriendly", 193 3 => "Neutral", 194 4 => "Friendly", 195 5 => "Honored", 196 6 => "Reverted", 197 7 => "Exalted", 198 ), 199 'stat_type' => array( 200 0 => "Mana", 201 1 => "Health", 202 3 => "Agility", 203 4 => "Strength", 204 5 => "Intellect", 205 6 => "Spirit", 206 7 => "Stamina", 207 ), 208 'dmg_type' => array( 209 0 => "Physical", 210 1 => "Holy", 211 2 => "Fire", 212 3 => "Nature", 213 4 => "Frost", 214 5 => "Shadow", 215 6 => "Arcane" 216 ), 217 'ammo_type' => array( 218 2 => "Arrows", 219 3 => "Bullets" 220 ), 221 'spell_charges' => array( 222 0 => "Infinite charges", 223 'negative' => "Item is expendable", 224 'positive' => "Item is kept when all charges are spent" 225 ), 226 'bonding' => array( 227 1 => "Binds when Picked Up", 228 2 => "Binds when Equipped", 229 3 => "Binds when Used", 230 4 => "Quest Item" 231 ), 232 'bonding' => array( 233 1 => "Binds when Picked Up", 234 2 => "Binds when Equipped", 235 3 => "Binds when Used", 236 4 => "Quest Item" 237 ), 238 'LanguageID' => array( 239 1 => "Orcish", 240 2 => "Darnassian", 241 3 => "Taurahe", 242 6 => "Dwarvish", 243 7 => "Common", 244 8 => "Demonic", 245 9 => "Titan", 246 10 => "Thelassian", 247 11 => "Draconic", 248 12 => "Kalimag", 249 13 => "Gnomish", 250 14 => "Troll", 251 33 => "Gutterspeak" 252 ), 253 'PageMaterial' => array( 254 1 => "Parchment", 255 2 => "Stone", 256 3 => "Marble", 257 4 => "Silver", 258 5 => "Bronze" 259 ), 260 'Material' => array( 261 1 => "Metal", 262 2 => "Wood", 263 3 => "Liquid", 264 4 => "Jewelry", 265 5 => "Chain", 266 6 => "Plate", 267 7 => "Cloth", 268 8 => "Leather" 269 ), 270 'sheath' => array( 271 1 => "Two Handed Sword (on the back; tip down)", 272 2 => "Staff (on the back; tip up)", 273 3 => "One Handed Sword (on the side)", 274 4 => "Shield (on the back)", 275 5 => "Enchanter's Rod", 276 7 => "Off Hand", 277 ), 278 'BagFamily' => array( 279 0 => "", 280 1 => "Arrows", 281 2 => "Bullets", 282 3 => "Soul Shards", 283 6 => "Herbs", 284 7 => "Enchanting Supp", 285 8 => "Engineering Supp", 286 9 => "Keys", 287 10 => "Gems", 288 12 => "Mining Supp", 289 ) 290 ), 291 'quest' => array( 292 'ZoneOrSort' => array( 293 'negative' => array( 294 1 => "Epic", 295 21 => "REUSE - old wailing caverns", 296 22 => "Seasonal", 297 23 => "REUSE - old undercity one", 298 24 => "Herbalism", 299 25 => "REUSE - old scarlet monastery", 300 41 => "REUSE - old uldaman", 301 61 => "Warlock", 302 81 => "Warrior", 303 82 => "Shaman", 304 101 => "Fishing", 305 121 => "Blacksmithing", 306 141 => "Paladin", 307 161 => "Mage", 308 162 => "Rogue", 309 181 => "Alchemy", 310 182 => "Leatherworking", 311 201 => "Engineering", 312 221 => "Treasure Map", 313 241 => "REUSE - old sunken temple", 314 261 => "Hunter", 315 262 => "Priest", 316 263 => "Druid", 317 264 => "Tailoring", 318 284 => "Special", 319 304 => "Cooking", 320 324 => "First Aid", 321 344 => "Legendary", 322 364 => "Darkmoon Faire", 323 365 => "Ahn'Qiraj War", 324 366 => "Lunar Festival", 325 367 => "Reputation", 326 ), 327 'positive' => "SQL:area_table" 328 ), 329 'Type' => array( 330 1 => "Elite", 331 21 => "Life", 332 41 => "PvP", 333 62 => "Raid", 334 81 => "Dungeon", 335 82 => "World Event" 336 ), 337 /* ===================================== 338 339 RequiredRaces ¶ ??????? need to complete !!!! 340 341 Races required to get the quest. 0 means available for all races. 342 Field's value is a decimal value that must be transform to a 8 bits binary in order to be understandable. 343 In binary form, each different bit represent a different race. They're assigned as follow : 344 128 64 32 16 8 4 2 1 345 Troll Gnome Tauren Undead NightElf Dwarf Orc Human 346 347 Example : 348 Int field value : 77 349 Assigning bits from the left to the right : 350 128 64 32 16 8 4 2 1 351 Troll Gnome Tauren Undead NightElf Dwarf Orc Human 352 0 1 0 0 1 1 0 1 353 354 Then, quest is for races : Human, Dwarf, NightElf, Gnome. In other words, add the values in the above table together for the classes you want. Another example: To make a quest for Humans and Dwarves, add 1 and 4 together to get 5. 355 356 ===================================== */ 357 'SpecialFlags' => array( 358 1 => "Elite", 359 21 => "Life", 360 41 => "PvP", 361 62 => "Raid", 362 81 => "Dungeon", 363 82 => "World Event" 364 ) 365 /* ===================================== 366 367 * QUEST_SPECIAL_FLAGS_NONE = 0 368 * QUEST_SPECIAL_FLAGS_DELIVER = 1 369 * QUEST_SPECIAL_FLAGS_EXPLORATION = 2 370 * QUEST_SPECIAL_FLAGS_SPEAKTO = 4 371 * QUEST_SPECIAL_FLAGS_KILL_OR_CAST = 8 372 * QUEST_SPECIAL_FLAGS_TIMED = 16 373 * Flag 32 unknown 374 * QUEST_SPECIAL_FLAGS_REPUTATION = 64 375 376 PrevQuestId ¶ 377 378 If value > 0: Contains the previous quest id, that must be completed before this quest can be started. 379 If value < 0: Contains the parent quest id, that must be active before this quest can be started. 380 If quest have many alternative previous quests (race specific quests lead to single not race specific quest) field NextQuestId in previous quests can used for setting this dependence. 381 Mangos check completing of PrevQuestId for this quest and completing of all quests that have NextQuestId == this quest id, one completion is enough to allow starting this quest. 382 NextQuestId ¶ 383 384 If value > 0: Contains the next quest id, if PrevQuestId of that quest is not sufficient. 385 If value < 0: Contains the sub quest id, if PrevQuestId of that quest is not sufficient. 386 If quest have many alternative next quests (class specific quests lead from single not class specific quest) field PrevQuestId in next quests can used for setting this dependence. 387 ExclusiveGroup ¶ 388 389 if ExclusiveGroup? > 0 390 391 Allows to define a group of quests of which only one may be chosen and completed. 392 E.g. if from quests 1200, 1201 and 1202 only one should be allowed to be chosen, insert 1200 into ExclusiveGroup of all 3 quests. 393 394 if ExclusiveGroup? < 0 395 396 Allows to define a group of quests of which all must be completed and rewarded to start next quest. 397 E.g. if quest 1000 dependent from onw of quests 1200, 1201 and 1202 and all this quests have same negative exclusive group then all this quest mustbe completed and rewareded before quest 1000 can be started. 398 NextQuestInChain ¶ 399 400 Defines quest chains, the details of the entered quest will be automatically opened when this quest is completed. 401 Only works when the quest rewarder of this quest is the quest giver of the entered quest. 402 srcItem ¶ 403 404 Item's ID given by the quest giver at beginning of the quest. 405 Items will be deleted when quest is abandoned. 406 srcItemCount ¶ 407 408 Number of Item given at quest start. 409 SrcSpell ¶ 410 411 Spell casted on player when quest is started. Can be a buff or a learning spell. 412 Title ¶ 413 414 Title of the quest. 415 Details ¶ 416 417 Long quest's description. 418 Objectives ¶ 419 420 Objectives of the quest. 421 If empty, quest is an auto-complete quest that can be immediately finished without accepting it first. 422 OfferRewardText ¶ 423 424 First text send to the player by the NPC when completing the quest. 425 RequestItemsText ¶ 426 427 This text ist send to player, yet did not terminate the Quest and speak with NPC again! 428 EndText ¶ 429 430 This text is indicated to the player, if you open your Questlog and wars send to player ingame. No Change this! 431 ObjectiveText1-4 ¶ 432 433 Used to define non-standard objective texts. 434 ReqItemId1-4 ¶ 435 436 Item_template Id of the 1.-4. required item to complete the quest. (if any) 437 ReqItemCount1-4 ¶ 438 439 Amount of 1.-4. required items. 440 ReqSourceId1-4 ¶ 441 442 These fields are used in core quest-drop logic. They allow players to get quest drops which are not quest delivery items (ReqItem stand for this), but needed to create quest delivery by player or needed to cast ReqSpellCasts. ReqSourceId1 is the item_template id of a source item for creation of ReqItemX or casting of ReqSpellCastX. X is the value of ReqSourceRef1. Only items which have a quest drop chance (having QuestChance > 0 in *_loot_template) should be used as sources here. 443 444 The same for ReqSourceId2-4 445 You may define 1, 2, 3 or even all 4 sources for the same ReqItem/ReqSpellCast or use 4 sources for 4 ReqItems/ReqSpellCasts. 446 ReqSourceCount1-4 ¶ 447 448 Amount of ReqSourceId items the player may gather per unfinished ReqItemId or ReqSpellCast. 449 So ReqSourceId1 items will drop up to a total amount of (ReqItemCount(ReqSourceRef1) - already owned ReqItemId(ReqSourceRef1)) * ReqSourceCount1. Same for ReqSpellCast objectives. 450 ReqSourceRef1-4 ¶ 451 452 Should be 0 or 1..4. See ReqSourceId description. 453 ReqCreatureOrGOId1-4 ¶ 454 455 Value > 0: 1.-4. required creature_template ID the player needs to kill/cast on in order to complete the quest. 456 Value < 0: 1.-4. required gameobject_template ID the player needs to cast on in order to complete the quest. 457 If ReqSpellCastN > 0 then at ReqCreatureOrGOIdN must be casted spell ReqSpellCastN, if ReqSpellCastN = 0 then it must be killed. 458 ReqCreatureOrGOCount1-4 ¶ 459 460 Number of kills/casts needed on 1.-4. creature or gameobject. 461 ReqSpellCast1-4 ¶ 462 463 Spell ID of Spell that needs to be cast in order to fulfill a quest objective. 464 If ReqSpellCastN > 0 then at ReqCreatureOrGOIdN must be casted spell ReqSpellCastN, if ReqSpellCastN = 0 then it must be killed. 465 RewChoiceItemId1-6 ¶ 466 467 Id of the 1.-6. Item available for reward choice. 468 RewChoiceItemCount1 ¶ 469 470 Number of Charges in the 1.-6. rewarded item available. 471 RewItemId1-4 ¶ 472 473 1.-4. item Id given for reward (no choice). 474 RewItemCount1-4 ¶ 475 476 Number of RewItem1-4. 477 RewRepFaction1-5 ¶ 478 479 Faction Id (from Faction.dbc in this case) for which the quest give reputation points. 480 RewRepValue1-5 ¶ 481 482 Number of gain or lost reputation points for Faction1-5 at quest completion. 483 This is special reputation rewarding. Normal reputation reward to quest rewarding creature faction calculated and added automatically. 484 RewOrReqMoney ¶ 485 486 Money earned by completing the quest (if value > 0). Money quest requirement (if value < 0). 487 RewXpOrMoney ¶ 488 489 Experience or money (when player's level = maxlevel) given when completing the quest. Only given once for repeatable quests. 490 RewSpell ¶ 491 492 Spell casted at player when completing the quest. This can be learn spell and player learned some spell in result, or buff spell, for example. 493 PointMapId ¶ 494 495 MapId of a quest point of interest (POI). 496 POI will be shown on the map when quest is active. 497 PointX ¶ 498 499 X coordinate of quest POI. 500 PointY ¶ 501 502 Y coordinate of quest POI. 503 PointOpt ¶ 504 505 !!! Need info here : Feel free to document if you know. !!! 506 OfferRewardEmote, RequestItemsEmote ¶ 507 508 Emote that creature show at request quest details, show incompleted quest and completing quest 509 CompleteScript ¶ 510 511 !!! Need info here : Feel free to document if you know. !!! 512 Repeatable ¶ 513 514 Is quest repeatable? 1 yes 0 no 515 516 ===================================== */ 517 ), 518 'creep' => array( 519 'type' => array( 520 1 => "Beast", 521 2 => "Dragonkin", 522 3 => "Demon", 523 4 => "Elemental", 524 5 => "Giant", 525 6 => "Undead", 526 7 => "Humanoid", 527 8 => "Critter", 528 9 => "Mechanical", 529 10 => "Not specified", 530 11 => "Totem" ), 531 ), 532 /* ===================================== 533 534 entry ¶ 535 536 Creature's id, related to field creature.guid 537 modelid ¶ 538 539 Graphical model that client must apply on this creature. 540 name ¶ 541 542 Base name of the creature. 543 subname ¶ 544 545 Subname of the creature (if any). 546 minlevel ¶ 547 548 Creature's minimum level. Spawned creature have level in range from minlevel to maxlevel 549 maxlevel ¶ 550 551 Creature's maximum level. Spawned creature have level in range from minlevel to maxlevel 552 minhealth ¶ 553 554 Maximum creature's health points for creature level equal minlevel. Spawned creature have health in linear proportion to level position in range minlevel .. maxlevel 555 maxhealth ¶ 556 557 Maximum creature's health points for creature level equal maxlevel. Spawned creature have health in linear proportion to level position in range minlevel .. maxlevel 558 minmana ¶ 559 560 Maximum creature's mana points for creature level equal minlevel. Spawned creature have mana in linear proportion to level position in range minlevel .. maxlevel 561 maxmana ¶ 562 563 Maximum creature's mana points for creature level equal maxlevel. Spawned creature have mana in linear proportion to level position in range minlevel .. maxlevel 564 armor ¶ 565 566 Creature's armor. 567 Faction ¶ 568 569 Creature's faction. See: CreatureFaction 570 npcflag ¶ 571 572 This is way to cliet know how info you see if you clic(RMB) on NPC if is vendor if is auction in fact is menu how you see 573 Is what type of NPC it is. Stored in npc_option.npcflag 574 575 enum NPCFlags 576 Type Value Hex Comment 577 UNIT_NPC_FLAG_NONE 0 0x00000 you can't speak with npc 578 UNIT_NPC_FLAG_GOSSIP 1 0x00001 you can only speak with npc 579 UNIT_NPC_FLAG_QUESTGIVER 2 0x00002 this npc can give you quest 580 UNIT_NPC_FLAG_VENDOR 4 0x00004 vendor.. 581 UNIT_NPC_FLAG_TAXIVENDOR 8 0x00008 gryfon master and oder fly masters .... 582 UNIT_NPC_FLAG_TRAINER 16 0x00010 trainer this npc teatch you some spell 583 UNIT_NPC_FLAG_SPIRITHEALER 32 0x00020 ghost in graveyeard(visible only to dead) 584 UNIT_NPC_FLAG_SPIRITGUIDE 64 0x00040 ghost in battleground(visible only to dead) 585 UNIT_NPC_FLAG_INNKEEPER 128 0x00080 you can give to this npc your heartstone 586 UNIT_NPC_FLAG_BANKER 256 0x00100 bank in capital city 587 UNIT_NPC_FLAG_PETITIONER 512 0x00200 the guy you get the petitionpaper for signing a Guild 588 UNIT_NPC_FLAG_TABARDVENDOR 1024 0x00400 in this guy you can build tabart 589 UNIT_NPC_FLAG_BATTLEFIELDPERSON 2048 0x00800 battlemaster ... for Warsong and oder battlegrount this npc give you intro quorte 590 UNIT_NPC_FLAG_AUCTIONEER 4096 0x01000 auction house 591 UNIT_NPC_FLAG_STABLE 8192 0x02000 stable master for hunter you can keep your pet in stable 592 UNIT_NPC_FLAG_ARMORER 16384 0x04000 in this you you can repair your damaget items 593 32768 0x08000 (unused) 594 UNIT_NPC_FLAG_GUARD 65536 0x10000 guard directions help (custom flag used at sever side only 595 596 597 To see flag combinations, just use this tool: http://www.mangosproject.org/~wrs/tools/flags.php ;) 598 599 NPCs with one than one function get their flag by adding the flag values. A trainer that gives quest and sells stuff would have the NPCFLAG 16+2+4=22. It's really that easy ;) 600 speed ¶ 601 602 Creature's speed. 603 rank ¶ 604 605 Creature's honnor rank. 606 0 - Normal 607 1 - Elite 608 2 - RareElite? 609 3 - WorldBoss? 610 4 - Rare 611 612 mindmg ¶ 613 614 Creature's minimum melee damage. 615 maxdmg ¶ 616 617 Creature's maximum melee damage. 618 dmgschool ¶ 619 620 Creature's melee damage spell school (by default 0/SPELL_SCHOOL_NORMAL/physical damage). 621 attackpower ¶ 622 623 Creature's melee attack power. 624 baseattacktime ¶ 625 626 Time between each creature's melee attacks. 627 rangeattacktime ¶ 628 629 Time between each creature's range attacks. 630 flags ¶ 631 632 !!! Need info here : Feel free to describe if you know !!! 633 mount ¶ 634 635 Creature's mount model ID ... if the value is equal to zero then creature doesn't have any mount. 636 dynamicflags ¶ 637 638 !!! Need info here : Feel free to describe if you know !!! 639 size ¶ 640 641 Creature model size 1 = 100% 642 family ¶ 643 Id Family 644 1 Wolf 645 2 Cat 646 3 Spider 647 4 Bear 648 5 Boar 649 6 Crocolisk 650 7 Carrion Bird 651 8 Crab 652 9 Gorilla 653 10 [UNUSED] 654 11 Raptor 655 12 Tallstrider 656 13 [UNUSED] 657 14 [UNUSED] 658 15 Felhunter 659 16 Voidwalker 660 17 Succubus 661 18 [UNUSED] 662 19 Doomguard 663 20 Scorpid 664 21 Turtle 665 22 [UNUSED] 666 23 Imp 667 24 Bat 668 25 Hyena 669 26 Owl 670 27 Wind Serpent 671 28 Remote Control 672 29 Felguard 673 30 Dragonhawk 674 31 Ravager 675 32 Warp Stalker 676 33 Sporebat 677 34 Nether Ray 678 35 Serpent 679 bounding_radius ¶ 680 681 Radius from what u can be attacked ! 682 trainer_type ¶ 683 684 685 TRAINER_TYPE_CLASS = 0 //Train Spell your class. Must be creature_template.class == player class for training 686 TRAINER_TYPE_MOUNTS = 1 //Train Spell your race (mounts). Must be creature_template.race == player race for training 687 TRAINER_TYPE_TRADESKILLS = 2 //Train Trade skills Mining,Herb, first aid .... Pдayer must known creature_template.trainer_spell for training 688 TRAINER_TYPE_PETS = 3 //Train Pet only for hunter(train hunter train pet) creature_template.class == HUNTER == player class for training 689 690 691 trainer_spell ¶ 692 693 Spell ID. Used for check in case npcflag include trainer flag (16) and trainer_type == TRAINER_TYPE_TRADESKILLS. Player must known trainer_spell to start training 694 See : character.class. 695 class ¶ 696 697 Creature's class, like 'character.class' field. Used for check in case npcflag include trainer flag (16) and trainer_type == TRAINER_TYPE_CLASS or TRAINER_TYPE_PETS 698 See : character.class. 699 race ¶ 700 701 Creature's race, like 'character.race' field. Used for check in case npcflag include trainer flag (16) and trainer_type == TRAINER_TYPE_MOUNTS 702 See : character.race. 703 minrangedmg ¶ 704 705 Minimum creature's range damage. 706 maxrangedmg ¶ 707 708 Maximum creature's range damage. 709 rangedattackpower ¶ 710 711 Creature's ranged attack power. 712 combat_reach ¶ 713 714 The distance from the creature can hit you. 715 type ¶ 716 Id Type 717 1 Beast 718 2 Dragonkin 719 3 Demon 720 4 Elemental 721 5 Giant 722 6 Undead 723 7 Humanoid 724 8 Critter 725 9 Mechanical 726 10 Not specified 727 11 Totem 728 civilian ¶ 729 730 If is this NPC civilian or not. 731 732 If this is a boolean value (Civilian or not), why is it a int(4) ? 733 flag1 ¶ 734 735 !!! Need info here : Feel free to describe if you know !!! 736 equipmodel1 ¶ 737 738 Equipement's model of the first item weared by the creature. 739 equipmodel2 ¶ 740 741 Equipement's model of the second item weared by the creature. 742 equipmodel3 ¶ 743 744 Equipement's model of the third item weared by the creature. 745 equipinfo1 ¶ 746 747 !!! Need info here : Feel free to describe if you know !!! 748 equipinfo2 ¶ 749 750 !!! Need info here : Feel free to describe if you know !!! 751 equipinfo3 ¶ 752 753 !!! Need info here : Feel free to describe if you know !!! 754 equipslot1 ¶ 755 756 !!! Need info here : Feel free to describe if you know !!! 757 equipslot2 ¶ 758 759 !!! Need info here : Feel free to describe if you know !!! 760 equipslot3 ¶ 761 762 !!! Need info here : Feel free to describe if you know !!! 763 lootid ¶ 764 765 Refered to field loot_template.entry 766 skinloot ¶ 767 768 Type of loot if creature is skinned. 769 resistance1 ¶ 770 771 holy resitance 772 resistance2 ¶ 773 774 fire resistance 775 resistance3 ¶ 776 777 nature resistance 778 resistance4 ¶ 779 780 frost resistance 781 resistance5 ¶ 782 783 shadow resistance 784 resistance6 ¶ 785 786 arcane resistance 787 spell1 ¶ 788 789 Creature's first spell. ??? refer to game_spell.id ??? 790 spell2 ¶ 791 792 Creature's second spell. ??? refer to game_spell.id ??? 793 spell3 ¶ 794 795 Creature's third spell. ??? refer to game_spell.id ??? 796 spell4 ¶ 797 798 Creature fourth spell. ??? refer to game_spell.id ??? 799 mingold ¶ 800 801 Minimum gold drop. 802 maxgold ¶ 803 804 Maximum gold drop. 0 = creature don't drop any gold. 805 AIName ¶ 806 807 Name of the AI function creature uses. 808 MovementType? ¶ 809 810 Type of default creature movment. 811 Id Type 812 0 Idle (not move) 813 1 Random 814 2 Waypoint 815 InhabitType? ¶ 816 817 Where creature cat move and attack (bit mask). 818 Id Type 819 1 Ground 820 2 Water 821 3 Ground+Water 822 ScriptName? ¶ 823 824 Script's name creature uses. 825 826 ===================================== */ 827 'gameobject' => array( 828 'type' => array( 829 1 => "Beast", 830 2 => "Dragonkin", 831 3 => "Demon", 832 4 => "Elemental", 833 5 => "Giant", 834 6 => "Undead", 835 7 => "Humanoid", 836 8 => "Critter", 837 9 => "Mechanical", 838 10 => "Not specified", 839 11 => "Totem" ), 840 ) 841 /* ===================================== 842 843 entry 844 ID of your choice ex : 5914 and in game : .addgo 5914 845 846 type: 847 Value Name Note 848 0 DOOR 849 1 BUTTON 850 2 QUESTGIVER 851 3 CHEST 852 4 ? 853 5 GENERIC 854 6 TRAP 855 7 CHAIR 856 8 SPELL_FOCUS 857 9 TEXT 858 10 GOOBER 859 11 TRANSPORT 860 12 ? 861 13 ? "Battlement Large" 862 14 ? do not possess the parameter? 863 15 MO_TRANSPORT 864 16 DUEL_FLAG 865 17 FISHING_BOBBER 866 18 RITUAL 867 19 MAILBOX 868 20 ? 869 21 ? 870 22 SPELLCASTER 871 23 MEETING_STONE 872 24 FLAGSTAND (BG_Flag) 873 25 FISHING_HOLE 874 26 ? 875 27 CUSTOM_TELEPORTER Not supported but sended to client, can create problems in client work. 876 28 ? 877 29 BANNER? 878 879 displayId: 880 Graphic model's id sent to the client. 881 882 name: 883 Object's name. 884 885 faction: 886 Object's faction, if any. 887 888 flags: 889 !!! Need info here : Feel free to document if you know !!! 890 891 size: 892 Object's size must be set because graphic models can be resample. 893 894 sound0 - sound11: 895 Data fields specific for different type field values. Each type has unique fields. 896 897 ScriptName? 898 Script's name this object uses, if needed. 899 900 Gameobject type 0 ( DOOR ): 901 sound0 = State 902 sound1 = LockID ( ID from Lock.dbc ) 903 sound2 = flags ? 904 sound3 = flags ? 905 sound4 = 0 906 sound5 = 0 907 sound6 = 0 908 sound7 = 0 909 sound8 = 0 910 sound9 = 0 911 sound10 = 0 912 sound11 = 0 913 914 Gameobject type 1 ( BUTTON ): 915 sound0 = State 916 sound1 = LockID ( ID from Lock.dbc ) 917 sound2 = flags ? 918 sound3 = ID gameobject ( Spawned GO type 6 ) 919 sound4 = State Battleground ? 920 sound5 = 0 921 sound6 = 0 922 sound7 = 0 923 sound8 = 0 924 sound9 = 0 925 sound10 = 0 926 sound11 = 0 927 928 Gameobject type 2 ( QUESTGIVER ): 929 sound0 = LockID ( ID from Lock.dbc ) 930 sound1 = QuestLoot? ID (Quest Id to be given) 931 sound2 = 0 932 sound3 = QuestLoot? ID 933 sound4 = 0 934 sound5 = 0 935 sound6 = 0 936 sound7 = 0 937 sound8 = 0 938 sound9 = 0 939 sound10 = 0 940 sound11 = 0 941 942 Gameobject type 3 ( CHEST ): 943 sound0 = LockID ( ID from Lock.dbc ) 944 sound1 = LootID 945 sound2 = Time 946 sound3 = State 947 sound4 = MinLoot? ( Min successful loot attempts for Mining Gerbalism etc ) 948 sound5 = MaxLoot? ( Max successful loot attempts for Mining Gerbalism etc ) 949 sound6 = QuestLoot? ID 950 sound7 = ID gameobject ( Spawned GO type 6 ) 951 sound8 = QuestID ( Quest complete ) 952 sound9 = ? 953 sound10 = ? 954 sound11 = 0 955 956 Gameobject type 5 ( GENERIC ): 957 sound0 = State 958 sound1 = State 959 sound2 = 0 960 sound3 = 0 961 sound4 = 0 962 sound5 = 0 963 sound6 = 0 964 sound7 = 0 965 sound8 = 0 966 sound9 = 0 967 sound10 = 0 968 sound11 = 0 969 970 Gameobject type 6 ( TRAP ): 971 sound0 = LockID ( ID from Lock.dbc ) 972 sound1 = Time 973 sound2 = Distance 974 sound3 = Spell ID 975 sound4 = State ? 976 sound5 = Time/Distance ? 977 sound6 = Chain Effect 978 sound7 = Time/Distance for Chain Effect 979 sound8 = 0 980 sound9 = 0 981 sound10 = 0 982 sound11 = 0 983 984 Gameobject type 7 ( CHAIR ): 985 sound0 = State 986 sound1 = Distance/ State ? 987 sound2 = 0 988 sound3 = 0 989 sound4 = 0 990 sound5 = 0 991 sound6 = 0 992 sound7 = 0 993 sound8 = 0 994 sound9 = 0 995 sound10 = 0 996 sound11 = 0 997 998 Gameobject type 8 ( SPELL_FOCUS ): 999 sound0 = ID SpellFocusObject.dbc. See SpellFocusObjectID 1000 sound1 = Distance 1001 sound2 = ID gameobject ( Spawned GO type 6 ) 1002 sound3 = State ? 1003 sound4 = 0 1004 sound5 = 0 1005 sound6 = 0 1006 sound7 = 0 1007 sound8 = 0 1008 sound9 = 0 1009 sound10 = 0 1010 sound11 = 0 1011 1012 Gameobject type 9 ( TEXT ): 1013 sound0 = Page ID 1014 sound1 = 0 1015 sound2 = ID from PageTextMaterial?.dbc 1016 sound3 = 0 1017 sound4 = 0 1018 sound5 = 0 1019 sound6 = 0 1020 sound7 = 0 1021 sound8 = 0 1022 sound9 = 0 1023 sound10 = 0 1024 sound11 = 0 1025 1026 Gameobject type 10 ( GOOBER ): 1027 sound0 = LockID ( ID from Lock.dbc ) 1028 sound1 = flags ? 1029 sound2 = QuestLoot? ID ? 1030 sound3 = flags ? 1031 sound4 = State ? 1032 sound5 = State ? 1033 sound6 = 0 1034 sound7 = 0 1035 sound8 = 0 1036 sound9 = 0 1037 sound10 = Spell ID 1038 sound11 = 0 1039 1040 Gameobject type 18 ( RITUAL ): 1041 sound0 = Time ? 1042 sound1 = Spell ID 1043 sound2 = Spell ID 1044 sound3 = 0 1045 sound4 = ? 1046 sound5 = ? 1047 sound6 = 0 1048 sound7 = 0 1049 sound8 = 0 1050 sound9 = 0 1051 sound10 = 0 1052 sound11 = 0 1053 1054 Gameobject type 22 ( SPELLCASTER ): 1055 sound0 = Spell ID 1056 sound1 = 0 1057 sound2 = State ? 1058 sound3 = 0 1059 sound4 = 0 1060 sound5 = 0 1061 sound6 = 0 1062 sound7 = 0 1063 sound8 = 0 1064 sound9 = 0 1065 sound10 = 0 1066 sound11 = 0 1067 1068 Gameobject type 24 ( FLAGSTAND ): 1069 sound0 = 0 1070 sound1 = Spell ID 1071 sound2 = ? 1072 sound3 = Spell ID 1073 sound4 = Spell ID 1074 sound5 = ? 1075 sound6 = 0 1076 sound7 = 0 1077 sound8 = 0 1078 sound9 = 0 1079 sound10 = 0 1080 sound11 = 0 1081 1082 Gameobject type 27 ( CUSTOM_TELEPORTER ): 1083 sound0 = areatrigger_template.id 1084 sound1 = 0 1085 sound2 = 0 1086 sound3 = 0 1087 sound4 = 0 1088 sound5 = 0 1089 sound6 = 0 1090 sound7 = 0 1091 sound8 = 0 1092 sound9 = 0 1093 sound10 = 0 1094 sound11 = 0 1095 1096 ===================================== */ 1097 ); 1098 3 1099 ?> 4 5 6 7 <?php8 };9 ?>
Note:
See TracChangeset
for help on using the changeset viewer.