Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Item Lock [ 5165 ]

Experienced Elementalist
Joined
Jul 27, 2008
Messages
222
Reaction score
9
Search for :
Code:
case 2064:

Add above :
Code:
                        case 2048:
                            {
                                PacketHandling.ItemLock.Handle(GC, Data);
                                break;
                            }

Search for :
Code:
public bool Locked;
Change, and add;

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.

if (Item.Locked) will be if (Item.Locked == 1)
if (Item.Locked == false) will be if (Item.Locked == 0)
I WILL NOT HELP YOU SAVING IT.

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;
        }
 
Back
Top