moonbox help

02/24/2010 01:42 probitch18#1
ok so ive dun this but it doesnt give u the item its for 5165 im not sure how to do random item im just learning :P
Code:
                if (I.DBInfo.Name == "MoonBox")
                {
                    MyClient.LocalMessage(2005, "MoonBox is in testing stage.");
                    Item It = new Item();
                    It.ID = 2100055;
                    It.MaxDur = It.DBInfo.Durability;
                    It.CurDur = It.MaxDur;
                    It.Plus = 0;
                    It.UID = (uint)Program.Rnd.Next(int.MaxValue);
                    It.TalismanProgress = BitConverter.ToUInt32(new byte[4] { 150, 255, 0, 0 }, 0);
                    RemoveItem(I);
                    AddItem(It);




                    return;
                }