Experienced Elementalist
- Joined
- Jul 27, 2008
- Messages
- 222
- Reaction score
- 9
Search for :
Add above :
Search for :
Change, and add;
Then the last thing, add the attached file to the packethandling folder.
note; There are gonna be some errors and I'm not gonna correct them for you, besides I will just show how to solve them.
Big mistake, forgot the packet:
Code:
case 2064:
Add above :
Code:
case 2048:
{
PacketHandling.ItemLock.Handle(GC, Data);
break;
}
Search for :
Code:
public bool Locked;
Code:
public int Locked;
public uint LockedDays;
Then the last thing, add the attached file to the packethandling folder.
note; There are gonna be some errors and I'm not gonna correct them for you, besides I will just show how to solve them.
I WILL NOT HELP YOU SAVING IT.if (Item.Locked) will be if (Item.Locked == 1)
if (Item.Locked == false) will be if (Item.Locked == 0)
Big mistake, forgot the packet:
Code:
public static COPacket ItemLock(uint ItemID, byte Value1, byte Value2, uint Value3)
{
byte[] Packet = new byte[8 + 16];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)2048);
P.WriteInt32(ItemID);
P.WriteByte(Value1);
P.WriteByte(Value2);
P.WriteInt32(Value3);
return P;
}