• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • ff14bot.Enums.ItemRole is not complete

    Discussion in 'Community Developer Forum' started by Wheredidigo, May 21, 2015.

    1. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      Mastahg,

      Currently, this is what the ItemRole Enum has in it:

      Code:
      namespace ff14bot.Enums
      {
          public enum ItemRole
          {
              PhysicalWeapon = 1,
              MagicalWeapon = 2,
              Shield = 3,
              Armor = 4,
              Seed = 20,
              Soil = 21,
              Fertilizer = 22,
          }
      }
      
      The following code snippet and results of running it show that there are a lot more ItemRole's.

      Code:
      ClearLog();
      foreach (BagSlot slot in ff14bot.Managers.InventoryManager.FilledSlots.Where(x => x.BagId == InventoryBagId.Bag1 || x.BagId == InventoryBagId.Bag2 || x.BagId == InventoryBagId.Bag3 || x.BagId == InventoryBagId.Bag4))
      {
              Log("Name: {0} EquipmentCatagory: {1} ItemRole: {2}",slot.Name.PadRight(32,' '),slot.Item.EquipmentCatagory.ToString().PadRight(16,' '),slot.Item.ItemRole);
      }
      
      Code:
      Name: Ether                            EquipmentCatagory: Medicine         ItemRole: 9
      Name: Chanterelle Saute                EquipmentCatagory: Meal             ItemRole: 5
      Name: Hi-Potion                        EquipmentCatagory: Medicine         ItemRole: 8
      Name: Weak Silencing Potion            EquipmentCatagory: Medicine         ItemRole: 7
      Name: Antelope Steak                   EquipmentCatagory: Meal             ItemRole: 5
      Name: Potion of Strength               EquipmentCatagory: Medicine         ItemRole: 6
      Name: Salmon Meuniere                  EquipmentCatagory: Meal             ItemRole: 5
      Name: Jandelaine's Token               EquipmentCatagory: Miscellany       ItemRole: 16
      Name: Apple Juice                      EquipmentCatagory: Meal             ItemRole: 5
      Name: Aldgoat Steak                    EquipmentCatagory: Meal             ItemRole: 5
      Name: Sleeping Potion                  EquipmentCatagory: Medicine         ItemRole: 7
      Name: Hi-Potion of Strength            EquipmentCatagory: Medicine         ItemRole: 6
      Name: Fire Ward Potion                 EquipmentCatagory: Medicine         ItemRole: 6
      Name: Poisoning Potion                 EquipmentCatagory: Medicine         ItemRole: 7
      Name: Night Milk                       EquipmentCatagory: Ingredient       ItemRole: 5
      Name: Allagan Tin Piece                EquipmentCatagory: Miscellany       ItemRole: 16
      Name: Potion                           EquipmentCatagory: Medicine         ItemRole: 8
      Name: Raisins                          EquipmentCatagory: Meal             ItemRole: 5
      Name: Hi-Ether                         EquipmentCatagory: Medicine         ItemRole: 9
      Name: Jerked Beef                      EquipmentCatagory: Meal             ItemRole: 5
      Name: Mugwort Carp                     EquipmentCatagory: Meal             ItemRole: 5
      Name: Ice Ward Potion                  EquipmentCatagory: Medicine         ItemRole: 6
      Name: Echo Drops                       EquipmentCatagory: Medicine         ItemRole: 16
      Name: Spine Drops                      EquipmentCatagory: Medicine         ItemRole: 16
      Name: Fried Egg                        EquipmentCatagory: Meal             ItemRole: 5
      Name: Mega-Potion                      EquipmentCatagory: Medicine         ItemRole: 8
      Name: Raptor Stew                      EquipmentCatagory: Meal             ItemRole: 5
      Name: Potent Poisoning Potion          EquipmentCatagory: Medicine         ItemRole: 7
      Name: Potent Sleeping Potion           EquipmentCatagory: Medicine         ItemRole: 7
      Name: Elixir                           EquipmentCatagory: Medicine         ItemRole: 10
      Name: Weak Blinding Potion             EquipmentCatagory: Medicine         ItemRole: 7
      Name: Mega-Potion of Strength          EquipmentCatagory: Medicine         ItemRole: 6
      Name: Honey                            EquipmentCatagory: Ingredient       ItemRole: 12
      Name: Marmot Meat                      EquipmentCatagory: Ingredient       ItemRole: 12
      Name: Animal Skin                      EquipmentCatagory: Leather          ItemRole: 12
      Name: Honey                            EquipmentCatagory: Ingredient       ItemRole: 12
      Name: Allagan Bronze Piece             EquipmentCatagory: Miscellany       ItemRole: 16
      Name: Stained Chef's Apron             EquipmentCatagory: Body             ItemRole: Armor
      Name: Cotton Acton                     EquipmentCatagory: Body             ItemRole: Armor
      Name: Linen Robe                       EquipmentCatagory: Body             ItemRole: Armor
      Name: Aetherial Brass Knuckles         EquipmentCatagory: Pugilists_Arm    ItemRole: PhysicalWeapon
      Name: Doctore's Bill                   EquipmentCatagory: Marauders_Arm    ItemRole: PhysicalWeapon
      Name: Aetherial Brass Knuckles         EquipmentCatagory: Pugilists_Arm    ItemRole: PhysicalWeapon
      
      Is there any way you can fix that Enum?
       
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,345
      Likes Received:
      383
      Trophy Points:
      83
      Was hand constructed. If you figure out the missing values let me know.
       

    Share This Page