PageRenderTime 121ms CodeModel.GetById 75ms RepoModel.GetById 1ms app.codeStats 2ms

/sql/YTDB_515_to_TDB_TC2_32_6213_Converter.sql

https://bitbucket.org/unix/om_tc3
SQL | 10416 lines | 10341 code | 48 blank | 27 comment | 0 complexity | 8c6eff24eb833daca85560b9d1c942ef MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, CC-BY-SA-3.0

Large files files are truncated, but you can click here to view the full file

  1. -- =================================================================================================
  2. -- THIS CONVERTER IS FOR YTDB 515 TO CONVERT IT FOR USE WITH TRINITY CORE 2 Revision 6054
  3. -- =================================================================================================
  4. -- =========================
  5. -- ADD ALL MISSING TABLES
  6. -- =========================
  7. DROP TABLE IF EXISTS `access_requirement`;
  8. CREATE TABLE `access_requirement` (
  9. `id` bigint(20) unsigned NOT NULL COMMENT 'Identifier',
  10. `level_min` tinyint(3) unsigned NOT NULL default '0',
  11. `heroic_level_min` tinyint(3) unsigned NOT NULL default '0',
  12. `level_max` tinyint(3) unsigned NOT NULL default '0',
  13. `item` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  14. `item2` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  15. `heroic_key` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  16. `heroic_key2` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  17. `quest_done` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  18. `quest_failed_text` TEXT NULL DEFAULT NULL,
  19. `heroic_quest_done` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  20. `heroic_quest_failed_text` TEXT NULL DEFAULT NULL,
  21. `comment` TEXT NULL DEFAULT NULL,
  22. `map` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Access Requirements';
  25. DROP TABLE IF EXISTS `autobroadcast`;
  26. CREATE TABLE `autobroadcast` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `text` longtext NOT NULL,
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  31. DROP TABLE IF EXISTS `command`;
  32. CREATE TABLE `command` (
  33. `name` varchar(50) NOT NULL default '',
  34. `security` tinyint(3) unsigned NOT NULL default '0',
  35. `help` longtext,
  36. PRIMARY KEY (`name`)
  37. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Chat System';
  38. DROP TABLE IF EXISTS `creature_formations`;
  39. CREATE TABLE `creature_formations` (
  40. `leaderGUID` int(11) unsigned NOT NULL,
  41. `memberGUID` int(11) unsigned NOT NULL,
  42. `dist` float unsigned NOT NULL,
  43. `angle` float unsigned NOT NULL,
  44. `groupAI` int(11) unsigned NOT NULL,
  45. PRIMARY KEY (`memberGUID`));
  46. DROP TABLE IF EXISTS `creature_linked_respawn`;
  47. CREATE TABLE `creature_linked_respawn` (
  48. `guid` int(10) unsigned NOT NULL COMMENT 'dependent creature',
  49. `linkedGuid` int(10) unsigned NOT NULL COMMENT 'master creature',
  50. PRIMARY KEY (`guid`)
  51. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Creature Respawn Link System';
  52. DROP TABLE IF EXISTS `game_event`;
  53. CREATE TABLE `game_event` (
  54. `entry` mediumint(8) unsigned NOT NULL COMMENT 'Entry of the game event',
  55. `start_time` timestamp NOT NULL default '0000-00-00 00:00:00' COMMENT 'Absolute start date, the event will never start before',
  56. `end_time` timestamp NOT NULL default '0000-00-00 00:00:00' COMMENT 'Absolute end date, the event will never start afler',
  57. `occurence` bigint(20) unsigned NOT NULL default '5184000' COMMENT 'Delay in minutes between occurences of the event',
  58. `length` bigint(20) unsigned NOT NULL default '2592000' COMMENT 'Length in minutes of the event',
  59. `holiday` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Client side holiday id',
  60. `description` varchar(255) default NULL COMMENT 'Description of the event displayed in console',
  61. `world_event` tinyint(3) unsigned NOT NULL default '0' COMMENT '0 if normal event, 1 if world event',
  62. PRIMARY KEY (`entry`)
  63. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  64. DROP TABLE IF EXISTS `game_event_battleground_holiday`;
  65. CREATE TABLE `game_event_battleground_holiday` (
  66. `event` int(10) unsigned NOT NULL,
  67. `bgflag` int(10) unsigned NOT NULL default '0',
  68. PRIMARY KEY (`event`)
  69. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  70. DROP TABLE IF EXISTS `game_event_condition`;
  71. CREATE TABLE `game_event_condition` (
  72. `event_id` mediumint(8) unsigned NOT NULL default '0',
  73. `condition_id` mediumint(8) unsigned NOT NULL default '0',
  74. `req_num` float default '0',
  75. `max_world_state_field` smallint(5) unsigned NOT NULL default '0',
  76. `done_world_state_field` smallint(5) unsigned NOT NULL default '0',
  77. `description` varchar(25) NOT NULL default '',
  78. PRIMARY KEY (`event_id`,`condition_id`)
  79. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  80. DROP TABLE IF EXISTS `game_event_gameobject_quest`;
  81. CREATE TABLE `game_event_gameobject_quest` (
  82. `id` mediumint(8) unsigned NOT NULL default '0',
  83. `quest` mediumint(8) unsigned NOT NULL default '0',
  84. `event` smallint(5) unsigned NOT NULL default '0',
  85. PRIMARY KEY (`quest`,`event`,`id`)
  86. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  87. DROP TABLE IF EXISTS `game_event_npc_gossip`;
  88. CREATE TABLE `game_event_npc_gossip` (
  89. `guid` int(10) unsigned NOT NULL,
  90. `event_id` mediumint(8) unsigned NOT NULL default '0',
  91. `textid` mediumint(8) unsigned NOT NULL default '0',
  92. PRIMARY KEY (`guid`)
  93. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  94. DROP TABLE IF EXISTS `game_event_npc_vendor`;
  95. CREATE TABLE `game_event_npc_vendor` (
  96. `event` mediumint(8) unsigned NOT NULL default '0',
  97. `guid` mediumint(8) unsigned NOT NULL default '0',
  98. `item` mediumint(8) unsigned NOT NULL default '0',
  99. `maxcount` mediumint(8) unsigned NOT NULL default '0',
  100. `incrtime` mediumint(8) unsigned NOT NULL default '0',
  101. `ExtendedCost` mediumint(8) unsigned NOT NULL default '0',
  102. PRIMARY KEY (`guid`,`item`)
  103. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  104. DROP TABLE IF EXISTS `game_event_npcflag`;
  105. CREATE TABLE `game_event_npcflag` (
  106. `guid` mediumint(8) unsigned NOT NULL default '0',
  107. `event_id` mediumint(8) unsigned NOT NULL default '0',
  108. `npcflag` int(10) unsigned NOT NULL default '0',
  109. PRIMARY KEY (`guid`,`event_id`)
  110. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  111. DROP TABLE IF EXISTS `game_event_prerequisite`;
  112. CREATE TABLE `game_event_prerequisite` (
  113. `event_id` mediumint(8) unsigned NOT NULL,
  114. `prerequisite_event` mediumint(8) unsigned NOT NULL,
  115. PRIMARY KEY (`event_id`,`prerequisite_event`)
  116. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  117. DROP TABLE IF EXISTS `game_event_quest_condition`;
  118. CREATE TABLE `game_event_quest_condition` (
  119. `quest` mediumint(8) unsigned NOT NULL default '0',
  120. `event_id` mediumint(8) unsigned NOT NULL default '0',
  121. `condition_id` mediumint(8) unsigned NOT NULL default '0',
  122. `num` float default '0',
  123. PRIMARY KEY (`quest`)
  124. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  125. DROP TABLE IF EXISTS `playercreateinfo_spell_custom`;
  126. CREATE TABLE `playercreateinfo_spell_custom` (
  127. `race` tinyint(3) unsigned NOT NULL default '0',
  128. `class` tinyint(3) unsigned NOT NULL default '0',
  129. `Spell` mediumint(8) unsigned NOT NULL default '0',
  130. `Note` varchar(255) default NULL,
  131. `Active` tinyint(3) unsigned NOT NULL default '1',
  132. PRIMARY KEY (`race`,`class`,`Spell`)
  133. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  134. DROP TABLE IF EXISTS `spell_bonus_data`;
  135. CREATE TABLE `spell_bonus_data` (
  136. `entry` smallint(5) unsigned NOT NULL,
  137. `direct_bonus` float NOT NULL default '0',
  138. `dot_bonus` float NOT NULL default '0',
  139. `ap_bonus` float NOT NULL default '0',
  140. `ap_dot_bonus` float NOT NULL default '0',
  141. `comments` varchar(255) default NULL,
  142. PRIMARY KEY (`entry`)
  143. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  144. DROP TABLE IF EXISTS `spell_dbc`;
  145. CREATE TABLE `spell_dbc` (
  146. `Id` INT UNSIGNED NOT NULL,
  147. `Dispel` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  148. `Mechanic` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  149. `Attributes` INT UNSIGNED NOT NULL DEFAULT 0,
  150. `AttributesEx` INT UNSIGNED NOT NULL DEFAULT 0,
  151. `AttributesEx2` INT UNSIGNED NOT NULL DEFAULT 0,
  152. `AttributesEx3` INT UNSIGNED NOT NULL DEFAULT 0,
  153. `AttributesEx4` INT UNSIGNED NOT NULL DEFAULT 0,
  154. `AttributesEx5` INT UNSIGNED NOT NULL DEFAULT 0,
  155. `Targets` INT UNSIGNED NOT NULL DEFAULT 0,
  156. `CastingTimeIndex` TINYINT UNSIGNED NOT NULL DEFAULT 1,
  157. `AuraInterruptFlags` INT UNSIGNED NOT NULL DEFAULT 0,
  158. `ProcFlags` INT UNSIGNED NOT NULL DEFAULT 0,
  159. `ProcChance` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  160. `ProcCharges` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  161. `MaxLevel` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  162. `BaseLevel` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  163. `SpellLevel` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  164. `DurationIndex` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  165. `RangeIndex` TINYINT UNSIGNED NOT NULL DEFAULT 1,
  166. `StackAmount` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  167. `EquippedItemClass` INT NOT NULL DEFAULT -1,
  168. `EquippedItemSubClassMask` INT NOT NULL DEFAULT 0 DEFAULT 0,
  169. `EquippedItemInventoryTypeMask` INT NOT NULL DEFAULT 0 DEFAULT 0,
  170. `Effect1` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  171. `Effect2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  172. `Effect3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  173. `EffectDieSides1` INT NOT NULL DEFAULT 0,
  174. `EffectDieSides2` INT NOT NULL DEFAULT 0,
  175. `EffectDieSides3` INT NOT NULL DEFAULT 0,
  176. `EffectBaseDice1` INT NOT NULL DEFAULT 0,
  177. `EffectBaseDice2` INT NOT NULL DEFAULT 0,
  178. `EffectBaseDice3` INT NOT NULL DEFAULT 0,
  179. `EffectDicePerLevel1` FLOAT NOT NULL DEFAULT 0,
  180. `EffectDicePerLevel2` FLOAT NOT NULL DEFAULT 0,
  181. `EffectDicePerLevel3` FLOAT NOT NULL DEFAULT 0,
  182. `EffectRealPointsPerLevel1` FLOAT NOT NULL DEFAULT 0,
  183. `EffectRealPointsPerLevel2` FLOAT NOT NULL DEFAULT 0,
  184. `EffectRealPointsPerLevel3` FLOAT NOT NULL DEFAULT 0,
  185. `EffectBasePoints1` INT NOT NULL DEFAULT 0,
  186. `EffectBasePoints2` INT NOT NULL DEFAULT 0,
  187. `EffectBasePoints3` INT NOT NULL DEFAULT 0,
  188. `EffectMechanic1` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  189. `EffectMechanic2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  190. `EffectMechanic3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  191. `EffectImplicitTargetA1` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  192. `EffectImplicitTargetA2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  193. `EffectImplicitTargetA3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  194. `EffectImplicitTargetB1` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  195. `EffectImplicitTargetB2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  196. `EffectImplicitTargetB3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  197. `EffectRadiusIndex1` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  198. `EffectRadiusIndex2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  199. `EffectRadiusIndex3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  200. `EffectApplyAuraName1` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  201. `EffectApplyAuraName2` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  202. `EffectApplyAuraName3` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
  203. `EffectAmplitude1` INT NOT NULL DEFAULT 0,
  204. `EffectAmplitude2` INT NOT NULL DEFAULT 0,
  205. `EffectAmplitude3` INT NOT NULL DEFAULT 0,
  206. `EffectMultipleValue1` FLOAT NOT NULL DEFAULT 0,
  207. `EffectMultipleValue2` FLOAT NOT NULL DEFAULT 0,
  208. `EffectMultipleValue3` FLOAT NOT NULL DEFAULT 0,
  209. `EffectMiscValue1` INT NOT NULL DEFAULT 0,
  210. `EffectMiscValue2` INT NOT NULL DEFAULT 0,
  211. `EffectMiscValue3` INT NOT NULL DEFAULT 0,
  212. `EffectMiscValueB1` INT NOT NULL DEFAULT 0,
  213. `EffectMiscValueB2` INT NOT NULL DEFAULT 0,
  214. `EffectMiscValueB3` INT NOT NULL DEFAULT 0,
  215. `EffectTriggerSpell1` INT UNSIGNED NOT NULL DEFAULT 0,
  216. `EffectTriggerSpell2` INT UNSIGNED NOT NULL DEFAULT 0,
  217. `EffectTriggerSpell3` INT UNSIGNED NOT NULL DEFAULT 0,
  218. `EffectSpellClassMaskA1` INT UNSIGNED NOT NULL DEFAULT 0,
  219. `EffectSpellClassMaskA2` INT UNSIGNED NOT NULL DEFAULT 0,
  220. `EffectSpellClassMaskA3` INT UNSIGNED NOT NULL DEFAULT 0,
  221. `EffectSpellClassMaskB1` INT UNSIGNED NOT NULL DEFAULT 0,
  222. `EffectSpellClassMaskB2` INT UNSIGNED NOT NULL DEFAULT 0,
  223. `EffectSpellClassMaskB3` INT UNSIGNED NOT NULL DEFAULT 0,
  224. `EffectSpellClassMaskC1` INT UNSIGNED NOT NULL DEFAULT 0,
  225. `EffectSpellClassMaskC2` INT UNSIGNED NOT NULL DEFAULT 0,
  226. `EffectSpellClassMaskC3` INT UNSIGNED NOT NULL DEFAULT 0,
  227. `MaxTargetLevel` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  228. `SpellFamilyName` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  229. `SpellFamilyFlags1` INT UNSIGNED NOT NULL DEFAULT 0,
  230. `SpellFamilyFlags2` INT UNSIGNED NOT NULL DEFAULT 0,
  231. `SpellFamilyFlags3` INT UNSIGNED NOT NULL DEFAULT 0,
  232. `MaxAffectedTargets` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  233. `DmgClass` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  234. `PreventionType` TINYINT UNSIGNED NOT NULL DEFAULT 0,
  235. `DmgMultiplier1` FLOAT NOT NULL DEFAULT 0,
  236. `DmgMultiplier2` FLOAT NOT NULL DEFAULT 0,
  237. `DmgMultiplier3` FLOAT NOT NULL DEFAULT 0,
  238. `AreaGroupId` INT NOT NULL DEFAULT 0,
  239. `SchoolMask` INT UNSIGNED NOT NULL DEFAULT 0,
  240. `Comment` TEXT NOT NULL,
  241. PRIMARY KEY (`id`)
  242. )ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom spell.dbc entries';
  243. DROP TABLE IF EXISTS `spell_disabled`;
  244. CREATE TABLE `spell_disabled` (
  245. `entry` int(11) unsigned NOT NULL default '0' COMMENT 'Spell entry',
  246. `disable_mask` int(8) unsigned NOT NULL default '0',
  247. `comment` varchar(64) NOT NULL default '',
  248. PRIMARY KEY (`entry`)
  249. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Disabled Spell System';
  250. DROP TABLE IF EXISTS `spell_enchant_proc_data`;
  251. CREATE TABLE `spell_enchant_proc_data` (
  252. `entry` int(10) unsigned NOT NULL,
  253. `customChance` int(10) unsigned NOT NULL default '0',
  254. `PPMChance` float unsigned NOT NULL default '0',
  255. `procEx` float unsigned NOT NULL default '0'
  256. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Spell enchant proc data';
  257. DROP TABLE IF EXISTS `spell_linked_spell`;
  258. CREATE TABLE `spell_linked_spell` (
  259. `spell_trigger` mediumint(8) NOT NULL,
  260. `spell_effect` mediumint(8) NOT NULL default '0',
  261. `type` tinyint(3) unsigned NOT NULL default '0',
  262. `comment` text NOT NULL,
  263. UNIQUE KEY `trigger_effect_type` (`spell_trigger`,`spell_effect`,`type`)
  264. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Spell System';
  265. DROP TABLE IF EXISTS `spell_pet_auras`;
  266. CREATE TABLE `spell_pet_auras` (
  267. `spell` mediumint(8) unsigned NOT NULL COMMENT 'dummy spell id',
  268. `effectId` tinyint(3) unsigned NOT NULL default '0',
  269. `pet` mediumint(8) unsigned NOT NULL default '0' COMMENT 'pet id; 0 = all',
  270. `aura` mediumint(8) unsigned NOT NULL COMMENT 'pet aura id',
  271. PRIMARY KEY (`spell`,`effectId`,`pet`)
  272. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  273. DROP TABLE IF EXISTS `spell_required`;
  274. CREATE TABLE `spell_required` (
  275. `spell_id` mediumint(9) NOT NULL default '0',
  276. `req_spell` mediumint(9) NOT NULL default '0',
  277. PRIMARY KEY (`spell_id`)
  278. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Spell Additional Data';
  279. DROP TABLE IF EXISTS `trinity_string`;
  280. CREATE TABLE `trinity_string` (
  281. `entry` mediumint(8) unsigned NOT NULL default '0',
  282. `content_default` text NOT NULL,
  283. `content_loc1` text,
  284. `content_loc2` text,
  285. `content_loc3` text,
  286. `content_loc4` text,
  287. `content_loc5` text,
  288. `content_loc6` text,
  289. `content_loc7` text,
  290. `content_loc8` text,
  291. PRIMARY KEY (`entry`)
  292. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  293. DROP TABLE IF EXISTS `transport_events`;
  294. CREATE TABLE `transport_events` (
  295. `entry` int(11) unsigned NOT NULL default '0',
  296. `waypoint_id` int(11) unsigned NOT NULL default '0',
  297. `event_id` int(11) unsigned NOT NULL default '0'
  298. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  299. DROP TABLE IF EXISTS `version`;
  300. CREATE TABLE `version` (
  301. `core_version` varchar(120) DEFAULT NULL COMMENT 'Core revision dumped at startup.',
  302. `core_revision` varchar(120) DEFAULT NULL,
  303. `db_version` varchar(120) DEFAULT NULL COMMENT 'Version of world DB.',
  304. `script_version` varchar(120) default NULL COMMENT 'Version of scripts DB.',
  305. `cache_id` int(10) default '0'
  306. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Version Notes';
  307. -- ======================================
  308. -- CLEAR CONFLICTING SD2 TABLES
  309. -- ======================================
  310. DROP TABLE IF EXISTS `custom_texts`;
  311. CREATE TABLE `custom_texts` (
  312. `entry` mediumint(8) NOT NULL,
  313. `content_default` text NOT NULL,
  314. `content_loc1` text,
  315. `content_loc2` text,
  316. `content_loc3` text,
  317. `content_loc4` text,
  318. `content_loc5` text,
  319. `content_loc6` text,
  320. `content_loc7` text,
  321. `content_loc8` text,
  322. `sound` mediumint(8) unsigned NOT NULL default '0',
  323. `type` tinyint unsigned NOT NULL default '0',
  324. `language` tinyint unsigned NOT NULL default '0',
  325. `emote` smallint(5) UNSIGNED NOT NULL default '0',
  326. `comment` text,
  327. PRIMARY KEY (`entry`)
  328. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom Texts';
  329. DROP TABLE IF EXISTS `script_texts`;
  330. CREATE TABLE `script_texts` (
  331. `npc_entry` mediumint(8) NOT NULL default '0' COMMENT 'creature_template entry',
  332. `entry` mediumint(8) NOT NULL,
  333. `content_default` text NOT NULL,
  334. `content_loc1` text,
  335. `content_loc2` text,
  336. `content_loc3` text,
  337. `content_loc4` text,
  338. `content_loc5` text,
  339. `content_loc6` text,
  340. `content_loc7` text,
  341. `content_loc8` text,
  342. `sound` mediumint(8) unsigned NOT NULL default '0',
  343. `type` tinyint(3) unsigned NOT NULL default '0',
  344. `language` tinyint(3) unsigned NOT NULL default '0',
  345. `emote` smallint(5) unsigned NOT NULL default '0',
  346. `comment` text,
  347. PRIMARY KEY (`npc_entry`,`entry`)
  348. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
  349. DROP TABLE IF EXISTS script_waypoint;
  350. CREATE TABLE script_waypoint (
  351. entry mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'creature_template entry',
  352. pointid mediumint(8) unsigned NOT NULL DEFAULT '0',
  353. location_x float NOT NULL DEFAULT '0',
  354. location_y float NOT NULL DEFAULT '0',
  355. location_z float NOT NULL DEFAULT '0',
  356. waittime int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'waittime in millisecs',
  357. point_comment text,
  358. PRIMARY KEY (entry, pointid)
  359. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Creature waypoints';
  360. -- ============================================
  361. -- ADD NEW COLUMNS TO TABLES AS REQUIRED
  362. -- ============================================
  363. ALTER TABLE areatrigger_teleport ADD COLUMN access_id bigint(20) unsigned NOT NULL DEFAULT '0' AFTER name;
  364. ALTER TABLE creature_template ADD COLUMN spell5 mediumint(8) unsigned NOT NULL default '0' AFTER spell4;
  365. ALTER TABLE creature_template ADD COLUMN spell6 mediumint(8) unsigned NOT NULL default '0' AFTER spell5;
  366. ALTER TABLE creature_template ADD COLUMN spell7 mediumint(8) unsigned NOT NULL default '0' AFTER spell6;
  367. ALTER TABLE creature_template ADD COLUMN spell8 mediumint(8) unsigned NOT NULL default '0' AFTER spell7;
  368. ALTER TABLE creature_template ADD COLUMN VehicleId mediumint(8) unsigned NOT NULL DEFAULT '0' AFTER PetSpellDataId;
  369. ALTER TABLE instance_template ADD COLUMN access_id bigint(20) unsigned NOT NULL DEFAULT '0' AFTER reset_delay;
  370. ALTER TABLE `npc_spellclick_spells` ADD `aura_required` INT(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'player without aura cant click' AFTER `cast_flags`;
  371. ALTER TABLE `npc_spellclick_spells` ADD `aura_forbidden` INT(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'player with aura cant click' AFTER `aura_required`;
  372. ALTER TABLE `npc_spellclick_spells` ADD `user_type` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'relation with summoner: 0-no 1-friendly 2-raid 3-party player can click' AFTER `aura_forbidden`;
  373. ALTER TABLE pool_creature ADD COLUMN comment VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER chance;
  374. ALTER TABLE pool_template ADD COLUMN comment VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER max_limit;
  375. ALTER TABLE `item_template` MODIFY `stackable` int;
  376. ALTER TABLE `creature_template` CHANGE COLUMN `modelid_A` `modelid1` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0;
  377. ALTER TABLE `creature_template` CHANGE COLUMN `modelid_A2` `modelid2` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0;
  378. ALTER TABLE `creature_template` CHANGE COLUMN `modelid_H` `modelid3` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0;
  379. ALTER TABLE `creature_template` CHANGE COLUMN `modelid_H2` `modelid4` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0;
  380. ALTER TABLE `creature_addon` ADD `path_id` int(11) unsigned NOT NULL default '0' AFTER `guid`;
  381. ALTER TABLE `creature_template_addon` ADD `path_id` int(11) unsigned NOT NULL default '0' AFTER `entry`;
  382. -- ==================================
  383. -- INSTANCE TEMPLATE CONVERSION
  384. -- ==================================
  385. INSERT INTO `access_requirement` (id, item, item2, heroic_key, heroic_key2, quest_done, quest_failed_text, heroic_quest_done, map) SELECT id, required_item, required_item2, heroic_key, heroic_key2, required_quest_done, required_failed_text, required_quest_done_heroic, target_map FROM `areatrigger_teleport`;
  386. UPDATE areatrigger_teleport SET access_id = id ;
  387. UPDATE access_requirement a, instance_template b SET a.level_max = b.levelmax, a.level_min = b.levelmin WHERE a.map = b.map;
  388. UPDATE instance_template, access_requirement SET instance_template.access_id = access_requirement.id WHERE instance_template.map = access_requirement.map;
  389. ALTER TABLE access_requirement DROP COLUMN map;
  390. UPDATE access_requirement SET level_min = 58 WHERE id = 4352;
  391. UPDATE access_requirement SET level_min = 58 WHERE id = 4354;
  392. UPDATE access_requirement SET level_max = 0; -- TEMP FIX UNTIL TRINITY FIXES USE OF LEVEL_MAX FOR MEETING STONES ONLY
  393. -- ==============================================
  394. -- UNUSED MANGOS TABLE AND COLUMN CLEANUP
  395. -- ==============================================
  396. DROP TABLE IF EXISTS `db_version_ytdb`;
  397. DROP TABLE IF EXISTS `creature_battleground`, `gameobject_battleground`;
  398. DROP TABLE IF EXISTS `pet_levelspells`;
  399. DROP TABLE IF EXISTS `spell_chain`;
  400. DROP TABLE IF EXISTS `creature_movement`;
  401. DROP TABLE IF EXISTS `db_version`;
  402. DROP TABLE IF EXISTS `mangos_string`;
  403. ALTER TABLE areatrigger_teleport DROP COLUMN required_level;
  404. ALTER TABLE areatrigger_teleport DROP COLUMN required_item;
  405. ALTER TABLE areatrigger_teleport DROP COLUMN required_item2;
  406. ALTER TABLE areatrigger_teleport DROP COLUMN heroic_key;
  407. ALTER TABLE areatrigger_teleport DROP COLUMN heroic_key2;
  408. ALTER TABLE areatrigger_teleport DROP COLUMN required_quest_done;
  409. ALTER TABLE areatrigger_teleport DROP COLUMN required_quest_done_heroic;
  410. ALTER TABLE areatrigger_teleport DROP COLUMN required_failed_text;
  411. ALTER TABLE instance_template DROP COLUMN levelMin;
  412. ALTER TABLE instance_template DROP COLUMN levelMax;
  413. -- =======================================================================================================
  414. -- TRINITY SPECIFIC TABLE DATA - EVERYTHING FROM HERE AND BELOW PLACE THESE IN SEPERATE SQL FROM CONVERTER
  415. -- =======================================================================================================
  416. INSERT INTO `spell_pet_auras` VALUES
  417. (19028, 0, 0, 25228),
  418. (19578, 0, 0, 19579),
  419. (20895, 0, 0, 24529),
  420. (28757, 0, 0, 28758),
  421. (35029, 0, 0, 35060),
  422. (35030, 0, 0, 35061),
  423. (35691, 0, 0, 35696),
  424. (35692, 0, 0, 35696),
  425. (35693, 0, 0, 35696),
  426. (56314, 0, 0, 57447),
  427. (56314, 1, 0, 57485),
  428. (56315, 0, 0, 57452),
  429. (56315, 1, 0, 57484),
  430. (56316, 0, 0, 57453),
  431. (56316, 1, 0, 57483),
  432. (56317, 0, 0, 57457),
  433. (56317, 1, 0, 57482),
  434. (56318, 0, 0, 57458),
  435. (56318, 1, 0, 57475),
  436. (23785, 0, 416, 23759),
  437. (23822, 0, 416, 23826),
  438. (23823, 0, 416, 23827),
  439. (23824, 0, 416, 23828),
  440. (23825, 0, 416, 23829),
  441. (23785, 0, 417, 23762),
  442. (23822, 0, 417, 23837),
  443. (23823, 0, 417, 23838),
  444. (23824, 0, 417, 23839),
  445. (23825, 0, 417, 23840),
  446. (23785, 0, 1860, 23760),
  447. (23822, 0, 1860, 23841),
  448. (23823, 0, 1860, 23842),
  449. (23824, 0, 1860, 23843),
  450. (23825, 0, 1860, 23844),
  451. (23785, 0, 1863, 23761),
  452. (23822, 0, 1863, 23833),
  453. (23823, 0, 1863, 23834),
  454. (23824, 0, 1863, 23835),
  455. (23825, 0, 1863, 23836),
  456. (23785, 0, 17252, 35702),
  457. (23822, 0, 17252, 35703),
  458. (23823, 0, 17252, 35704),
  459. (23824, 0, 17252, 35705),
  460. (23825, 0, 17252, 35706);
  461. INSERT INTO `command` (`name`, `security`, `help`) VALUES
  462. ('account addon',3,'Syntax: .account addon #addon\nSet expansion addon level allowed. Addon values: 0 - normal, 1 - tbc, 2 - wotlk.'),
  463. ('account create',4,'Syntax: .account create $account $password\r\n\r\nCreate account and set password to it.'),
  464. ('account delete',4,'Syntax: .account delete $account\r\n\r\nDelete account with all characters.'),
  465. ('account lock',0,'Syntax: .account lock [on|off]\r\n\r\nAllow login from account only from current used IP or remove this requirement.'),
  466. ('account onlinelist',4,'Syntax: .account onlinelist\r\n\r\nShow list of online accounts.'),
  467. ('account password',0,'Syntax: .account password $old_password $new_password $new_password\r\n\r\nChange your account password.'),
  468. ('account set addon',3,'Syntax: .account set addon [$account] #addon\r\n\r\nSet user (possible targeted) expansion addon level allowed. Addon values: 0 - normal, 1 - tbc, 2 - wotlk.'),
  469. ('account set gmlevel',4,'Syntax: .account set gmlevel [$account] #level\r\n\r\nSet the security level for targeted player (can\'t be used at self) or for account $name to a level of #level.\r\n\r\n#level may range from 0 to 3.'),
  470. ('account set password',4,'Syntax: .account set password $account $password $password\r\n\r\nSet password for account.'),
  471. ('account set',3,'Syntax: .account set $subcommand\nType .account set to see the list of possible subcommands or .help account set $subcommand to see info on subcommands'),
  472. ('account',0,'Syntax: .account\r\n\r\nDisplay the access level of your account.'),
  473. ('additem',3,'Syntax: .additem #itemid/[#itemname]/#shift-click-item-link #itemcount\r\n\r\nAdds the specified number of items of id #itemid (or exact (!) name $itemname in brackets, or link created by shift-click at item in inventory or recipe) to your or selected character inventory. If #itemcount is omitted, only one item will be added.\r\n.'),
  474. ('additemset',3,'Syntax: .additemset #itemsetid\r\n\r\nAdd items from itemset of id #itemsetid to your or selected character inventory. Will add by one example each item from itemset.'),
  475. ('announce',1,'Syntax: .announce $MessageToBroadcast\r\n\r\nSend a global message to all players online in chat log.'),
  476. ('aura',3,'Syntax: .aura #spellid\r\n\r\nAdd the aura from spell #spellid to the selected Unit.'),
  477. ('ban account',3,'Syntax: .ban account $Name $bantime $reason\r\nBan account kick player.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
  478. ('ban character',3,'Syntax: .ban character $Name $bantime $reason\r\nBan account and kick player.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
  479. ('ban ip',3,'Syntax: .ban ip $Ip $bantime $reason\r\nBan IP.\r\n$bantime: negative value leads to permban, otherwise use a timestring like \"4d20h3s\".'),
  480. ('ban',3,'Syntax: .ban $subcommand\nType .ban to see the list of possible subcommands or .help ban $subcommand to see info on subcommands'),
  481. ('baninfo account',3,'Syntax: .baninfo account $accountid\r\nWatch full information about a specific ban.'),
  482. ('baninfo character',3,'Syntax: .baninfo character $charactername \r\nWatch full information about a specific ban.'),
  483. ('baninfo ip',3,'Syntax: .baninfo ip $ip\r\nWatch full information about a specific ban.'),
  484. ('baninfo',3,'Syntax: .baninfo $subcommand\nType .baninfo to see the list of possible subcommands or .help baninfo $subcommand to see info on subcommands'),
  485. ('bank',3,'Syntax: .bank\r\n\r\nShow your bank inventory.'),
  486. ('banlist account',3,'Syntax: .banlist account [$Name]\r\nSearches the banlist for a account name pattern or show full list account bans.'),
  487. ('banlist character',3,'Syntax: .banlist character $Name\r\nSearches the banlist for a character name pattern. Pattern required.'),
  488. ('banlist ip',3,'Syntax: .banlist ip [$Ip]\r\nSearches the banlist for a IP pattern or show full list of IP bans.'),
  489. ('banlist',3,'Syntax: .banlist $subcommand\nType .banlist to see the list of possible subcommands or .help banlist $subcommand to see info on subcommands'),
  490. ('bindsight',3,'Syntax: .bindsight\r\n\r\nBinds vision to the selected unit indefinitely. Cannot be used while currently possessing a target.'),
  491. ('cast back',3,'Syntax: .cast back #spellid [triggered]\r\n Selected target will cast #spellid to your character. If \'trigered\' or part provided then spell casted with triggered flag.'),
  492. ('cast dist',3,'Syntax: .cast dist #spellid [#dist [triggered]]\r\n You will cast spell to pint at distance #dist. If \'trigered\' or part provided then spell casted with triggered flag. Not all spells can be casted as area spells.'),
  493. ('cast self',3,'Syntax: .cast self #spellid [triggered]\r\nCast #spellid by target at target itself. If \'trigered\' or part provided then spell casted with triggered flag.'),
  494. ('cast target',3,'Syntax: .cast target #spellid [triggered]\r\n Selected target will cast #spellid to his victim. If \'trigered\' or part provided then spell casted with triggered flag.'),
  495. ('cast',3,'Syntax: .cast #spellid [triggered]\r\n Cast #spellid to selected target. If no target selected cast to self. If \'trigered\' or part provided then spell casted with triggered flag.'),
  496. ('character customize',2,'Syntax: .character customize [$name]\r\n\r\nMark selected in game or by $name in command character for customize at next login.'),
  497. ('character delete',4,'Syntax: .character delete $name\r\n\r\nDelete character $name.'),
  498. ('character level',3,'Syntax: .character level [$playername] [#level]\r\n\r\nSet the level of character with $playername (or the selected if not name provided) by #numberoflevels Or +1 if no #numberoflevels provided). If #numberoflevels is omitted, the level will be increase by 1. If #numberoflevels is 0, the same level will be restarted. If no character is selected and name not provided, increase your level. Command can be used for offline character. All stats and dependent values recalculated. At level decrease talents can be reset if need. Also at level decrease equipped items with greater level requirement can be lost.'),
  499. ('character rename',2,'Syntax: .character rename [$name]\r\n\r\nMark selected in game or by $name in command character for rename at next login.'),
  500. ('character reputation',2,'Syntax: .character reputation [$player_name]\r\n\r\nShow reputation information for selected player or player find by $player_name.'),
  501. ('combatstop',2,'Syntax: .combatstop [$playername]\r\nStop combat for selected character. If selected non-player then command applied to self. If $playername provided then attempt applied to online player $playername.'),
  502. ('cometome',3,'SYntax: .cometome $parameter\nMake selected creature come to your current location (new position not saved to DB).'),
  503. ('commands',0,'Syntax: .commands\r\n\r\nDisplay a list of available commands for your account level.'),
  504. ('cooldown',3,'Syntax: .cooldown [#spell_id]\r\n\r\nRemove all (if spell_id not provided) or #spel_id spell cooldown from selected character or you (if no selection).'),
  505. ('damage',3,'Syntax: .damage $damage_amount [$school [$spellid]]\r\n\r\nApply $damage to target. If not $school and $spellid provided then this flat clean melee damage without any modifiers. If $school provided then damage modified by armor reduction (if school physical), and target absorbing modifiers and result applied as melee damage to target. If spell provided then damage modified and applied as spell damage. $spellid can be shift-link.'),
  506. ('debug arena',3,'Syntax: .debug arena\r\n\r\nToggle debug mode for arenas. In debug mode GM can start arena with single player.'),
  507. ('debug bg',3,'Syntax: .debug bg\r\n\r\nToggle debug mode for battlegrounds. In debug mode GM can start battleground with single player.'),
  508. ('debug Mod32Value',3,'Syntax: .debug Mod32Value #field #value\r\n\r\nAdd #value to field #field of your character.'),
  509. ('debug play cinematic',1,'Syntax: .debug play cinematic #cinematicid\r\n\r\nPlay cinematic #cinematicid for you. You stay at place while your mind fly.\r\n'),
  510. ('debug play movie',1,'Syntax: .debug play movie #movieid\r\n\r\nPlay movie #movieid for you.'),
  511. ('debug play sound',1,'Syntax: .debug play sound #soundid\r\n\r\nPlay sound with #soundid.\r\nSound will be play only for you. Other players do not hear this.\r\nWarning: client may have more 5000 sounds...'),
  512. ('debug',1,'Syntax: .debug $subcommand\nType .debug to see the list of possible subcommands or .help debug $subcommand to see info on subcommands'),
  513. ('demorph',2,'Syntax: .demorph\r\n\r\nDemorph the selected player.'),
  514. ('die',3,'Syntax: .die\r\n\r\nKill the selected player. If no player is selected, it will kill you.'),
  515. ('dismount',0,'Syntax: .dismount\r\n\r\nDismount you, if you are mounted.'),
  516. ('distance',3,'Syntax: .distance\r\n\r\nDisplay the distance from your character to the selected creature.'),
  517. ('event activelist',2,'Syntax: .event activelist\r\nShow list of currently active events.'),
  518. ('event start',2,'Syntax: .event start #event_id\r\nStart event #event_id. Set start time for event to current moment (change not saved in DB).'),
  519. ('event stop',2,'Syntax: .event stop #event_id\r\nStop event #event_id. Set start time for event to time in past that make current moment is event stop time (change not saved in DB).'),
  520. ('event',2,'Syntax: .event #event_id\r\nShow details about event with #event_id.'),
  521. ('explorecheat',3,'Syntax: .explorecheat #flag\r\n\r\nReveal or hide all maps for the selected player. If no player is selected, hide or reveal maps to you.\r\n\r\nUse a #flag of value 1 to reveal, use a #flag value of 0 to hide all maps.'),
  522. ('flusharenapoints',3,'Syntax: .flusharenapoints\r\n\r\nUse it to distribute arena points based on arena team ratings, and start a new week.'),
  523. ('freeze',2,'Syntax: .freeze (#player)\r\n\"Freezes\" #player and disables his chat. When using this without #name it will freeze your target.'),
  524. ('gm chat',1,'Syntax: .gm chat [on/off]\r\n\r\nEnable or disable chat GM MODE (show gm badge in messages) or show current state of on/off not provided.'),
  525. ('gm fly',3,'Syntax: .gm fly [on/off]\r\nEnable/disable gm fly mode.'),
  526. ('gm ingame',0,'Syntax: .gm ingame\r\n\r\nDisplay a list of available in game Game Masters.'),
  527. ('gm list',3,'Syntax: .gm list\r\n\r\nDisplay a list of all Game Masters accounts and security levels.'),
  528. ('gm visible',1,'Syntax: .gm visible on/off\r\n\r\nOutput current visibility state or make GM visible(on) and invisible(off) for other players.'),
  529. ('gm',1,'Syntax: .gm [on/off]\r\n\r\nEnable or Disable in game GM MODE or show current state of on/off not provided.'),
  530. ('gmannounce',4,'Syntax: .gmannounce $announcement\r\nSend an announcement to online Gamemasters.'),
  531. ('gmnameannounce',2,'Syntax: .gmnameannounce $announcement.\r\nSend an announcement to all online GM\'s, displaying the name of the sender.'),
  532. ('gmnotify',2,'Syntax: .gmnotify $notification\r\nDisplays a notification on the screen of all online GM\'s.'),
  533. ('go creature',1,'Syntax: .go creature #creature_guid\r\nTeleport your character to creature with guid #creature_guid.\r\n.gocreature #creature_name\r\nTeleport your character to creature with this name.\r\n.gocreature id #creature_id\r\nTeleport your character to a creature that was spawned from the template with this entry.\r\n*If* more than one creature is found, then you are teleported to the first that is found inside the database.'),
  534. ('go graveyard',1,'Syntax: .go graveyard #graveyardId\r\n Teleport to graveyard with the graveyardId specified.'),
  535. ('go grid',1,'Syntax: .go grid #gridX #gridY [#mapId]\r\n\r\nTeleport the gm to center of grid with provided indexes at map #mapId (or current map if it not provided).'),
  536. ('go object',1,'Syntax: .go object #object_guid\r\nTeleport your character to gameobject with guid #object_guid'),
  537. ('go taxinode',1,'Syntax: .go taxinode #taxinode\r\n\r\nTeleport player to taxinode coordinates. You can look up zone using .lookup taxinode $namepart'),
  538. ('go ticket',1,'Syntax: .go ticket #ticketid\r\nTeleports the user to the location where $ticketid was created.'),
  539. ('go trigger',1,'Syntax: .go trigger #trigger_id\r\n\r\nTeleport your character to areatrigger with id #trigger_id. Character will be teleported to trigger target if selected areatrigger is telporting trigger.'),
  540. ('go xy',1,'Syntax: .go xy #x #y [#mapid]\r\n\r\nTeleport player to point with (#x,#y) coordinates at ground(water) level at map #mapid or same map if #mapid not provided.'),
  541. ('go xyz',1,'Syntax: .go xyz #x #y #z [#mapid]\r\n\r\nTeleport player to point with (#x,#y,#z) coordinates at ground(water) level at map #mapid or same map if #mapid not provided.'),
  542. ('go zonexy',1,'Syntax: .go zonexy #x #y [#zone]\r\n\r\nTeleport player to point with (#x,#y) client coordinates at ground(water) level in zone #zoneid or current zone if #zoneid not provided. You can look up zone using .lookup area $namepart'),
  543. ('go',1,'Syntax: .go $subcommand\nType .go to see the list of possible subcommands or .help go $subcommand to see info on subcommands'),
  544. ('gobject activate',2,'Syntax: .gobject activate #guid\r\n\r\nActivates an object like a door or a button.'),
  545. ('gobject add',2,'Syntax: .gobject add #id <spawntimeSecs>\r\n\r\nAdd a game object from game object templates to the world at your current location using the #id.\r\nspawntimesecs sets the spawntime, it is optional.\r\n\r\nNote: this is a copy of .gameobject.'),
  546. ('gobject delete',2,'Syntax: .gobject delete #go_guid\r\nDelete gameobject with guid #go_guid.'),
  547. ('gobject move',2,'Syntax: .gobject move #goguid [#x #y #z]\r\n\r\nMove gameobject #goguid to character coordinates (or to (#x,#y,#z) coordinates if its provide).'),
  548. ('gobject near',2,'Syntax: .gobject near [#distance]\r\n\r\nOutput gameobjects at distance #distance from player. Output gameobject guids and coordinates sorted by distance from character. If #distance not provided use 10 as default value.'),
  549. ('gobject setphase',2,'Syntax: .gobject setphase #guid #phasemask\r\n\r\nGameobject with DB guid #guid phasemask changed to #phasemask with related world vision update for players. Gameobject state saved to DB and persistent.'),
  550. ('gobject target',2,'Syntax: .gobject target [#go_id|#go_name_part]\r\n\r\nLocate and show position nearest gameobject. If #go_id or #go_name_part provide then locate and show position of nearest gameobject with gameobject template id #go_id or name included #go_name_part as part.'),
  551. ('gobject tempadd',2,'Adds a temporary gameobject that is not saved to DB.'),
  552. ('gobject turn',2,'Syntax: .gobject turn #goguid \r\n\r\nSet for gameobject #goguid orientation same as current character orientation.'),
  553. ('gobject',2,'Syntax: .gobject $subcommand\nType .gobject to see the list of possible subcommands or .help gobject $subcommand to see info on subcommands'),
  554. ('goname',1,'Syntax: .goname [$charactername]\r\n\r\nTeleport to the given character. Either specify the character name or click on the character\'s portrait, e.g. when you are in a group. Character can be offline.'),
  555. ('gps',1,'Syntax: .gps [$name|$shift-link]\r\n\r\nDisplay the position information for a selected character or creature (also if player name $name provided then for named player, or if creature/gameobject shift-link provided then pointed creature/gameobject if it loaded). Position information includes X, Y, Z, and orientation, map Id and zone Id'),
  556. ('groupgo',1,'Syntax: .groupgo [$charactername]\r\n\r\nTeleport the given character and his group to you. Teleported only online characters but original selected group member can be offline.'),
  557. ('guid',2,'Syntax: .guid\r\n\r\nDisplay the GUID for the selected character.'),
  558. ('guild create',2,'Syntax: .guild create [$GuildLeaderName] \"$GuildName\"\r\n\r\nCreate a guild named $GuildName with the player $GuildLeaderName (or selected) as leader. Guild name must in quotes.'),
  559. ('guild delete',2,'Syntax: .guild delete \"$GuildName\"\r\n\r\nDelete guild $GuildName. Guild name must in quotes.'),
  560. ('guild invite',2,'Syntax: .guild invite [$CharacterName] \"$GuildName\"\r\n\r\nAdd player $CharacterName (or selected) into a guild $GuildName. Guild name must in quotes.'),
  561. ('guild rank',2,'Syntax: .guild rank [$CharacterName] #Rank\r\n\r\nSet for player $CharacterName (or selected) rank #Rank in a guild.'),
  562. ('guild uninvite',2,'Syntax: .guild uninvite [$CharacterName]\r\n\r\nRemove player $CharacterName (or selected) from a guild.'),
  563. ('guild',3,'Syntax: .guild $subcommand\nType .guild to see the list of possible subcommands or .help guild $subcommand to see info on subcommands'),
  564. ('help',0,'Syntax: .help [$command]\r\n\r\nDisplay usage instructions for the given $command. If no $command provided show list available commands.'),
  565. ('hidearea',3,'Syntax: .hidearea #areaid\r\n\r\nHide the area of #areaid to the selected character. If no character is selected, hide this area to you.'),
  566. ('honor add',2,'Syntax: .honor add $amount\r\n\r\nAdd a certain amount of honor (gained today) to the selected player.'),
  567. ('honor addkill',2,'Syntax: .honor addkikll\r\n\r\nAdd the targeted unit as one of your pvp kills today (you only get honor if it\'s a racial leader or a player)'),
  568. ('honor update',2,'Syntax: .honor update\r\n\r\nForce the yesterday\'s honor fields to be updated with today\'s data, which will get reset for the selected player.'),
  569. ('honor',2,'Syntax: .honor $subcommand\nType .honor to see the list of possible subcommands or .help honor $subcommand to see info on subcommands'),
  570. ('hover',3,'Syntax: .hover #flag\r\n\r\nEnable or disable hover mode for your character.\r\n\r\nUse a #flag of value 1 to enable, use a #flag value of 0 to disable hover.'),
  571. ('instance listbinds',3,'Syntax: .instance listbinds\r\n Lists the binds of the selected player.'),
  572. ('instance savedata',3,'Syntax: .instance savedata\r\n Save the InstanceData for the current player\'s map to the DB.'),
  573. ('instance stats',3,'Syntax: .instance stats\r\n Shows statistics about instances.'),
  574. ('instance unbind',3,'Syntax: .instance unbind all\r\n All of the selected player\'s binds will be cleared.'),
  575. ('instance',3,'Syntax: .instance $subcommand\nType .instance to see the list of possible subcommands or .help instance $subcommand to see info on subcommands'),
  576. ('itemmove',2,'Syntax: .itemmove #sourceslotid #destinationslotid\r\n\r\nMove an item from slots #sourceslotid to #destinationslotid in your inventory\r\n\r\nNot yet implemented'),
  577. ('kick',2,'Syntax: .kick [$charactername] [$reason]\r\n\r\nKick the given character name from the world with or without reason. If no character name is provided then the selected player (except for yourself) will be kicked. If no reason is provided, default is \"No Reason\".'),
  578. ('learn all',3,'Syntax: .learn all\r\n\r\nLearn all big set different spell maybe useful for Administaror.'),
  579. ('learn all_crafts',2,'Syntax: .learn crafts\r\n\r\nLearn all professions and recipes.'),
  580. ('learn all_default',1,'Syntax: .learn all_default [$playername]\r\n\r\nLearn for selected/$playername player all default spells for his race/class and spells rewarded by completed quests.'),
  581. ('learn all_gm',2,'Syntax: .learn all_gm\r\n\r\nLearn all default spells for Game Masters.'),
  582. ('learn all_lang',1,'Syntax: .learn all_lang\r\n\r\nLearn all languages'),
  583. ('learn all_myclass',3,'Syntax: .learn all_myclass\r\n\r\nLearn all spells and talents available for his class.'),
  584. ('learn all_mypettalents',3,'Syntax: .learn all_mypettalents\r\n\r\nLearn all talents for your pet available for his creature type (only for hunter pets).'),
  585. ('learn all_myspells',3,'Syntax: .learn all_myspells\r\n\r\nLearn all spells (except talents and spells with first rank learned as talent) available for his class.'),
  586. ('learn all_mytalents',3,'Syntax: .learn all_mytalents\r\n\r\nLearn all talents (and spells with first rank learned as talent) available for his class.'),
  587. ('learn all_recipes',2,'Syntax: .learn all_recipes [$profession]\r\rLearns all recipes of specified profession and sets skill level to max.\rExample: .learn all_recipes enchanting'),
  588. ('learn',3,'Syntax: .learn #spell [all]\r\n\r\nSelected character learn a spell of id #spell. If \'all\' provided then all ranks learned.'),
  589. ('levelup',3,'Syntax: .levelup [$playername] [#numberoflevels]\r\n\r\nIncrease/decrease the level of character with $playername (or the selected if not name provided) by #numberoflevels Or +1 if no #numberoflevels provided). If #numberoflevels is omitted, the level will be increase by 1. If #numberoflevels is 0, the same level will be restarted. If no character is selected and name not provided, increase your level. Command can be used for offline character. All stats and dependent values recalculated. At level decrease talents can be reset if need. Also at level decrease equipped items with greater level requirement can be lost.'),
  590. ('linkgrave',3,'Syntax: .linkgrave #graveyard_id [alliance|horde]\r\n\r\nLink current zone to graveyard for any (or alliance/horde faction ghosts). This let character ghost from zone teleport to graveyard after die if graveyard is nearest from linked to zone and accept ghost of this faction. Add only single graveyard at another map and only if no graveyards linked (or planned linked at same map).'),
  591. ('list auras',3,'Syntax: .list auras\nList auras (passive and active) of selected creature or player. If no creature or player is selected, list your own auras.'),
  592. ('list creature',3,'Syntax: .list creature #creature_id [#max_count]\r\n\r\nOutput creatures with creature id #creature_id found in world. Output creature guids and coordinates sorted by distance from character. Will be output maximum #max_count creatures. If #max_count not provided use 10 as default value.'),
  593. ('list item',3,'Syntax: .list item #item_id [#max_count]\r\n\r\nOutput items with item id #item_id found in all character inventories, mails, auctions, and guild banks. Output item guids, item owner guid, owner account and owner name (guild name and guid in case guild bank). Will be output maximum #max_count items. If #max_count not provided use 10 as default value.'),
  594. ('list object',3,'Syntax: .list object #gameobject_id [#max_count]\r\n\r\nOutput gameobjects with gameobject id #gameobject_id found in world. Output gameobject guids and coordinates sorted by distance from character. Will be output maximum #max_count gameobject. If #max_count not provided use 10 as default value.'),
  595. ('list',3,'Syntax: .list $subcommand\nType .list to see the list of possible subcommands or .help list $subcommand to see info on subcommands'),
  596. ('listfreeze',1,'Syntax: .listfreeze\r\n\r\nSearch and output all frozen players.'),
  597. ('loadpath',3,'Syntax: .loadpath $pathid\nLoad path changes ingame - IMPORTANT: must be applied first for new paths before .path load #pathid '),
  598. ('loadscripts',3,'Syntax: .loadscripts $scriptlibraryname\r\n\r\nUnload current and load the script library $scriptlibraryname or reload current if $scriptlibraryname omitted, in case you changed it while the server was running.'),
  599. ('lookup area',1,'Syntax: .lookup area $namepart\r\n\r\nLooks up an area by $namepart, and returns all matches with their area ID\'s.'),
  600. ('lookup creature',3,'Syntax: .lookup creature $namepart\r\n\r\nLooks up a creature by $namepart, and returns all matches with their creature ID\'s.'),
  601. ('lookup event',2,'Syntax: .lookup event $name\r\nAttempts to find the ID of the event with the provided $name.'),
  602. ('lookup faction',3,'Syntax: .lookup faction $name\r\nAttempts to find the ID of the faction with the provided $name.'),
  603. ('lookup item',3,'Syntax: .lookup item $itemname\r\n\r\nLooks up an item by $itemname, and returns all matches with their Item ID\'s.'),
  604. ('lookup itemset',3,'Syntax: .lookup itemset $itemname\r\n\r\nLooks up an item set by $itemname, and returns all matches with their Item set ID\'s.'),
  605. ('lookup map',3,'Syntax: .lookup map $namepart\r\n\r\nLooks up a map by $namepart, and returns all matches with their map ID''s.'),
  606. ('lookup object',3,'Syntax: .lookup object $objname\r\n\r\nLooks up an gameobject by $objname, and returns all matches with their Gameobject ID\'s.'),
  607. ('lookup player account',2,'Syntax: .lookup player account $account ($limit) \r\n\r\n Searchs players, which account username is $account with optional parametr $limit of results.'),
  608. ('lookup player email',2,'Syntax: .lookup player email $email ($limit) \r\n\r\n Searchs players, which account email is $email with optional parametr $limit of results.'),
  609. ('lookup player ip',2,'Syntax: .lookup player ip $ip ($limit) \r\n\r\n Searchs players, which account ast_ip is $ip with optional parametr $limit of results.'),
  610. ('lookup quest',3,'Syntax: .lookup quest $namepart\r\n\r\nLooks up a quest by $namepart, and returns all matches with their quest ID\'s.'),
  611. ('lookup skill',3,'Syntax: .lookup skill $$namepart\r\n\r\nLooks up a skill by $namepart, and returns all matches with their skill ID\'s.'),
  612. ('lookup spell',3,'Syntax: .lookup spell $namepart\r\n\r\nLooks up a spell by $namepart, and returns all matches with their spell ID\'s.'),
  613. ('lookup taxinode',3,'Syntax: .lookup taxinode $substring\r\n\r\nSearch and output all taxinodes with provide $substring in name.'),
  614. ('lookup tele',1,'Syntax: .lookup tele $substring\r\n\r\nSearch and output all .tele command locations with provide $substring in name.'),
  615. ('lookup',3,'Syntax: .lookup $subcommand\nType .lookup to see the list of possible subcommands or .help lookup $subcommand to see info on subcommands'),
  616. ('maxskill',3,'Syntax: .maxskill\r\nSets all skills of the targeted player to their maximum values for its current level.'),
  617. ('modify arena',1,'Syntax: .modify arena #value\r\nAdd $amount arena points to the selected player.'),
  618. ('modify aspeed',1,'Syntax: .modify aspeed #rate\r\n\r\nModify all speeds -run,swim,run back,swim back- of the selected player to \"normalbase speed for this move type\"*rate. If no player is selected, modify your speed.\r\n\r\n #rate may range from 0.1 to 50.'),
  619. ('modify bit',1,'Syntax: .modify bit #field #bit\r\n\r\nToggle the #bit bit of the #field field for the selected player. If no player is selected, modify your character.'),
  620. ('modify bwalk',1,'Syntax: .modify bwalk #rate\r\n\r\nModify the speed of the selected player while running backwards to \"normal walk back speed\"*rate. If no player is selected, modify your speed.\r\n\r\n #rate may range from 0.1 to 50.'),
  621. ('modify drunk',1,'Syntax: .modify drunk #value\r\n Set drunk level to #value (0..100). Value 0 remove drunk state, 100 is max drunked state.'),
  622. ('modify energy',1,'Syntax: .modify energy #energy\r\n\r\nModify the energy of the selected player. If no player is selected, modify your energy.'),
  623. ('modify faction',1,'Syntax: .modify faction #factionid #flagid #npcflagid #dynamicflagid\r\n\r\nModify the faction and flags of the selected creature. Without arguments, display the faction and flags of the selected creature.'),
  624. ('modify fly',1,'.modify fly $parameter\nModify the flying speed of the selected player to \"normal flying speed\"*rate. If no player is selected, modify yo…

Large files files are truncated, but you can click here to view the full file