void c_ClientSpawnOtherPlayerInfo(object sender, ClientSpawnOtherPlayerEventArgs e) { Client c = (Client)sender; SpawnRequestInfo sr = e.Info; Character ch = characterManager.GetCharacterByCharacterId(sr.CharacterID); Client OtherClient = GetClientByCharacterID(ch.CharacterId); byte[] bufferSendOtherPlayers = PacketManager.SendSpawnPlayers(ch); c.Send(bufferSendOtherPlayers); byte[] bufferSendOtherPlayers2 = PacketManager.SendSpawnPlayers(c.MyCharacter); OtherClient.Send(bufferSendOtherPlayers2); }
void c_ClientSpawnOtherPlayerInfo(object sender, ClientSpawnOtherPlayerEventArgs e) { Client c = (Client)sender; SpawnRequestInfo sr = e.Info; Character ch = characterManager.GetCharacterByCharacterId(sr.CharacterID); Client OtherClient = GetClientByCharacterID(ch.CharacterId); byte[] bufferSendOtherPlayers = PacketManager.SendSpawnPlayers(ch); c.Send(bufferSendOtherPlayers); byte[] bufferSendOtherPlayers2 = PacketManager.SendSpawnPlayers(c.MyCharacter); OtherClient.Send(bufferSendOtherPlayers2); }
void c_ClientSpawnOtherPlayerInfo(object sender, ClientSpawnOtherPlayerEventArgs e) { Client c = (Client)sender; SpawnRequestInfo sr = e.Info; try { Client OtherClient = GetClientByCharacterID(sr.CharacterID); byte[] bufferSendOtherPlayers = PacketManager.SendSpawnPlayers(OtherClient.MyCharacter); c.Send(bufferSendOtherPlayers); byte[] SendPlayerActiveSkills = PacketManager.SendPlayerActiveSkills(OtherClient.MyCharacter); c.Send(SendPlayerActiveSkills); byte[] bufferSendOtherPlayers2 = PacketManager.SendSpawnPlayers(c.MyCharacter); OtherClient.Send(bufferSendOtherPlayers2); if (OtherClient.MyCharacter.Pet != null && !OtherClient.MyCharacter.Pet.IsSealed) { byte[] buffersSendHeHasPet = PacketManager.SendPetOtherPlayerHasPet(OtherClient.MyCharacter.Pet); c.Send(buffersSendHeHasPet); } } catch { } }