FeedIt
FeedIt is a minimalist hunter pet feeder addon.
Usage
FeedIt can be used simply by creating the following macro:/click FeedItButton
Features
- Take pet diets into account,
- Do not feed the pet if it is already happy or is currently eating,
- Do not give bonus food to the pet,
- Do not give food that can be used for cooking recipe to the pet, unless you hold down shift,
- Use some fuzzy logic to try to get rid of lower level and small piles of food in priority,
- There is neither options nor GUI,
- Do not embed nor require any library, tough it would fetch data from LibPeriodicTable-Consumable-3.1 if found. (If not found, it uses its own item sets).
Love the addon :)
The correct syntax for the NOT_AN_HUNTER descriptive text is:
You are not a Hunter. FeedIt is disabled.
Heh... Technically this means that the variable NOT_AN_HUNTER should be NOT_A_HUNTER. ;)
Message: Interface\AddOns\FeedIt\FeedIt.lua:182: table index is nil
Time: 12/03/10 16:02:21
Count: 1
Stack: Interface\AddOns\FeedIt\FeedIt.lua:182: in function <Interface\AddOns\FeedIt\FeedIt.lua:12>
Locals: Print = <function> defined @Interface\AddOns\FeedIt\FeedIt.lua:16
Feedback = <function> defined @Interface\AddOns\FeedIt\FeedIt.lua:20
NOT_AN_HUNTER = "You are not an hunter. FeedIt is disabled."
FEED_PET_UNKNOWN = "You do not know the Feed Pet spell. FeedIt is disabled."
DEAD_PET = "%s is dead."
PET_IS_HAPPY = "%s is already happy."
PET_IS_EATING = "%s is already eating."
NO_SUITABLE_FOOD = "Could not find suitable food for %s."
FEEDING_PET_WITH = "Feeding %s with %s."
TRADE_GOODS = "Trade Goods"
BREAD = "Bread"
CHEESE = "Cheese"
FISH = "Fish"
FRUIT = "Fruit"
FUNGUS = "Fungus"
MEAT = "Meat"
locale = "enUS"
feedPetSpell = "Feed Pet"
feedPetEffect = "Feed Pet"
foodSets =
Fungus =
}
conjured =
}
Bread =
}
Meat =
}
Fish =
}
}
sourceSets =
Fish =
}
Meat =
}
Fungus =
}
Bread =
}
Cheese =
}
Fruit =
}
}
blacklist =
6807 = true
}
PT3 =
ItemSearch = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:344
GetSetString = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:244
IsSetMulti = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:249
ItemInSet = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:280
AddData = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:304
embedversions =
}
IterateSet = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:264
sets =
}
GetSetTable = <function> defined @Interface\AddOns\ArkInventory\Externals\PeriodicTable\LibPeriodicTable-3.1.lua:239
}
(for generator) = <function> defined =[C]:-1
(for state) =
Fish =
}
Meat =
}
Fungus =
}
Bread =
}
Cheese =
}
Fruit =
}
}
(for control) = "Bread"
foodType = "Bread"
sets =
Consumable.Food.Edible.Bread.Combo.Conjured = "34062:7500,43518:13200,43523:15000"
Consumable.Food.Edible.Bread.Conjured = "1113:243,1114:552,1487:874,5349:61,8075:1392,8076:2148,22895:4320,22019:7500"
Consumable.Food.Edible.Bread.Basic = "19696:50,20857:61,4540:61,4541:243,4542:552,4544:874,16169:874,4601:1392,8950:2148,23160:2148,29394:7500,27855:4320,28486:4320,24072:243,30816:61,29449:7500,42432:13200,42428:13200,42433:13200,42778:15000,33449:13200,42431:15000,42430:13200,44609:13200,42434:15000,42429:15000,35950:15000"
Consumable.Food.Edible.Bread.Combo.Non-Conjured = "13724:2148,19301:4410,34780:7500"
}
curSet =
43523 = 15000
8075 = 1392
1487 = 874
22895 = 4320
5349 = 61
1113 = 243
34062 = 7500
22019 = 7500
1114 = 552
8076 = 2148
43518 = 13200
}
(for generator) = <function> defined =[C]:-1
(for state) =
Consumable.Food.Edible.Bread.Combo.Conjured = "34062:7500,43518:13200,43523:15000"
Consumable.Food.Edible.Bread.Conjured = "1113:243,1114:552,1487:874,5349:61,8075:1392,8076:2148,22895:4320,22019:7500"
Consumable.Food.Edible.Bread.Basic = "19696:50,20857:61,4540:61,4541:243,4542:552,4544:874,16169:874,4601:1392,8950:2148,23160:2148,29394:7500,27855:4320,28486:4320,24072:243,30816:61,29449:7500,42432:13200,42428:13200,42433:13200,42778:15000,33449:13200,42431:15000,42430:13200,44609:13200,42434:15000,42429:15000,35950:15000"
Consumable.Food.Edible.Bread.Combo.Non-Conjured = "13724:2148,19301:4410,34780:7500"
}
(for control) = "Consumable.Food.Edible.Bread.Conjured"
name = "Consumable.Food.Edible.Bread.Conjured"
setString = "1113:243,1114:552,1487:874,5349:61,8075:1392,8076:2
Thanks
Any consideration for allowing us to create our own food black/white lists?
FeedIt will ständig meinem Pet "RiesenEi" zu futtern geben wenn ich es im Inventar habe, obwohl ich genug Fleisch und Fisch habe. Weiss nicht wie das mit anderen Viechern is, aber meine Katze mag das nicht. :)
elseif locale == 'deDE' then
BREAD, CHEESE, FISH, FRUIT, FUNGUS, MEAT = 'Brot', 'Kaese', 'Fisch', 'Frucht', 'Pilz', 'Fleisch'
-- NOT_AN_HUNTER = 'Du bist kein Jaeger. FeedIt ist deaktiviert.'
-- FEED_PET_UNKNOWN = 'Du hast noch nicht gelernt dein Tier zu fuettern. FeedIt ist deaktivert.'
-- DEAD_PET = '%s ist tot.'
-- PET_IS_HAPPY = '%s braucht momentan kein Futter.'
-- PET_IS_EATING = '%s frisst doch schon.'
-- NO_SUITABLE_FOOD = 'Finde kein brauchbares Futter im Inventar für %s.'
You addon repeatedly gave « Food too low level for your pet » errors.
By changing Line 200 :
local requiredFoodLevel = UnitLevel('pet') - 30
to
local requiredFoodLevel = UnitLevel('pet') - 15
I do not encounter that error any longer, and the pet gains max satisfaction.