|
You last visited: Today at 15:36
Advertisement
Whats wrong with this GeneralData 5180 Packet ( impulse's )
Discussion on Whats wrong with this GeneralData 5180 Packet ( impulse's ) within the CO2 Private Server forum part of the Conquer Online 2 category.
06/26/2010, 23:31
|
#1
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Whats wrong with this GeneralData 5180 Packet ( impulse's )
here's a packet and I updated from the 5180 that was released but doesnt seem to want to work
Code:
using System;
namespace Conquer_Online_Server.Network.GamePackets
{
public class GeneralData : Writer, Interfaces.IPacket
{
public const ushort
SetLocation = 74,
SpawnEffect = 0x86,
Hotkeys = 75,
ConfirmFriends = 76,
ConfirmProficiencies = 77,
ConfirmSpells = 78,
ChangeDirection = 79,
ChangeAction = 81,
UsePortal = 85,
Teleport = 86,
Leveled = 92,
Revive = 94,
DeleteCharacter = 95,
ChangePKMode = 96,
ConfirmGuild = 97,
InvisibleEntity = 102,
NewCoordonates = 108,
GetSurroundings = 114,
OpenCustom = 116,
ObserveEquipment = 117,
OpenWindow = 126,
CompleteLogin = 132,
RemoveEntity = 135,
Jump = 137,
EndTeleport = 146,
ChangeAvatar = 0x97,
ConfirmAssociates = 0x4C,
ChangeFace = 151;
public GeneralData(bool Create)
{
if (Create)
{
Buffer = new byte[8 + 37];
WriteUInt16(37, 0, Buffer);
WriteUInt16(10010, 2, Buffer);
}
}
byte[] Buffer;
public uint UID
{
get { return BitConverter.ToUInt32(Buffer, 4); }
set { Writer.WriteUInt32(value, 4, Buffer); }
}
public uint dwParam
{
get
{
return BitConverter.ToUInt32(Buffer, 8);
}
set
{
WriteUInt32(value, 8, Buffer);
}
}
public ushort ID
{
get
{
return BitConverter.ToUInt16(Buffer, 20);
}
set
{
WriteUInt16(value, 20, Buffer);
}
}
public Time32 TimeStamp
{
get
{
return new Time32(BitConverter.ToUInt32(Buffer, 16));
}
set
{
WriteUInt32((uint)value.GetHashCode(), 16, Buffer);
}
}
public Game.Enums.ConquerAngle Facing
{
get
{
return (Game.Enums.ConquerAngle)Buffer[22];
}
}
public ushort wParam1
{
get
{
return BitConverter.ToUInt16(Buffer, 24);
}
set
{
WriteUInt16(value, 24, Buffer);
}
}
public ushort wParam2
{
get
{
return BitConverter.ToUInt16(Buffer, 26);
}
set
{
WriteUInt16(value, 26, Buffer);
}
}
public uint wParam3
{
get
{
return BitConverter.ToUInt32(Buffer, 28);
}
set
{
WriteUInt32(value, 28, Buffer);
}
}
public uint wParam4
{
get
{
return BitConverter.ToUInt32(Buffer, 30);
}
set
{
WriteUInt32(value, 30, Buffer);
}
}
public void Deserialize(byte[] buffer)
{
this.Buffer = buffer;
}
public byte[] ToArray()
{
return Buffer;
}
public void Send(Client.GameState client)
{
client.Send(Buffer);
}
}
}
Any ideas ?
|
|
|
06/27/2010, 11:03
|
#2
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Looks fine to me lol
|
|
|
06/27/2010, 11:47
|
#3
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Impulse said that the packet is wrong, lol, and thats why I stay at "Connecting to gameserver", can u give me witch packets changed at 5180 ?
-- = done
--New auth packet
--CharacterPacket
--Apprently GeneralData packet
?
|
|
|
06/27/2010, 12:09
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Eliminationn
Request close
|
Don't double post, use the edit button.
|
|
|
06/27/2010, 12:22
|
#5
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
if u do a double post when u want it closed, mods respond quicker.
btw. get on msn
|
|
|
|
Similar Threads
|
What's wrong with my Nighttime command(impulse's source)
07/21/2010 - CO2 Private Server - 4 Replies
Heres my command
#region Night
case "night":
{
Client.GameState.ScreenColor = 5855577;
GamePackets.GeneralData Packet = new GamePackets.GeneralData(true);
Packet.UID = client.Entity.UID;
Packet.GetType();
...
|
5180 CharacterInfo packet ( Impule's )
07/06/2010 - CO2 Private Server - 19 Replies
My packet appears to be wrong, the characternames are fucked up...and I cant see anybody else but can see other people talking/whispers along with them dropping things and doing things like @gm hey but if I whisper them using the name that appears when they talk its like E Speak to all: Hey but if I whisper there real name they get it and my names appears fucked. heres my packet with a few /* */ things
using System;
namespace Conquer_Online_Server.Network.GamePackets
{
...
|
Whats Wrong :(
05/26/2009 - CO2 Private Server - 1 Replies
Whats Wrong i have run andy source and this command dont work
any one know why is /item command
case "item":
{
if (CSocket.Client.isPM || CSocket.Client.isGM)
{
if (Command.Length == 8)
|
All times are GMT +2. The time now is 15:36.
|
|