Ejemplo n.º 1
0
        public static void ItemListCommand(string value, WorldClient client)
        {
            ItemTypeEnum itemType = (ItemTypeEnum)int.Parse(value);

            var itemIds = Array.ConvertAll(ItemRecord.GetItems(itemType), x => x.Id);

            client.Character.Reply("Items for type: " + itemType + Environment.NewLine + itemIds.ToCSV());
        }
Ejemplo n.º 2
0
        public static void JoyCommand(string value, WorldClient client)
        {
            List <ushort> spells = new List <ushort>();

            var items = ItemRecord.GetItems(ItemTypeEnum.FÉE_D_ARTIFICE);

            foreach (ItemRecord item in items)
            {
                SpellRecord spell = SpellRecord.Spells.Find(x => x.Name == item.Name);

                if (spell != null)
                {
                    spells.Add(spell.Id);
                }
            }

            foreach (ushort spell in spells)
            {
                Thread.Sleep(1000);
                client.Character.SpellAnim(spell);
            }
        }