本文整理匯總了C#中Server.Items.Bag.PlaceItemIn方法的典型用法代碼示例。如果您正苦於以下問題:C# Bag.PlaceItemIn方法的具體用法?C# Bag.PlaceItemIn怎麽用?C# Bag.PlaceItemIn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Items.Bag
的用法示例。
在下文中一共展示了Bag.PlaceItemIn方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ChristmasDonationBox
public ChristmasDonationBox()
{
Weight = 1.0;
//Hue = 38;
Item item = null;
Name = "christmas gift box";
PlaceItemIn( 35, 30, (item = new RedStocking()) );
PlaceItemIn( 48, 30, (item = new RedStocking()) );
PlaceItemIn( 35, 75, (item = new FreshGinger()) );
PlaceItemIn( 46, 63, (item = new FreshGinger()) );
PlaceItemIn( 80, 26, (item = new GingerbreadCookie()) );
PlaceItemIn( 80, 36, (item = new GingerbreadCookie()) );
PlaceItemIn( 80, 46, (item = new GingerbreadCookie()) );
PlaceItemIn( 80, 56, (item = new GingerbreadCookie()) );
PlaceItemIn( 80, 66, (item = new GingerbreadCookie()) );
PlaceItemIn( 80, 76, (item = new GingerbreadCookie()) );
PlaceItemIn( 146, 31, (item = new RedCandyCane()) );
PlaceItemIn( 146, 41, (item = new RedCandyCane()) );
PlaceItemIn( 146, 51, (item = new RedCandyCane()) );
PlaceItemIn( 146, 61, (item = new RedCandyCane()) );
BaseContainer cont;
PlaceItemIn( 123, 55, (cont = new Bag()) );
cont.Hue = 38;
cont.PlaceItemIn( 131, 75, (item = new ChristmasHouseAddonDeed()) );
cont.PlaceItemIn( 131, 85, (item = new ChristmasCastleAddonDeed()) );
}
示例2: SurvivalPack
public SurvivalPack()
{
Weight = 1.0;
Hue = 1871;
Item item = null;
Name = "a survival pack";
PlaceItemIn( 60, 131, (item = new SkillBall( 10 )) );
item.Hue = 1871;
item.Name = "a +10 SkillBall - Works on skills 90.0 and below";
PlaceItemIn( 110, 103, (item = new SkillBall( 50 )) );
item.Hue = 1871;
item.Name = "a +50 SkillBall - Works on skills 50.0 and below";
PlaceItemIn( 46, 65, (item = new SkillBall( 25 )) );
item.Hue = 1871;
item.Name = "a +25 SkillBall - Works on skills 75.0 and below";
BaseContainer cont;
PlaceItemIn( 131, 121, (cont = new Bag()) );
cont.Hue = 2413;
cont.PlaceItemIn( 29, 39, new SulfurousAsh(5000) );
cont.PlaceItemIn( 29, 64, new Nightshade(5000) );
cont.PlaceItemIn( 29, 89, new SpidersSilk(5000) );
cont.PlaceItemIn( 60, 64, new Garlic(5000) );
cont.PlaceItemIn( 60, 89, new Ginseng(5000) );
cont.PlaceItemIn( 88, 39, new Bloodmoss(5000) );
cont.PlaceItemIn( 88, 64, new BlackPearl(5000) );
cont.PlaceItemIn( 88, 89, new MandrakeRoot(5000) );
}
示例3: DungeonDonationBox
public DungeonDonationBox()
{
Weight = 1.0;
Hue = 1109;
Item item = null;
Name = "dungeon decoration chest";
PlaceItemIn( 16, 51, (item = new BoneThrone()) );
PlaceItemIn( 16, 51, (item = new BoneThrone()) );
PlaceItemIn( 58, 70, (item = new InscribedTombStone()) );
PlaceItemIn( 58, 70, (item = new InscribedTombStone()) );
PlaceItemIn( 58, 70, (item = new IronMaiden()) );
PlaceItemIn( 44, 57, (new BoneTable()) );
PlaceItemIn( 44, 57, (new BoneTable()) );
BaseContainer cont;
PlaceItemIn( 131, 121, (cont = new Bag()) );
cont.Hue = 2413;
cont.PlaceItemIn( 131, 75, (item = new OpenCoffinAddonDeed()) );
cont.PlaceItemIn( 131, 75, (item = new OpenCoffinAddonDeed()) );
cont.PlaceItemIn( 140, 51, (item = new StoneCoffinAddonDeed()) );
cont.PlaceItemIn( 140, 51, (item = new StoneCoffinAddonDeed()) );
cont.PlaceItemIn( 58, 83, (item = new ShadowAltarAddonDeed()) );
cont.PlaceItemIn( 58, 83, (item = new ShadowAltarAddonDeed()) );
cont.PlaceItemIn( 56, 50, (item = new BoneCouchAddonDeed()) );
cont.PlaceItemIn( 56, 50, (item = new BoneCouchAddonDeed()) );
}
示例4: GardenDonationBox
public GardenDonationBox()
{
Weight = 1.0;
Hue = 1154;
Item item = null;
Name = "garden decoration chest";
PlaceItemIn( 16, 51, (item = new FountainOfLife()) );
PlaceItemIn( 58, 70, (item = new Beehive()) );
PlaceItemIn( 62, 44, (item = new PloughAddonDeed()) );
PlaceItemIn( 44, 57, (new RareVase()) );
PlaceItemIn( 89, 53, (new AncientFruitBowl()) );
PlaceItemIn( 90, 81, (new LargeShell()) );
PlaceItemIn( 116, 33, (new WhisperingRoseDeed()) );
PlaceItemIn( 116, 64, (new WhisperingRoseDeed()) );
BaseContainer cont;
PlaceItemIn( 131, 121, (cont = new Bag()) );
cont.Hue = 2413;
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 131, 75, (item = new FlaxFlower()) );
cont.PlaceItemIn( 140, 51, (item = new FlaxBundle()) );
cont.PlaceItemIn( 140, 51, (item = new FlaxBundle()) );
cont.PlaceItemIn( 140, 51, (item = new FlaxBundle()) );
cont.PlaceItemIn( 140, 51, (item = new FlaxBundle()) );
cont.PlaceItemIn( 58, 83, (item = new PottedTree1()) );
cont.PlaceItemIn( 58, 83, (item = new PottedTree1()) );
cont.PlaceItemIn( 73, 83, (item = new PottedPlant()) );
cont.PlaceItemIn( 73, 83, (item = new PottedPlant()) );
cont.PlaceItemIn( 29, 68, (item = new PottedTree()) );
cont.PlaceItemIn( 29, 68, (item = new PottedTree()) );
cont.PlaceItemIn( 73, 83, (item = new PottedPlant1()) );
cont.PlaceItemIn( 73, 83, (item = new PottedPlant1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 47, 53, (item = new LillyPad1()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
cont.PlaceItemIn( 29, 34, (item = new RoseVine()) );
}