mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7382] Add 2 unknown field to creature_template sent in SMSG_CREATURE_QUERY_RESPONSE to client
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
10f2648455
commit
167b192ff2
7 changed files with 18 additions and 7 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
DROP TABLE IF EXISTS `db_version`;
|
DROP TABLE IF EXISTS `db_version`;
|
||||||
CREATE TABLE `db_version` (
|
CREATE TABLE `db_version` (
|
||||||
`version` varchar(120) default NULL,
|
`version` varchar(120) default NULL,
|
||||||
`required_7376_01_mangos_spell_area` bit(1) default NULL
|
`required_7382_01_mangos_creature_template` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -811,6 +811,8 @@ CREATE TABLE `creature_template` (
|
||||||
`AIName` char(64) NOT NULL default '',
|
`AIName` char(64) NOT NULL default '',
|
||||||
`MovementType` tinyint(3) unsigned NOT NULL default '0',
|
`MovementType` tinyint(3) unsigned NOT NULL default '0',
|
||||||
`InhabitType` tinyint(3) unsigned NOT NULL default '3',
|
`InhabitType` tinyint(3) unsigned NOT NULL default '3',
|
||||||
|
`unk16` float NOT NULL default '1',
|
||||||
|
`unk17` float NOT NULL default '1',
|
||||||
`RacialLeader` tinyint(3) unsigned NOT NULL default '0',
|
`RacialLeader` tinyint(3) unsigned NOT NULL default '0',
|
||||||
`RegenHealth` tinyint(3) unsigned NOT NULL default '1',
|
`RegenHealth` tinyint(3) unsigned NOT NULL default '1',
|
||||||
`equipment_id` mediumint(8) unsigned NOT NULL default '0',
|
`equipment_id` mediumint(8) unsigned NOT NULL default '0',
|
||||||
|
|
@ -827,7 +829,7 @@ CREATE TABLE `creature_template` (
|
||||||
LOCK TABLES `creature_template` WRITE;
|
LOCK TABLES `creature_template` WRITE;
|
||||||
/*!40000 ALTER TABLE `creature_template` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `creature_template` DISABLE KEYS */;
|
||||||
INSERT INTO `creature_template` VALUES
|
INSERT INTO `creature_template` VALUES
|
||||||
(1,1,10045,0,10045,0,'Waypoint(Only GM can see it)','Visual',NULL,1,1,64,64,0,0,0,35,35,0,0.91,1,0,14,15,0,100,2000,2200,4096,0,0,0,0,0,0,1.76,2.42,100,8,5242886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'',0,3,0,1,0,0,0x82,'');
|
(1,1,10045,0,10045,0,'Waypoint(Only GM can see it)','Visual',NULL,1,1,64,64,0,0,0,35,35,0,0.91,1,0,14,15,0,100,2000,2200,4096,0,0,0,0,0,0,1.76,2.42,100,8,5242886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'',0,3,1.0,1.0,0,1,0,0,0x82,'');
|
||||||
/*!40000 ALTER TABLE `creature_template` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `creature_template` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
|
|
||||||
5
sql/updates/7382_01_mangos_creature_template.sql
Normal file
5
sql/updates/7382_01_mangos_creature_template.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_7376_01_mangos_spell_area required_7382_01_mangos_creature_template bit;
|
||||||
|
|
||||||
|
ALTER TABLE creature_template
|
||||||
|
ADD COLUMN unk16 float NOT NULL default '1' AFTER InhabitType,
|
||||||
|
ADD COLUMN unk17 float NOT NULL default '1' AFTER unk16;
|
||||||
|
|
@ -190,6 +190,7 @@ pkgdata_DATA = \
|
||||||
7349_01_mangos_spell_area.sql \
|
7349_01_mangos_spell_area.sql \
|
||||||
7369_01_mangos_quest_template.sql \
|
7369_01_mangos_quest_template.sql \
|
||||||
7376_01_mangos_spell_area.sql \
|
7376_01_mangos_spell_area.sql \
|
||||||
|
7382_01_mangos_creature_template.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -360,4 +361,5 @@ EXTRA_DIST = \
|
||||||
7349_01_mangos_spell_area.sql \
|
7349_01_mangos_spell_area.sql \
|
||||||
7369_01_mangos_quest_template.sql \
|
7369_01_mangos_quest_template.sql \
|
||||||
7376_01_mangos_spell_area.sql \
|
7376_01_mangos_spell_area.sql \
|
||||||
|
7382_01_mangos_creature_template.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,8 @@ struct CreatureInfo
|
||||||
char const* AIName;
|
char const* AIName;
|
||||||
uint32 MovementType;
|
uint32 MovementType;
|
||||||
uint32 InhabitType;
|
uint32 InhabitType;
|
||||||
|
float unk16;
|
||||||
|
float unk17;
|
||||||
bool RacialLeader;
|
bool RacialLeader;
|
||||||
bool RegenHealth;
|
bool RegenHealth;
|
||||||
uint32 equipmentId;
|
uint32 equipmentId;
|
||||||
|
|
|
||||||
|
|
@ -189,8 +189,8 @@ void WorldSession::HandleCreatureQueryOpcode( WorldPacket & recv_data )
|
||||||
data << (uint32)ci->DisplayID_H; // modelid_female1 ?
|
data << (uint32)ci->DisplayID_H; // modelid_female1 ?
|
||||||
data << (uint32)ci->DisplayID_A2; // modelid_male2 ?
|
data << (uint32)ci->DisplayID_A2; // modelid_male2 ?
|
||||||
data << (uint32)ci->DisplayID_H2; // modelid_femmale2 ?
|
data << (uint32)ci->DisplayID_H2; // modelid_femmale2 ?
|
||||||
data << (float)1.0f; // unk
|
data << (float)ci->unk16; // unk
|
||||||
data << (float)1.0f; // unk
|
data << (float)ci->unk17; // unk
|
||||||
data << (uint8)ci->RacialLeader;
|
data << (uint8)ci->RacialLeader;
|
||||||
SendPacket( &data );
|
SendPacket( &data );
|
||||||
sLog.outDebug( "WORLD: Sent SMSG_CREATURE_QUERY_RESPONSE " );
|
sLog.outDebug( "WORLD: Sent SMSG_CREATURE_QUERY_RESPONSE " );
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ extern DatabasePostgre WorldDatabase;
|
||||||
extern DatabaseMysql WorldDatabase;
|
extern DatabaseMysql WorldDatabase;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char CreatureInfosrcfmt[]="iiiiiisssiiiiiiiiiiffiffiiiiiiiiiiiffiiiiiiiiiiiiiiiiiiisiilliiis";
|
const char CreatureInfosrcfmt[]="iiiiiisssiiiiiiiiiiffiffiiiiiiiiiiiffiiiiiiiiiiiiiiiiiiisiifflliiis";
|
||||||
const char CreatureInfodstfmt[]="iiiiiisssiiiiiiiiiiffiffiiiiiiiiiiiffiiiiiiiiiiiiiiiiiiisiilliiii";
|
const char CreatureInfodstfmt[]="iiiiiisssiiiiiiiiiiffiffiiiiiiiiiiiffiiiiiiiiiiiiiiiiiiisiifflliiii";
|
||||||
const char CreatureDataAddonInfofmt[]="iiiiiiis";
|
const char CreatureDataAddonInfofmt[]="iiiiiiis";
|
||||||
const char CreatureModelfmt[]="iffbi";
|
const char CreatureModelfmt[]="iffbi";
|
||||||
const char CreatureInfoAddonInfofmt[]="iiiiiiis";
|
const char CreatureInfoAddonInfofmt[]="iiiiiiis";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7381"
|
#define REVISION_NR "7382"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue