public static void CreateVarietyDealer(int x, int y) { var p = new Point3D(x, y, -1); VarietyDealer dealer; if (FindObject(Map.Malas, p, 10, out dealer)) { dealer.Delete(); } dealer = new VarietyDealer { Name = "Nix", Title = "the Variety Dealer", Body = 400, Female = false, Hue = 0x8835 }; WeakEntityCollection.Add("doom", dealer); /* Begin outfit */ var ic = dealer.Items.Count; while (--ic >= 0) { if (ic >= dealer.Items.Count) { continue; } var item = dealer.Items[ic]; if (item.Layer != Layer.ShopBuy && item.Layer != Layer.ShopResale && item.Layer != Layer.ShopSell) { item.Delete(); } } dealer.HairItemID = 0x2049; // Pig Tails dealer.HairHue = 0x482; dealer.FacialHairItemID = 0x203E; dealer.FacialHairHue = 0x482; dealer.AddItem(new FloppyHat(1)); dealer.AddItem(new Robe(1)); dealer.AddItem(new LanternOfSouls()); dealer.AddItem(new Sandals(0x482)); /* End outfit */ dealer.MoveToWorld(p, Map.Malas); dealer.Home = p; dealer.RangeHome = 2; }
public static void CreateVarietyDealer(int x, int y) { var loc = new Point3D(x, y, -1); var map = Map.Malas; if (!MythikStaticValues.UpdateLoc(ref loc, ref map)) { return; } VarietyDealer dealer = new VarietyDealer(); /* Begin outfit */ dealer.Name = "Nix"; dealer.Title = "the Variety Dealer"; dealer.Body = 400; dealer.Female = false; dealer.Hue = 0x8835; List <Item> items = new List <Item>(dealer.Items); for (int i = 0; i < items.Count; ++i) { Item item = items[i]; if (item.Layer != Layer.ShopBuy && item.Layer != Layer.ShopResale && item.Layer != Layer.ShopSell) { item.Delete(); } } dealer.HairItemID = 0x2049; // Pig Tails dealer.HairHue = 0x482; dealer.FacialHairItemID = 0x203E; dealer.FacialHairHue = 0x482; dealer.AddItem(new FloppyHat(1)); dealer.AddItem(new Robe(1)); dealer.AddItem(new LanternOfSouls()); dealer.AddItem(new Sandals(0x482)); /* End outfit */ dealer.MoveToWorld(loc, map); dealer.Home = dealer.Location; dealer.RangeHome = 2; }
public static void CreateVarietyDealer(int x, int y) { VarietyDealer dealer = new VarietyDealer(); /* Begin outfit */ dealer.Name = "Nix"; dealer.Title = "the Variety Dealer"; dealer.Body = 400; dealer.Female = false; dealer.Hue = 0x8835; ArrayList items = new ArrayList(dealer.Items); for (int i = 0; i < items.Count; ++i) { Item item = (Item)items[i]; if (item.Layer != Layer.ShopBuy && item.Layer != Layer.ShopResale && item.Layer != Layer.ShopSell) { item.Delete(); } } dealer.HairItemID = 0x2049; // Pig Tails dealer.HairHue = 0x482; dealer.FacialHairItemID = 0x203E; dealer.FacialHairHue = 0x482; dealer.AddItem(new FloppyHat(1)); dealer.AddItem(new Robe(1)); dealer.AddItem(new LanternOfSouls()); dealer.AddItem(new Sandals(0x482)); /* End outfit */ dealer.MoveToWorld(new Point3D(x, y, -1), Map.Malas); dealer.Home = dealer.Location; dealer.RangeHome = 2; }
public static void CreateVarietyDealer(int x, int y) { var dealer = new VarietyDealer { Name = "Nix", Title = "the Variety Dealer", Body = 400, Female = false, Hue = 0x8835 }; /* Begin outfit */ var items = new List <Item>(dealer.Items); foreach (Item item in items) { if (item.Layer != Layer.ShopBuy && item.Layer != Layer.ShopResale && item.Layer != Layer.ShopSell) { item.Delete(); } } dealer.HairItemID = 0x2049; // Pig Tails dealer.HairHue = 0x482; dealer.FacialHairItemID = 0x203E; dealer.FacialHairHue = 0x482; dealer.AddItem(new FloppyHat(1)); dealer.AddItem(new Robe(1)); dealer.AddItem(new LanternOfSouls()); dealer.AddItem(new Sandals(0x482)); /* End outfit */ dealer.MoveToWorld(new Point3D(x, y, -1), Map.Malas); dealer.Home = dealer.Location; dealer.RangeHome = 2; }
public static void CreateVarietyDealer(int x, int y) { var dealer = new VarietyDealer { Name = "Nix", Title = "the Variety Dealer", Body = 400, Female = false, Hue = 0x8835, HairItemID = 0x2049, // Pig Tails HairHue = 0x482, FacialHairItemID = 0x203E, FacialHairHue = 0x482 }; var items = new List <Item>(dealer.Items); for (var i = 0; i < items.Count; ++i) { var item = items[i]; if (item.Layer is not Layer.ShopBuy and not Layer.ShopResale and not Layer.ShopSell) { item.Delete(); } } dealer.AddItem(new FloppyHat(1)); dealer.AddItem(new Robe(1)); dealer.AddItem(new LanternOfSouls()); dealer.AddItem(new Sandals(0x482)); /* End outfit */ dealer.MoveToWorld(new Point3D(x, y, -1), Map.Malas); dealer.Home = dealer.Location; dealer.RangeHome = 2; }