public override void Use(Player player) { if (Quantity >= 12) { var newitem = new script.item.DarkMail().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); Quantity = Quantity - 1; } else if (Quantity >= 3 && Quantity <= 11) { var newitem = new script.item.DarkMail().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); Quantity = Quantity - 1; string itdrop = "+10 검객패키지" + (Quantity - 1) + "개남았습니다" + " "; player.client.SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)itdrop.Count(), itdrop).Compile()); } else { /*int mobile = Serial.NewMobile; * World.SendToAll(new QueDele(player.Map, new CreateMagicEffect(mobile, 1, (short)player.X, (short)player.Y, new byte[] { 4, 0, 0, 0, 0, 0, 0, 0, 0, 15 }, 0).Compile())); * var tmp = new QueDele(LKCamelot.Server.tickcount.ElapsedMilliseconds + 5000, player.m_Map, new DeleteObject(mobile).Compile()); * tmp.tempser = mobile; * World.TickQue.Add(tmp); * Thread.Sleep(5000);*/ var newitem = new script.item.DarkMail().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); base.Use(player); } }
public override void Use(Player player) { if (Quantity >= 12) { var newitem = new script.item.GoldPlate().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); Quantity = Quantity - 1; } else if (Quantity >= 3 && Quantity <= 11) { var newitem = new script.item.GoldPlate().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); Quantity = Quantity - 1; string itdrop = "+10 기사패키지" + (Quantity - 1) + "개남았습니다" + " "; player.client.SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)itdrop.Count(), itdrop).Compile()); } else { var newitem = new script.item.GoldPlate().Inventory(player); (newitem as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem.m_Serial, newitem); player.client.SendPacket(new AddItemToInventory2(newitem).Compile()); var newitem2 = new script.item.ExtraScimitar().Inventory(player); (newitem2 as script.item.Item).Stage = 10; World.NewItems.TryAdd(newitem2.m_Serial, newitem2); player.client.SendPacket(new AddItemToInventory2(newitem2).Compile()); base.Use(player); } }