cmileto
Member
Im trying to drop a letter and a weapon into this bag depending on what race the character is. This is in charactercreation.cs
When i make a new toon they get the bag with only skillball, gold, and map... no weapon or letter. What am i doing wrong? Prob noob mistake.
When i make a new toon they get the bag with only skillball, gold, and map... no weapon or letter. What am i doing wrong? Prob noob mistake.
Code:
Bag bag = new Bag();
bag.Hue = Utility.RandomList(102, 2432, 2450);
bag.Name = string.Format("{0}'s sack", m.Name);
PlaceItemIn(bag, 16, 51, new SkillBall(50));
PlaceItemIn(bag, 28, 51, new Gold(1000));
PlaceItemIn(bag, 40, 51, new TreasureMap(1, Map.Trammel));
{
if ((m.Race == Race.Elf) && (m.Race == Race.Gargoyle)) // is human
{
PlaceItemIn(bag, 52, 51, new Dagger());
PlaceItemIn(bag, 64, 51, new LetterofApprenticeship());
}
if ((m.Race == Race.Elf) && (m.Race == Race.Human)) // is gargoyle
{
PlaceItemIn(bag, 64, 51, new GargishDagger());
PlaceItemIn(bag, 64, 51, new LetterofGargoyleApprenticeship());
}
if ((m.Race == Race.Gargoyle) && (m.Race == Race.Human)) // is elf
{
PlaceItemIn(bag, 64, 51, new Bow());
PlaceItemIn(bag, 64, 51, new LetterofApprenticeship());
}
}
PackItem(bag);