Quote:
Originally Posted by pro4never
Pretty sure you need sub classes working in order to use mount armors although I've never done anything with them.
You may need to do a bit more work to get them working properly....
PS: Albetros is a pretty trashy source. I dumped it for a reason.
|
don't even need to implement them if you just want armours just send the packet saying they're the subclass x at level x
@OP:
from acidcov3
Code:
using System.IO;
namespace COPS2012.Network.Packets
{
public class SubClassShowPacket
{
public ushort ID;
public byte Class;
public byte Phase;
public SubClassShowPacket() { }
public byte[] BuildPacket()
{
var strm = new BinaryWriter(new MemoryStream());
strm.WritePacketType((PacketType)2320);
strm.WriteUInt16(ID);
strm.WriteByte(Class);
strm.WriteByte(Phase);
return strm.Finalize();
}
}
}
onlogin
Code:
client.Send(new SubClassShowPacket {Class = 9, ID = 4, Phase = 9}.BuildPacket());
client.Send(new SubClassShowPacket {Class = 9, ID = 5, Phase = 9}.BuildPacket());
this is
all you need to be able to wear the armours @op
oh and as for getting the actual armors;
Code:
case "@tigers":
{
uint start = 200000;
for (byte i = 0; i < 11; i++)
{
start += 1;
Client.Inventory.AddItem(new Item((int)start, 12))
}
break;
}
case "@deers":
{
uint start = 200100;
for (byte i = 0; i < 10; i++)
{
start += 1;
Client.Inventory.AddItem(new Item((int)start, 12));
}
break;
}
ps; not going to defend the command code; this was back in 2012