Can somebody tell me the Packet Structure of 1109? Guess this packet handles the Vendor_IDs if you enter the Market no?
Thanks
1009 is a very multi purpose packet... it's used for everything from determining your player ping to equiping items... etc.
In general the client sends a 1009 packet to server requesting an action and it then returns either a 1009 response or a set of different packets.
EG: for type 46 (show client gear) you are doing a uint32 for item uid in each equipment slot... but for other things like use item you're using a uint location/use type and most of the other parts of the packet are left blank (talking server>client here). I'd suggest simply logging the type of 1009 you want as it doesn't have a really consistent structure... well... it does... ushort, ushort followed by all uint32s but their usage changes almost as much as general data subtypes do if not more.
ushort(28+Name.Lenght);
ushort(1109);
uint32(TerrianNpcID);
uint32(TerrianMaxHp);
uint32(TerrianCurrentHp);
uint32(TerrianX);
uint32(TerrianY);
uint32(TerrianNpcType);
ushort(26);//unknown i think it may be TerrianNpc.Look (Subtype)
byte(Terrian.Facing);
byte(Name.Length);
Text(Name);
ushort(28+Name.Lenght);
ushort(1109);
uint32(TerrianNpcID);
uint32(TerrianMaxHp);
uint32(TerrianCurrentHp);
uint32(TerrianX);
uint32(TerrianY);
uint32(TerrianNpcType);
ushort(26);//unknown i think it may be TerrianNpc.Look (Subtype)
byte(Terrian.Facing);
byte(Name.Length);
Text(Name);
ushort(28+Name.Lenght);
ushort(1109);
uint32(TerrianNpcID);
uint32(TerrianMaxHp);
uint32(TerrianCurrentHp);
uint32(TerrianX);
uint32(TerrianY);
uint32(TerrianNpcType);
ushort(26);//unknown i think it may be TerrianNpc.Look (Subtype)
byte(Terrian.Facing);
byte(Name.Length);
Text(Name);
Just a copy-paste from ConquerServer_v2 with a quick-mod: \Packet Structures\Spawn SOB 0x455.cs\
Code:
public enum SOBType : ushort
{
Gate = 0x1A,
Scarecrow = 0x16,
Stake = 0x15,
Pole = 0x0A,
Carpet = 0x0E
}
public enum SOBMesh : ushort
{
LeftGate = 0x00F1,
RightGate = 0x0115,
Pole = 0x471,
Carpet = 0x196
}
/// <summary>
/// 0x455 (Server->Client)
/// </summary>
public unsafe struct SpawnSOBPacket
{
public ushort Size;
public ushort Type;
public uint UID;
public int MaxHitpoints;
public int Hitpoints;
public ushort X;
public ushort Y;
public SOBMesh SOBMesh;
public SOBType SOBType;
public ushort Facing;
public bool ShowName;
public byte NameLength;
public fixed byte Strings[24];
public static SpawnSOBPacket Create()
{
SpawnSOBPacket Data = new SpawnSOBPacket();
Data.Size = 0x1C;
Data.Type = 0x455;
PacketBuilder.AppendTQServer(Data.Strings, 8);
return Data;
}
}
If a name was assigned (and note: having a name is optional) to the static-object-monster the following changes are required: \Core\SOBMonster.cs
[Resource] My Wiki 05/07/2011 - CO2 Private Server - 4 Replies Hey. Hope you get use out of this.
If you want me to add anything, just say so and
what you want me to add below.
Link: https://conquerresources.wikispaces.com/
Edit: Here are all of the source downloads btw in a list:
http://spirited-fang.blogspot.com/p/source-downlo ads.html
Sincerely,
Resource Wiki 11/12/2010 - CO2 Private Server - 3 Replies Hey everyone,
I know how helpful it is to have a Packet Wiki, so I thought that I would add this to help you all. It's a resource wiki that will help you customize your source. Hope you all like it!
http://conquerproject.wikispaces.com/space/badge/ 468x60
Link if you can't figure out that the image is the link: Conquer Project Resources
Sincerely,
Fang