mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +00:00
Moved zonedatabase functions out of corpse.cpp
Conversion portion mostly complete Some header readability cleanup Some function renaming Struct renaming Many variable renaming MySQL error log for all of QueryDatabase Corpse table renaming Corpse table field renaming Most corpse database functions redone
This commit is contained in:
+16
-59
@@ -35,11 +35,9 @@ spawn2 mediumblob, npcs mediumblob, npc_loot mediumblob, gmspawntype mediumblob,
|
||||
struct NPCType
|
||||
{
|
||||
char name[64];
|
||||
char lastname[70];
|
||||
|
||||
char lastname[70];
|
||||
int32 cur_hp;
|
||||
int32 max_hp;
|
||||
|
||||
int32 max_hp;
|
||||
float size;
|
||||
float runspeed;
|
||||
uint8 gender;
|
||||
@@ -91,7 +89,7 @@ struct NPCType
|
||||
uint32 min_dmg;
|
||||
uint32 max_dmg;
|
||||
int16 attack_count;
|
||||
char special_abilities[512];
|
||||
char special_abilities[512];
|
||||
uint16 d_meele_texture1;
|
||||
uint16 d_meele_texture2;
|
||||
char ammo_idfile[30];
|
||||
@@ -130,38 +128,28 @@ struct NPCType
|
||||
uint8 probability;
|
||||
};
|
||||
|
||||
/*
|
||||
Below are the blob structures for saving player corpses to the database
|
||||
-Quagmire
|
||||
|
||||
create table player_corpses (id int(11) unsigned not null auto_increment primary key, charid int(11) unsigned not null,
|
||||
charname varchar(30) not null, zonename varchar(16)not null, x float not null, y float not null, z float not null,
|
||||
heading float not null, data blob not null, time timestamp(14), index zonename (zonename));
|
||||
*/
|
||||
|
||||
namespace player_lootitem
|
||||
{
|
||||
namespace player_lootitem {
|
||||
struct ServerLootItem_Struct {
|
||||
uint32 item_id;
|
||||
int16 equipSlot;
|
||||
uint8 charges;
|
||||
uint16 lootslot;
|
||||
uint32 aug1;
|
||||
uint32 aug2;
|
||||
uint32 aug3;
|
||||
uint32 aug4;
|
||||
uint32 aug5;
|
||||
uint32 item_id;
|
||||
int16 equip_slot;
|
||||
uint8 charges;
|
||||
uint16 lootslot;
|
||||
uint32 aug_1;
|
||||
uint32 aug_2;
|
||||
uint32 aug_3;
|
||||
uint32 aug_4;
|
||||
uint32 aug_5;
|
||||
};
|
||||
}
|
||||
|
||||
struct DBPlayerCorpse_Struct {
|
||||
struct PlayerCorpse_Struct {
|
||||
uint32 crc;
|
||||
bool locked;
|
||||
uint32 itemcount;
|
||||
uint32 exp;
|
||||
float size;
|
||||
uint8 level;
|
||||
uint8 race;
|
||||
uint32 race;
|
||||
uint8 gender;
|
||||
uint8 class_;
|
||||
uint8 deity;
|
||||
@@ -185,37 +173,6 @@ struct DBPlayerCorpse_Struct {
|
||||
player_lootitem::ServerLootItem_Struct items[0];
|
||||
};
|
||||
|
||||
namespace classic_db
|
||||
{
|
||||
struct DBPlayerCorpse_Struct {
|
||||
uint32 crc;
|
||||
bool locked;
|
||||
uint32 itemcount;
|
||||
uint32 exp;
|
||||
float size;
|
||||
uint8 level;
|
||||
uint8 race;
|
||||
uint8 gender;
|
||||
uint8 class_;
|
||||
uint8 deity;
|
||||
uint8 texture;
|
||||
uint8 helmtexture;
|
||||
uint32 copper;
|
||||
uint32 silver;
|
||||
uint32 gold;
|
||||
uint32 plat;
|
||||
Color_Struct item_tint[9];
|
||||
uint8 haircolor;
|
||||
uint8 beardcolor;
|
||||
uint8 eyecolor1;
|
||||
uint8 eyecolor2;
|
||||
uint8 hairstyle;
|
||||
uint8 face;
|
||||
uint8 beard;
|
||||
player_lootitem::ServerLootItem_Struct items[0];
|
||||
};
|
||||
}
|
||||
|
||||
struct Door {
|
||||
uint32 db_id;
|
||||
uint8 door_id;
|
||||
@@ -228,7 +185,7 @@ struct Door {
|
||||
int incline;
|
||||
uint8 opentype;
|
||||
uint32 guild_id;
|
||||
uint16 lockpick;
|
||||
uint16 lock_pick;
|
||||
uint32 keyitem;
|
||||
uint8 nokeyring;
|
||||
uint8 trigger_door;
|
||||
|
||||
Reference in New Issue
Block a user