/door show
Hi HunabKu- can you clic on after ?
- Code: Select all
/door show
- if yes you will asked for add it on database.
PacketOut Out = new PacketOut((byte)Opcodes.F_CREATE_STATIC); // Headers and what else ??
Out.WriteUInt16(Oid); //Size: 2
Out.WriteUInt16(0); //Size: 4
Out.WriteUInt16((UInt16)Spawn.WorldO); //Size: 6
Out.WriteUInt16((UInt16)Spawn.WorldZ); //Size: 8
Out.WriteUInt32((UInt32)Spawn.WorldX); //Size: 12
Out.WriteUInt32((UInt32)Spawn.WorldY); //Size: 16
Out.WriteUInt16((ushort)Spawn.DisplayID); //Size: 18
Out.WriteUInt16(Spawn.GetUnk(0)); //Size: 20
Out.WriteUInt16(Spawn.GetUnk(1)); //Size: 22
Out.WriteUInt16(Spawn.GetUnk(2)); //Size: 24
Out.WriteByte(Spawn.Unk1); //Size: 25
int flags = Spawn.GetUnk(3);
Loot Loots = LootsMgr.GenerateLoot(this, Plr);
if (Loots != null && Loots.IsLootable())
{
flags = flags | 4;
}
Out.WriteUInt16((ushort)flags); //Size: 27
Out.WriteByte(Spawn.Unk2); //Size: 28
Out.WriteUInt32(Spawn.Unk3); //Size: 32
Out.WriteUInt16(Spawn.GetUnk(4)); //Size: 34
Out.WriteUInt16(Spawn.GetUnk(5)); //Size: 36
Out.WriteUInt32(Spawn.Unk4); //Size: 40
Out.WritePascalString(Name); //Size: 56 (1 byte size + 15 byte length with : Empire Bar Door)
// We are missing 4 bytes here your : "04 06 AB DD", the 0x00 is the last byte on next line...
Out.WriteByte(0); //Size: 57 // Maybe 61 ? with 4 bytes missing ? Is the header size 3 bytes too ?
Out.WritePascalString(Name);
Out.WriteUInt32(0); // Unknown 4 missing bytes...
Out.WriteByte(0);
Return to “%s” Other Discussion
Users browsing this forum: No registered users and 1 guest