diff --git a/Map Server/packets/receive/ChatMessagePacket.cs b/Map Server/packets/receive/ChatMessagePacket.cs
deleted file mode 100644
index 33a2b5a5..00000000
--- a/Map Server/packets/receive/ChatMessagePacket.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive
-{
- class ChatMessagePacket
- {
- public float posX;
- public float posY;
- public float posZ;
- public float posRot;
-
- public uint logType;
-
- public string message;
-
- public bool invalidPacket = false;
-
- public ChatMessagePacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- binReader.ReadUInt64();
- posX = binReader.ReadSingle();
- posY = binReader.ReadSingle();
- posZ = binReader.ReadSingle();
- posRot = binReader.ReadSingle();
- logType = binReader.ReadUInt32();
- message = Encoding.ASCII.GetString(binReader.ReadBytes(0x200)).Trim(new [] { '\0' });
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/GroupCreatedPacket.cs b/Map Server/packets/receive/GroupCreatedPacket.cs
deleted file mode 100644
index 82c0df38..00000000
--- a/Map Server/packets/receive/GroupCreatedPacket.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive
-{
- class GroupCreatedPacket
- {
- public ulong groupId;
- public string workString;
-
- public bool invalidPacket = false;
-
- public GroupCreatedPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- groupId = binReader.ReadUInt64();
- workString = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' });
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
-
- }
-}
diff --git a/Map Server/packets/receive/HandshakePacket.cs b/Map Server/packets/receive/HandshakePacket.cs
deleted file mode 100644
index 8cc0ea3d..00000000
--- a/Map Server/packets/receive/HandshakePacket.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive
-{
- class HandshakePacket
- {
- bool invalidPacket = false;
-
- public uint actorID;
-
- public HandshakePacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- binReader.BaseStream.Seek(4, SeekOrigin.Begin);
- actorID = UInt32.Parse(Encoding.ASCII.GetString(binReader.ReadBytes(10)));
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/UpdatePlayerPositionPacket.cs b/Map Server/packets/receive/UpdatePlayerPositionPacket.cs
deleted file mode 100644
index 8774b971..00000000
--- a/Map Server/packets/receive/UpdatePlayerPositionPacket.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-
-namespace Meteor.Map.packets.receive
-{
- class UpdatePlayerPositionPacket
- {
- bool invalidPacket = false;
-
- public ulong time;
- public float x, y, z, rot;
- public ushort moveState; //0: Standing, 1: Walking, 2: Running
-
- public UpdatePlayerPositionPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- time = binReader.ReadUInt64();
- x = binReader.ReadSingle();
- y = binReader.ReadSingle();
- z = binReader.ReadSingle();
- rot = binReader.ReadSingle();
- moveState = binReader.ReadUInt16();
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
-
- }
-}
diff --git a/Map Server/packets/receive/events/EventStartPacket.cs b/Map Server/packets/receive/events/EventStartPacket.cs
deleted file mode 100644
index fd8b44b2..00000000
--- a/Map Server/packets/receive/events/EventStartPacket.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Map.lua;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive.events
-{
- class EventStartPacket
- {
- public const ushort OPCODE = 0x012D;
- public const uint PACKET_SIZE = 0xD8;
-
- public bool invalidPacket = false;
-
- public uint actorID;
- public uint scriptOwnerActorID;
- public uint val1;
- public uint val2;
- public byte val3;
-
- public uint errorIndex;
- public uint errorNum;
- public string error = null;
-
- public string triggerName;
-
- public List luaParams;
-
- public EventStartPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- actorID = binReader.ReadUInt32();
- scriptOwnerActorID = binReader.ReadUInt32();
- val1 = binReader.ReadUInt32();
- val2 = binReader.ReadUInt32();
- val3 = binReader.ReadByte();
- /*
- //Lua Error Dump
- if (val1 == 0x39800010)
- {
- errorIndex = actorID;
- errorNum = scriptOwnerActorID;
- error = ASCIIEncoding.ASCII.GetString(binReader.ReadBytes(0x80)).Replace("\0", "");
-
- if (errorIndex == 0)
- Program.Log.Error("LUA ERROR:");
-
- return;
- }
- */
- List strList = new List();
- byte curByte;
- while ((curByte = binReader.ReadByte())!=0)
- {
- strList.Add(curByte);
- }
- triggerName = Encoding.ASCII.GetString(strList.ToArray());
-
- binReader.BaseStream.Seek(0x31, SeekOrigin.Begin);
-
- if (binReader.PeekChar() == 0x1)
- luaParams = new List();
- else
- luaParams = LuaUtils.ReadLuaParams(binReader);
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/events/EventUpdatePacket.cs b/Map Server/packets/receive/events/EventUpdatePacket.cs
deleted file mode 100644
index f34bc717..00000000
--- a/Map Server/packets/receive/events/EventUpdatePacket.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Map.lua;
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-namespace Meteor.Map.packets.receive.events
-{
- class EventUpdatePacket
- {
- public const ushort OPCODE = 0x012E;
- public const uint PACKET_SIZE = 0x78;
-
- public bool invalidPacket = false;
-
- public uint actorID;
- public uint scriptOwnerActorID;
- public uint val1;
- public uint val2;
- public byte step;
- public List luaParams;
-
- public EventUpdatePacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- actorID = binReader.ReadUInt32();
- scriptOwnerActorID = binReader.ReadUInt32();
- val1 = binReader.ReadUInt32();
- val2 = binReader.ReadUInt32();
- step = binReader.ReadByte();
- luaParams = LuaUtils.ReadLuaParams(binReader);
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/recruitment/RecruitmentDetailsRequestPacket.cs b/Map Server/packets/receive/recruitment/RecruitmentDetailsRequestPacket.cs
deleted file mode 100644
index 13ab6003..00000000
--- a/Map Server/packets/receive/recruitment/RecruitmentDetailsRequestPacket.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-
-namespace Meteor.Map.packets.receive.recruitment
-{
- class RecruitmentDetailsRequestPacket
- {
- public bool invalidPacket = false;
-
- public ulong recruitmentId;
-
- public RecruitmentDetailsRequestPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- recruitmentId = binReader.ReadUInt64();
-
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/recruitment/RecruitmentSearchRequestPacket.cs b/Map Server/packets/receive/recruitment/RecruitmentSearchRequestPacket.cs
deleted file mode 100644
index d7a2821d..00000000
--- a/Map Server/packets/receive/recruitment/RecruitmentSearchRequestPacket.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive.recruitment
-{
- class RecruitmentSearchRequestPacket
- {
- public bool invalidPacket = false;
-
- public uint purposeId;
- public uint locationId;
-
- public uint discipleId;
- public uint classjobId;
-
- public byte unknown1;
- public byte unknown2;
-
- public string text;
-
- public RecruitmentSearchRequestPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- purposeId = binReader.ReadUInt32();
- locationId = binReader.ReadUInt32();
- discipleId = binReader.ReadUInt32();
- classjobId = binReader.ReadUInt32();
-
- unknown1 = binReader.ReadByte();
- unknown2 = binReader.ReadByte();
-
- text = Encoding.ASCII.GetString(binReader.ReadBytes(0x20));
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/recruitment/StartRecruitingRequestPacket.cs b/Map Server/packets/receive/recruitment/StartRecruitingRequestPacket.cs
deleted file mode 100644
index 24989d16..00000000
--- a/Map Server/packets/receive/recruitment/StartRecruitingRequestPacket.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive.recruitment
-{
- class StartRecruitingRequestPacket
- {
- public bool invalidPacket = false;
-
- public uint purposeId;
- public uint locationId;
- public uint subTaskId;
-
- public uint[] discipleId = new uint[4];
- public uint[] classjobId = new uint[4];
- public byte[] minLvl = new byte[4];
- public byte[] maxLvl = new byte[4];
- public byte[] num = new byte[4];
-
- public string comment;
-
- public StartRecruitingRequestPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- purposeId = binReader.ReadUInt32();
- locationId = binReader.ReadUInt32();
- subTaskId = binReader.ReadUInt32();
-
- for (int i = 0; i < 4; i++)
- {
- discipleId[i] = binReader.ReadUInt32();
- classjobId[i] = binReader.ReadUInt32();
- minLvl[i] = binReader.ReadByte();
- maxLvl[i] = binReader.ReadByte();
- num[i] = binReader.ReadByte();
- binReader.ReadByte();
- }
-
- comment = Encoding.ASCII.GetString(binReader.ReadBytes(0x168));
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/social/AddRemoveSocialPacket.cs b/Map Server/packets/receive/social/AddRemoveSocialPacket.cs
deleted file mode 100644
index 883d887d..00000000
--- a/Map Server/packets/receive/social/AddRemoveSocialPacket.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive.social
-{
- class AddRemoveSocialPacket
- {
- public bool invalidPacket = false;
- public string name;
-
- public AddRemoveSocialPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try{
- name = Encoding.ASCII.GetString(binReader.ReadBytes(0x20));
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
- }
-}
diff --git a/Map Server/packets/receive/supportdesk/GMSupportTicketPacket.cs b/Map Server/packets/receive/supportdesk/GMSupportTicketPacket.cs
deleted file mode 100644
index 48460f06..00000000
--- a/Map Server/packets/receive/supportdesk/GMSupportTicketPacket.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.receive.supportdesk
-{
- class GMSupportTicketPacket
- {
- public bool invalidPacket = false;
- public string ticketTitle, ticketBody;
- public uint ticketIssueIndex;
- public uint langCode;
-
- public GMSupportTicketPacket(byte[] data)
- {
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryReader binReader = new BinaryReader(mem))
- {
- try
- {
- langCode = binReader.ReadUInt32();
- ticketIssueIndex = binReader.ReadUInt32();
- ticketTitle = Encoding.ASCII.GetString(binReader.ReadBytes(0x80)).Trim(new[] { '\0' });
- ticketBody = Encoding.ASCII.GetString(binReader.ReadBytes(0x800)).Trim(new[] { '\0' });
- }
- catch (Exception){
- invalidPacket = true;
- }
- }
- }
- }
-
- }
-}
diff --git a/Map Server/packets/send/events/EndEventPacket.cs b/Map Server/packets/send/events/EndEventPacket.cs
deleted file mode 100644
index 4929d1ad..00000000
--- a/Map Server/packets/send/events/EndEventPacket.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using System;
-using System.IO;
-using System.Text;
-
-using Meteor.Common;
-
-namespace Meteor.Map.packets.send.events
-{
- class EndEventPacket
- {
- public const ushort OPCODE = 0x0131;
- public const uint PACKET_SIZE = 0x50;
-
- public static SubPacket BuildPacket(uint sourcePlayerActorId, uint eventOwnerActorID, string eventStarter)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
- int maxBodySize = data.Length - 0x80;
-
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryWriter binWriter = new BinaryWriter(mem))
- {
- binWriter.Write((UInt32)sourcePlayerActorId);
- binWriter.Write((UInt32)0);
- binWriter.Write((Byte)1);
- binWriter.Write(Encoding.ASCII.GetBytes(eventStarter), 0, Encoding.ASCII.GetByteCount(eventStarter) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(eventStarter));
- }
- }
-
- return new SubPacket(OPCODE, sourcePlayerActorId, data);
- }
- }
-}
diff --git a/Map Server/packets/send/events/KickEventPacket.cs b/Map Server/packets/send/events/KickEventPacket.cs
deleted file mode 100644
index 18f04ea4..00000000
--- a/Map Server/packets/send/events/KickEventPacket.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Map.lua;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Text;
-
-using Meteor.Common;
-
-namespace Meteor.Map.packets.send.events
-{
- class KickEventPacket
- {
- public const ushort OPCODE = 0x012F;
- public const uint PACKET_SIZE = 0x90;
-
- public static SubPacket BuildPacket(uint sourcePlayerActorId, uint targetEventActorId, uint unknown, string conditionName, List luaParams)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
-
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryWriter binWriter = new BinaryWriter(mem))
- {
- binWriter.Write((UInt32)sourcePlayerActorId);
- binWriter.Write((UInt32)targetEventActorId);
- binWriter.Write((UInt32)unknown);
- binWriter.Write((UInt32)0x30400000);
- binWriter.Write(Encoding.ASCII.GetBytes(conditionName), 0, Encoding.ASCII.GetByteCount(conditionName) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(conditionName));
-
- binWriter.Seek(0x30, SeekOrigin.Begin);
-
- LuaUtils.WriteLuaParams(binWriter, luaParams);
- }
- }
-
- return new SubPacket(OPCODE, sourcePlayerActorId, data);
- }
- }
-
-}
diff --git a/Map Server/packets/send/events/RunEventFunctionPacket.cs b/Map Server/packets/send/events/RunEventFunctionPacket.cs
deleted file mode 100644
index 63265726..00000000
--- a/Map Server/packets/send/events/RunEventFunctionPacket.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Map.lua;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Text;
-
-using Meteor.Common;
-
-namespace Meteor.Map.packets.send.events
-{
- class RunEventFunctionPacket
- {
- public const ushort OPCODE = 0x0130;
- public const uint PACKET_SIZE = 0x2B8;
-
- public static SubPacket BuildPacket(uint sourcePlayerActorId, uint eventOwnerActorID, string eventStarter, string callFunction, List luaParams)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
- int maxBodySize = data.Length - 0x80;
-
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryWriter binWriter = new BinaryWriter(mem))
- {
- binWriter.Write((UInt32)sourcePlayerActorId);
- binWriter.Write((UInt32)eventOwnerActorID);
- binWriter.Write((Byte)5);
- binWriter.Write(Encoding.ASCII.GetBytes(eventStarter), 0, Encoding.ASCII.GetByteCount(eventStarter) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(eventStarter));
- binWriter.Seek(0x29, SeekOrigin.Begin);
- binWriter.Write(Encoding.ASCII.GetBytes(callFunction), 0, Encoding.ASCII.GetByteCount(callFunction) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(callFunction));
- binWriter.Seek(0x49, SeekOrigin.Begin);
-
- LuaUtils.WriteLuaParams(binWriter, luaParams);
- }
- }
-
- return new SubPacket(OPCODE, sourcePlayerActorId, data);
- }
- }
-}
diff --git a/Map Server/packets/send/player/SetCompletedAchievementsPacket.cs b/Map Server/packets/send/player/SetCompletedAchievementsPacket.cs
deleted file mode 100644
index 3731db55..00000000
--- a/Map Server/packets/send/player/SetCompletedAchievementsPacket.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Common;
-using System.IO;
-
-namespace Meteor.Map.packets.send.player
-{
- class SetCompletedAchievementsPacket
- {
- //Achievenments are +1 and up, except for Quests and GCs which is +2
- public const int CATEGORY_BATTLE = 000;
- public const int CATEGORY_CHARACTER = 050;
- public const int CATEGORY_CURRENCY = 200;
- public const int CATEGORY_ITEMS = 250;
- public const int CATEGORY_SYNTHESIS = 300;
- public const int CATEGORY_GATHERING = 400;
- public const int CATEGORY_MATERIA = 550;
- public const int CATEGORY_QUESTS = 600;
- public const int CATEGORY_SEASONAL_EVENTS = 700;
- public const int CATEGORY_DUNGEONS = 750;
- public const int CATEGORY_EXPLORATION = 800;
- public const int CATEGORY_GRAND_COMPANY = 820;
-
- public const ushort OPCODE = 0x019A;
- public const uint PACKET_SIZE = 0xA0;
-
- public bool[] achievementFlags = new bool[1024];
-
- public SubPacket BuildPacket(uint sourceActorId)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
-
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryWriter binWriter = new BinaryWriter(mem))
- {
- byte[] binStream = Utils.ConvertBoolArrayToBinaryStream(achievementFlags);
- if (binStream.Length <= PACKET_SIZE - 0x20)
- binWriter.Write(binStream);
- else
- Program.Log.Error("Failed making SetCompletedAchievements packet. Bin Stream was too big!");
- }
- }
-
- return new SubPacket(OPCODE, sourceActorId, data);
- }
-
- }
-}
diff --git a/Map Server/packets/send/player/SetCurrentMountGoobbuePacket.cs b/Map Server/packets/send/player/SetCurrentMountGoobbuePacket.cs
deleted file mode 100644
index 82ac10c8..00000000
--- a/Map Server/packets/send/player/SetCurrentMountGoobbuePacket.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Common;
-
-namespace Meteor.Map.packets.send.player
-{
- class SetCurrentMountGoobbuePacket
- {
-
- public const ushort OPCODE = 0x01a0;
- public const uint PACKET_SIZE = 0x28;
-
- public static SubPacket BuildPacket(uint sourceActorId, int appearanceId)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
- data[0] = (byte)(appearanceId & 0xFF);
- return new SubPacket(OPCODE, sourceActorId, data);
- }
- }
-}
diff --git a/Map Server/packets/send/player/SetCutsceneBookPacket.cs b/Map Server/packets/send/player/SetCutsceneBookPacket.cs
deleted file mode 100644
index 631434c2..00000000
--- a/Map Server/packets/send/player/SetCutsceneBookPacket.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Common;
-using System;
-using System.IO;
-using System.Text;
-
-namespace Meteor.Map.packets.send.player
-{
- class SetCutsceneBookPacket
- {
- //Main Story
- public const int CATEGORY_MAINSTORY = 072;
- public const int CATEGORY_SIDEQUESTS1 = 672;
- public const int CATEGORY_SIDEQUESTS2 = 892;
- public const int CATEGORY_INSTANCED = 888;
-
- //Other
- public const int OTHER_UGHAMARO = 005;
- public const int OTHER_NATALAN = 006;
- public const int OTHER_Z = 007;
- public const int OTHER_CASTRUMNOVUM = 008;
- public const int OTHER_NIGHTMARE = 014;
-
- //Class Cutscenes
- public const int CATEGORY_PUG_QUESTS = 128;
- public const int CATEGORY_GLA_QUESTS = 148;
- public const int CATEGORY_MRD_QUESTS = 168;
- public const int CATEGORY_ARC_QUESTS = 188;
- public const int CATEGORY_LNC_QUESTS = 208;
- public const int CATEGORY_THM_QUESTS = 228;
- public const int CATEGORY_CNJ_QUESTS = 248;
-
- //DoH/DoL Cutscenes
- public const int CATEGORY_CRP_QUESTS = 268;
- public const int CATEGORY_BSM_QUESTS = 288;
- public const int CATEGORY_GSM_QUESTS = 308;
- public const int CATEGORY_LTW_QUESTS = 328;
- public const int CATEGORY_WVR_QUESTS = 348;
- public const int CATEGORY_ALC_QUESTS = 368;
- public const int CATEGORY_CUL_QUESTS = 388;
- public const int CATEGORY_MIN_QUESTS = 408;
- public const int CATEGORY_BTN_QUESTS = 428;
- public const int CATEGORY_FSH_QUESTS = 448;
-
- //Job Cutscenes
- public const int CATEGORY_WAR_QUESTS = 1272;
- public const int CATEGORY_MNK_QUESTS = 1292;
- public const int CATEGORY_WHM_QUESTS = 1312;
- public const int CATEGORY_BLM_QUESTS = 1332;
- public const int CATEGORY_PLD_QUESTS = 1352;
- public const int CATEGORY_BRD_QUESTS = 1372;
- public const int CATEGORY_DRG_QUESTS = 1392;
-
- //GC Cutscenes
- public const int CATEGORY_MAELSTROM = 1472;
- public const int CATEGORY_ADDERS = 1672;
- public const int CATEGORY_FLAMES = 1872;
-
- public const ushort OPCODE = 0x01A3;
- public const uint PACKET_SIZE = 0x150;
-
- public bool[] cutsceneFlags = new bool[2048];
-
- public SubPacket BuildPacket(uint sourceActorId, string sNpcName, short sNpcActorIdOffset, byte sNpcSkin, byte sNpcPersonality)
- {
- byte[] data = new byte[PACKET_SIZE - 0x20];
-
- using (MemoryStream mem = new MemoryStream(data))
- {
- using (BinaryWriter binWriter = new BinaryWriter(mem))
- {
- byte[] binStream = Utils.ConvertBoolArrayToBinaryStream(cutsceneFlags);
-
- //Temp Path Companion SNPC Stuff
- binWriter.Seek(0x01 ,SeekOrigin.Begin);
- binWriter.Write((Int16)2);
- binWriter.Write((Byte)0);
- binWriter.Write((Int16)sNpcActorIdOffset);
- binWriter.Write((Byte)sNpcSkin);
- binWriter.Write((Byte)sNpcPersonality);
-
- if (binStream.Length <= PACKET_SIZE - 0x20)
- binWriter.Write(binStream);
- else
- Program.Log.Error("Failed making SetCutsceneBook packet. Bin Stream was too big!");
-
- binWriter.Seek(0x109, SeekOrigin.Begin);
- binWriter.Write(Encoding.ASCII.GetBytes(sNpcName), 0, Encoding.ASCII.GetByteCount(sNpcName) >= 0x20 ? 0x20 : Encoding.ASCII.GetByteCount(sNpcName));
-
- }
- }
-
- return new SubPacket(OPCODE, sourceActorId, data);
- }
-
- }
-}
diff --git a/Map Server/packets/send/player/SetPlayerDreamPacket.cs b/Map Server/packets/send/player/SetPlayerDreamPacket.cs
deleted file mode 100644
index d9c0a9bf..00000000
--- a/Map Server/packets/send/player/SetPlayerDreamPacket.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 2015-2019 Project Meteor Dev Team
-
-This file is part of Project Meteor Server.
-
-Project Meteor Server is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Project Meteor Server is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with Project Meteor Server. If not, see .
-===========================================================================
-*/
-
-using Meteor.Common;
-using System;
-
-namespace Meteor.Map.packets.send.player
-{
- class SetPlayerDreamPacket
- {
- public const ushort OPCODE = 0x01A7;
- public const uint PACKET_SIZE = 0x28;
-
- public static SubPacket BuildPacket(uint sourceActorId, uint dreamID)
- {
- dreamID += 0x20E;
- return new SubPacket(OPCODE, sourceActorId, BitConverter.GetBytes((uint)dreamID));
- }
- }
-}