Changed InfoRequestResponsePacket to GenericDataPacket as that is the proper use/term. Added the city exit spawn locations. Did more work on the chocobolender script. Most of the issuing portion is done. Also can now summon through the lender.

This commit is contained in:
Filip Maj 2016-08-21 19:51:49 -04:00
parent d5f17c01a8
commit 8725377168
5 changed files with 25 additions and 33 deletions

View file

@ -0,0 +1,27 @@
using FFXIVClassic_Map_Server.lua;
using System.Collections.Generic;
using System.IO;
namespace FFXIVClassic_Map_Server.packets.send.player
{
class GenericDataPacket
{
public const ushort OPCODE = 0x0133;
public const uint PACKET_SIZE = 0xE0;
public static SubPacket BuildPacket(uint playerActorID, uint targetActorID, List<LuaParam> luaParams)
{
byte[] data = new byte[PACKET_SIZE - 0x20];
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryWriter binWriter = new BinaryWriter(mem))
{
LuaUtils.WriteLuaParams(binWriter, luaParams);
}
}
return new SubPacket(OPCODE, playerActorID, targetActorID, data);
}
}
}