[10208] Add proper data for character orientation at creating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
crackm 2010-07-17 19:35:39 +04:00 committed by VladimirMangos
parent 20a5551739
commit 624b45f333
5 changed files with 75 additions and 65 deletions

View file

@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0',
`required_10207_01_mangos_npc_vendor` bit(1) default NULL
`required_10208_01_mangos_playercreateinfo` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@ -10227,68 +10227,68 @@ CREATE TABLE `playercreateinfo` (
LOCK TABLES `playercreateinfo` WRITE;
/*!40000 ALTER TABLE `playercreateinfo` DISABLE KEYS */;
INSERT INTO `playercreateinfo` VALUES
(1,1,0,12,-8949,-132,84),
(1,2,0,12,-8949,-132,84),
(1,4,0,12,-8949,-132,84),
(1,5,0,12,-8949,-132,84),
(1,6,609,4298,2355.84,-5664.77,426.028),
(1,8,0,12,-8949,-132,84),
(1,9,0,12,-8949,-132,84),
(2,1,1,14,-618,-4251,39),
(2,3,1,14,-618,-4251,39),
(2,4,1,14,-618,-4251,39),
(2,6,609,4298,2358.44,-5666.9,426.023),
(2,7,1,14,-618,-4251,39),
(2,9,1,14,-618,-4251,39),
(3,1,0,1,-6240,331,383),
(3,2,0,1,-6240,331,383),
(3,3,0,1,-6240,331,383),
(3,4,0,1,-6240,331,383),
(3,5,0,1,-6240,331,383),
(3,6,609,4298,2358.44,-5666.9,426.023),
(4,1,1,141,10311,832,1327),
(4,3,1,141,10311,832,1327),
(4,4,1,141,10311,832,1327),
(4,5,1,141,10311,832,1327),
(4,6,609,4298,2356.21,-5662.21,426.026),
(4,11,1,141,10311,832,1327),
(5,1,0,85,1676,1677,122),
(5,4,0,85,1676,1677,122),
(5,5,0,85,1676,1677,122),
(5,8,0,85,1676,1677,122),
(5,9,0,85,1676,1677,122),
(5,6,609,4298,2356.21,-5662.21,426.026),
(6,1,1,215,-2917,-257,53),
(6,3,1,215,-2917,-257,53),
(6,6,609,4298,2358.17,-5663.21,426.027),
(6,7,1,215,-2917,-257,53),
(6,11,1,215,-2917,-257,53),
(7,1,0,1,-6240,331,383),
(7,4,0,1,-6240,331,383),
(7,6,609,4298,2355.05,-5661.7, 426.026),
(7,8,0,1,-6240,331,383),
(7,9,0,1,-6240,331,383),
(8,1,1,14,-618,-4251,39),
(8,3,1,14,-618,-4251,39),
(8,4,1,14,-618,-4251,39),
(8,5,1,14,-618,-4251,39),
(8,6,609,4298,2355.05,-5661.7, 426.026),
(8,7,1,14,-618,-4251,39),
(8,8,1,14,-618,-4251,39),
(10,2,530,3431,10349.6,-6357.29,33.4026),
(10,3,530,3431,10349.6,-6357.29,33.4026),
(10,4,530,3431,10349.6,-6357.29,33.4026),
(10,5,530,3431,10349.6,-6357.29,33.4026),
(10,6,609,4298,2355.84,-5664.77,426.028),
(10,8,530,3431,10349.6,-6357.29,33.4026),
(10,9,530,3431,10349.6,-6357.29,33.4026),
(11,1,530,3526,-3961.64,-13931.2,100.615),
(11,2,530,3526,-3961.64,-13931.2,100.615),
(11,3,530,3526,-3961.64,-13931.2,100.615),
(11,5,530,3526,-3961.64,-13931.2,100.615),
(11,6,609,4298,2358.17,-5663.21,426.027),
(11,7,530,3526,-3961.64,-13931.2,100.615),
(11,8,530,3526,-3961.64,-13931.2,100.615);
(1,1,0,12,-8949,-132,84,0),
(1,2,0,12,-8949,-132,84,0),
(1,4,0,12,-8949,-132,84,0),
(1,5,0,12,-8949,-132,84,0),
(1,6,609,4298,2355.84,-5664.77,426.028,3.659973),
(1,8,0,12,-8949,-132,84,0),
(1,9,0,12,-8949,-132,84,0),
(2,1,1,14,-618,-4251,39,0),
(2,3,1,14,-618,-4251,39,0),
(2,4,1,14,-618,-4251,39,0),
(2,6,609,4298,2358.44,-5666.9,426.023,3.659973),
(2,7,1,14,-618,-4251,39,0),
(2,9,1,14,-618,-4251,39,0),
(3,1,0,1,-6240,331,383,6.177156),
(3,2,0,1,-6240,331,383,6.177156),
(3,3,0,1,-6240,331,383,6.177156),
(3,4,0,1,-6240,331,383,6.177156),
(3,5,0,1,-6240,331,383,6.177156),
(3,6,609,4298,2358.44,-5666.9,426.023,3.659973),
(4,1,1,141,10311,832,1327,5.696318),
(4,3,1,141,10311,832,1327,5.696318),
(4,4,1,141,10311,832,1327,5.696318),
(4,5,1,141,10311,832,1327,5.696318),
(4,6,609,4298,2356.21,-5662.21,426.026,3.659973),
(4,11,1,141,10311,832,1327,5.696318),
(5,1,0,85,1676,1677,122,2.70526),
(5,4,0,85,1676,1677,122,2.70526),
(5,5,0,85,1676,1677,122,2.70526),
(5,6,609,4298,2356.21,-5662.21,426.026,3.659973),
(5,8,0,85,1676,1677,122,2.70526),
(5,9,0,85,1676,1677,122,2.70526),
(6,1,1,215,-2917,-257,53,0),
(6,3,1,215,-2917,-257,53,0),
(6,6,609,4298,2358.17,-5663.21,426.027,3.659973),
(6,7,1,215,-2917,-257,53,0),
(6,11,1,215,-2917,-257,53,0),
(7,1,0,1,-6240,331,383,0),
(7,4,0,1,-6240,331,383,0),
(7,6,609,4298,2355.05,-5661.7, 426.026,3.659973),
(7,8,0,1,-6240,331,383,0),
(7,9,0,1,-6240,331,383,0),
(8,1,1,14,-618,-4251,39,0),
(8,3,1,14,-618,-4251,39,0),
(8,4,1,14,-618,-4251,39,0),
(8,5,1,14,-618,-4251,39,0),
(8,6,609,4298,2355.05,-5661.7, 426.026,3.659973),
(8,7,1,14,-618,-4251,39,0),
(8,8,1,14,-618,-4251,39,0),
(10,2,530,3431,10349.6,-6357.29,33.4026,5.316046),
(10,3,530,3431,10349.6,-6357.29,33.4026,5.316046),
(10,4,530,3431,10349.6,-6357.29,33.4026,5.316046),
(10,5,530,3431,10349.6,-6357.29,33.4026,5.316046),
(10,6,609,4298,2355.84,-5664.77,426.028,3.659973),
(10,8,530,3431,10349.6,-6357.29,33.4026,5.316046),
(10,9,530,3431,10349.6,-6357.29,33.4026,5.316046),
(11,1,530,3526,-3961.64,-13931.2,100.615,2.083644),
(11,2,530,3526,-3961.64,-13931.2,100.615,2.083644),
(11,3,530,3526,-3961.64,-13931.2,100.615,2.083644),
(11,5,530,3526,-3961.64,-13931.2,100.615,2.083644),
(11,6,609,4298,2358.17,-5663.21,426.027,3.659973),
(11,7,530,3526,-3961.64,-13931.2,100.615,2.083644),
(11,8,530,3526,-3961.64,-13931.2,100.615,2.083644);
/*!40000 ALTER TABLE `playercreateinfo` ENABLE KEYS */;
UNLOCK TABLES;

View file

@ -0,0 +1,8 @@
ALTER TABLE db_version CHANGE COLUMN required_10207_01_mangos_npc_vendor required_10208_01_mangos_playercreateinfo bit;
UPDATE playercreateinfo SET orientation= 5.696318 WHERE race=4 and class<>6;
UPDATE playercreateinfo SET orientation= 6.177156 WHERE race=3 and class<>6;
UPDATE playercreateinfo SET orientation= 2.70526 WHERE race=5 and class<>6;
UPDATE playercreateinfo SET orientation= 5.316046 WHERE race=10 and class<>6;
UPDATE playercreateinfo SET orientation= 2.083644 WHERE race=11 and class<>6;
UPDATE playercreateinfo SET orientation= 3.659973 WHERE class=6;

View file

@ -110,6 +110,7 @@ pkgdata_DATA = \
10203_01_mangos_item_template.sql \
10205_01_mangos_spell_area.sql \
10207_01_mangos_npc_vendor.sql \
10208_01_mangos_playercreateinfo.sql \
README
## Additional files to include when running 'make dist'
@ -200,4 +201,5 @@ EXTRA_DIST = \
10203_01_mangos_item_template.sql \
10205_01_mangos_spell_area.sql \
10207_01_mangos_npc_vendor.sql \
10208_01_mangos_playercreateinfo.sql \
README

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10207"
#define REVISION_NR "10208"
#endif // __REVISION_NR_H__

View file

@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_10160_02_characters_pet_aura"
#define REVISION_DB_MANGOS "required_10207_01_mangos_npc_vendor"
#define REVISION_DB_MANGOS "required_10208_01_mangos_playercreateinfo"
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
#endif // __REVISION_SQL_H__