mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 13:42:29 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server
This commit is contained in:
commit
b61c7d0b14
@ -1214,7 +1214,7 @@ sub copy_file {
|
|||||||
|
|
||||||
sub fetch_latest_windows_appveyor {
|
sub fetch_latest_windows_appveyor {
|
||||||
print "[Update] Fetching Latest Windows Binaries (unstable) from Appveyor... \n";
|
print "[Update] Fetching Latest Windows Binaries (unstable) from Appveyor... \n";
|
||||||
get_remote_file("https://ci.appveyor.com/api/projects/KimLS/server/artifacts/build_x86.zip", "updates_staged/master_windows_build.zip", 1);
|
get_remote_file("https://ci.appveyor.com/api/projects/KimLS/server/artifacts/build_x86_pdb.zip", "updates_staged/master_windows_build.zip", 1);
|
||||||
print "[Update] Fetched Latest Windows Binaries (unstable) from Appveyor... \n";
|
print "[Update] Fetched Latest Windows Binaries (unstable) from Appveyor... \n";
|
||||||
print "[Update] Extracting... --- \n";
|
print "[Update] Extracting... --- \n";
|
||||||
unzip('updates_staged/master_windows_build.zip', 'updates_staged/binaries/');
|
unzip('updates_staged/master_windows_build.zip', 'updates_staged/binaries/');
|
||||||
|
|||||||
@ -424,6 +424,7 @@ Client::~Client() {
|
|||||||
|
|
||||||
void Client::SendZoneInPackets()
|
void Client::SendZoneInPackets()
|
||||||
{
|
{
|
||||||
|
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
// Spawn Appearance Packet
|
// Spawn Appearance Packet
|
||||||
auto outapp = new EQApplicationPacket(OP_SpawnAppearance, sizeof(SpawnAppearance_Struct));
|
auto outapp = new EQApplicationPacket(OP_SpawnAppearance, sizeof(SpawnAppearance_Struct));
|
||||||
|
|||||||
@ -493,6 +493,7 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
|||||||
// Finish client connecting state
|
// Finish client connecting state
|
||||||
void Client::CompleteConnect()
|
void Client::CompleteConnect()
|
||||||
{
|
{
|
||||||
|
|
||||||
UpdateWho();
|
UpdateWho();
|
||||||
client_state = CLIENT_CONNECTED;
|
client_state = CLIENT_CONNECTED;
|
||||||
SendAllPackets();
|
SendAllPackets();
|
||||||
@ -502,27 +503,6 @@ void Client::CompleteConnect()
|
|||||||
SetDuelTarget(0);
|
SetDuelTarget(0);
|
||||||
SetDueling(false);
|
SetDueling(false);
|
||||||
|
|
||||||
database.LoadPetInfo(this);
|
|
||||||
/*
|
|
||||||
This was moved before the spawn packets are sent
|
|
||||||
in hopes that it adds more consistency...
|
|
||||||
Remake pet
|
|
||||||
*/
|
|
||||||
if (m_petinfo.SpellID > 1 && !GetPet() && m_petinfo.SpellID <= SPDAT_RECORDS) {
|
|
||||||
MakePoweredPet(m_petinfo.SpellID, spells[m_petinfo.SpellID].teleport_zone, m_petinfo.petpower, m_petinfo.Name, m_petinfo.size);
|
|
||||||
if (GetPet() && GetPet()->IsNPC()) {
|
|
||||||
NPC *pet = GetPet()->CastToNPC();
|
|
||||||
pet->SetPetState(m_petinfo.Buffs, m_petinfo.Items);
|
|
||||||
pet->CalcBonuses();
|
|
||||||
pet->SetHP(m_petinfo.HP);
|
|
||||||
pet->SetMana(m_petinfo.Mana);
|
|
||||||
}
|
|
||||||
m_petinfo.SpellID = 0;
|
|
||||||
}
|
|
||||||
/* Moved here so it's after where we load the pet data. */
|
|
||||||
if (!GetAA(aaPersistentMinion))
|
|
||||||
memset(&m_suspendedminion, 0, sizeof(PetInfo));
|
|
||||||
|
|
||||||
EnteringMessages(this);
|
EnteringMessages(this);
|
||||||
LoadZoneFlags();
|
LoadZoneFlags();
|
||||||
|
|
||||||
@ -1649,6 +1629,23 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
|
|||||||
if (m_pp.RestTimer)
|
if (m_pp.RestTimer)
|
||||||
rest_timer.Start(m_pp.RestTimer * 1000);
|
rest_timer.Start(m_pp.RestTimer * 1000);
|
||||||
|
|
||||||
|
/* Load Pet */
|
||||||
|
database.LoadPetInfo(this);
|
||||||
|
if (m_petinfo.SpellID > 1 && !GetPet() && m_petinfo.SpellID <= SPDAT_RECORDS) {
|
||||||
|
MakePoweredPet(m_petinfo.SpellID, spells[m_petinfo.SpellID].teleport_zone, m_petinfo.petpower, m_petinfo.Name, m_petinfo.size);
|
||||||
|
if (GetPet() && GetPet()->IsNPC()) {
|
||||||
|
NPC *pet = GetPet()->CastToNPC();
|
||||||
|
pet->SetPetState(m_petinfo.Buffs, m_petinfo.Items);
|
||||||
|
pet->CalcBonuses();
|
||||||
|
pet->SetHP(m_petinfo.HP);
|
||||||
|
pet->SetMana(m_petinfo.Mana);
|
||||||
|
}
|
||||||
|
m_petinfo.SpellID = 0;
|
||||||
|
}
|
||||||
|
/* Moved here so it's after where we load the pet data. */
|
||||||
|
if (!GetAA(aaPersistentMinion))
|
||||||
|
memset(&m_suspendedminion, 0, sizeof(PetInfo));
|
||||||
|
|
||||||
/* Server Zone Entry Packet */
|
/* Server Zone Entry Packet */
|
||||||
outapp = new EQApplicationPacket(OP_ZoneEntry, sizeof(ServerZoneEntry_Struct));
|
outapp = new EQApplicationPacket(OP_ZoneEntry, sizeof(ServerZoneEntry_Struct));
|
||||||
ServerZoneEntry_Struct* sze = (ServerZoneEntry_Struct*)outapp->pBuffer;
|
ServerZoneEntry_Struct* sze = (ServerZoneEntry_Struct*)outapp->pBuffer;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user