fix: Fixes buying animals in UOR (#719)
This commit is contained in:
parent
b4566fe154
commit
0bcf7a8d01
7 changed files with 25 additions and 23 deletions
|
|
@ -146,7 +146,7 @@ namespace Server.Items
|
|||
/* LakeofFire */ "Lake of Fire",
|
||||
/* Lakeshire */ "Lakeshire",
|
||||
/* PassofKarnaugh */ "Pass of Karnaugh",
|
||||
/* TheEtherealFortress */ "The Etheral Fortress",
|
||||
/* TheEtherealFortress */ "The Ethereal Fortress",
|
||||
/* TwinOaksTavern */ "Twin Oaks Tavern",
|
||||
/* ChaosShrine */ "Chaos Shrine",
|
||||
/* ShrineofHumility */ "Shrine of Humility",
|
||||
|
|
|
|||
|
|
@ -865,6 +865,8 @@ namespace Server.Mobiles
|
|||
var list = new List<BuyItemState>(buyInfo.Length);
|
||||
var cont = BuyPack;
|
||||
|
||||
// If OPL is disabled and the item being purchased has the wrong name, then you must specify the name manually.
|
||||
// Check SBAnimalTrainer for an example.
|
||||
var opls = ObjectPropertyList.Enabled ? new List<ObjectPropertyList>(buyInfo.Length) : null;
|
||||
|
||||
for (var idx = 0; idx < buyInfo.Length; idx++)
|
||||
|
|
|
|||
|
|
@ -12,21 +12,21 @@ namespace Server.Mobiles
|
|||
{
|
||||
public InternalBuyInfo()
|
||||
{
|
||||
Add(new AnimalBuyInfo(1, typeof(Cat), 132, 10, 201, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Dog), 170, 10, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Horse), 550, 10, 204, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackHorse), 631, 10, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackLlama), 565, 10, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Rabbit), 106, 10, 205, 0));
|
||||
Add(new AnimalBuyInfo(1, "a cat", typeof(Cat), 132, 10, 201, 0));
|
||||
Add(new AnimalBuyInfo(1, "a dog", typeof(Dog), 170, 10, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, "a horse", typeof(Horse), 550, 10, 204, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack horse", typeof(PackHorse), 631, 10, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack llama", typeof(PackLlama), 565, 10, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, "a rabbit", typeof(Rabbit), 106, 10, 205, 0));
|
||||
|
||||
if (!Core.AOS)
|
||||
{
|
||||
Add(new AnimalBuyInfo(1, typeof(Eagle), 402, 10, 5, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(BrownBear), 855, 10, 167, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(GrizzlyBear), 1767, 10, 212, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Panther), 1271, 10, 214, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(TimberWolf), 768, 10, 225, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Rat), 107, 10, 238, 0));
|
||||
Add(new AnimalBuyInfo(1, "an eagle", typeof(Eagle), 402, 10, 5, 0));
|
||||
Add(new AnimalBuyInfo(1, "a brown bear", typeof(BrownBear), 855, 10, 167, 0));
|
||||
Add(new AnimalBuyInfo(1, "a grizzly bear", typeof(GrizzlyBear), 1767, 10, 212, 0));
|
||||
Add(new AnimalBuyInfo(1, "a panther", typeof(Panther), 1271, 10, 214, 0));
|
||||
Add(new AnimalBuyInfo(1, "a timber wolf", typeof(TimberWolf), 768, 10, 225, 0));
|
||||
Add(new AnimalBuyInfo(1, "a rat", typeof(Rat), 107, 10, 238, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public InternalBuyInfo()
|
||||
{
|
||||
Add(new AnimalBuyInfo(1, typeof(PackHorse), 631, 10, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack horse", typeof(PackHorse), 631, 10, 291, 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
public InternalBuyInfo()
|
||||
{
|
||||
Add(new AnimalBuyInfo(1, typeof(Cat), 138, 20, 201, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Dog), 181, 20, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackLlama), 491, 20, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackHorse), 606, 20, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, "a cat", typeof(Cat), 138, 20, 201, 0));
|
||||
Add(new AnimalBuyInfo(1, "a dog", typeof(Dog), 181, 20, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack llama", typeof(PackLlama), 491, 20, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack horse", typeof(PackHorse), 606, 20, 291, 0));
|
||||
Add(new GenericBuyInfo(typeof(Bandage), 5, 20, 0xE21, 0));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ namespace Server.Mobiles
|
|||
public InternalBuyInfo()
|
||||
{
|
||||
Add(new GenericBuyInfo(typeof(Bandage), 6, 20, 0xE21, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackHorse), 616, 10, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(PackLlama), 523, 10, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Dog), 158, 10, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, typeof(Cat), 131, 10, 201, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack horse", typeof(PackHorse), 616, 10, 291, 0));
|
||||
Add(new AnimalBuyInfo(1, "a pack llama", typeof(PackLlama), 523, 10, 292, 0));
|
||||
Add(new AnimalBuyInfo(1, "a dog", typeof(Dog), 158, 10, 217, 0));
|
||||
Add(new AnimalBuyInfo(1, "a cat", typeof(Cat), 131, 10, 201, 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue