Removed weird lowercase refs.

This commit is contained in:
Filip Maj 2019-07-26 23:26:37 -04:00
parent 0ec9c5576c
commit 5724cf53bf
18 changed files with 0 additions and 1121 deletions

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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<LuaParam> 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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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<LuaParam> 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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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);
}
}
}

View file

@ -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 <https:www.gnu.org/licenses/>.
===========================================================================
*/
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));
}
}
}