当前位置: 首页>>代码示例>>C#>>正文


C# Creature.GiveItem方法代码示例

本文整理汇总了C#中Creature.GiveItem方法的典型用法代码示例。如果您正苦于以下问题:C# Creature.GiveItem方法的具体用法?C# Creature.GiveItem怎么用?C# Creature.GiveItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Creature的用法示例。


在下文中一共展示了Creature.GiveItem方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnReceive

	public override void OnReceive(Creature creature)
	{
		creature.GiveItem(ItemEntity.CreatePattern(60600, 10120, 30)); // Apprentice Sewing Pattern - Light Leather Mail (M)
		creature.GiveItem(60425, 10); // Fine Leather (Part-Time Job)
		creature.GiveItem(60412, 10); // Common Silk (Part-Time Job)
		creature.GiveItem(60428, 10); // Common Leather Strap (Part-Time Job)
		creature.GiveItem(60417, 2);  // Fine Finishing Thread (Part-Time Job)
		creature.GiveItem(60404, 2);  // Braid (Part-Time Job)
		creature.GiveItem(60425, 10); // Fine Leather (Part-Time Job)
		creature.GiveItem(60412, 10); // Common Silk (Part-Time Job)
		creature.GiveItem(60428, 10); // Common Leather Strap (Part-Time Job)
	}
开发者ID:aura-project,项目名称:aura,代码行数:12,代码来源:general_malcolm.cs

示例2: OnReceive

	public override void OnReceive(Creature creature)
	{
		// Thick Thread Ball (Part-Time Job)
		creature.GiveItem(60406, 5);
		creature.GiveItem(60406, 5);
		creature.GiveItem(60406, 5);

		// Thin Thread Ball (Part-Time Job)
		creature.GiveItem(60407, 5);
		creature.GiveItem(60407, 5);
		creature.GiveItem(60407, 5);
	}
开发者ID:aura-project,项目名称:aura,代码行数:12,代码来源:general_walter.cs

示例3: OnReceive

	public override void OnReceive(Creature creature)
	{
		// Give player an extra bread to deliver
		// in addition to the one given by the first Deliver objective.
		creature.GiveItem(70027);
	}
开发者ID:aura-project,项目名称:aura,代码行数:6,代码来源:grocery_glenis.cs

示例4: OnLeftEarly

	public override void OnLeftEarly(Dungeon dungeon, Creature creature)
	{
		// Give pass again if dungeon is being left before the spider is killed
		if (creature.Quests.IsActive(202004, "kill_spider"))
			creature.GiveItem(63181); // Malcolm's Pass
	}
开发者ID:tkiapril,项目名称:aura,代码行数:6,代码来源:tircho_alby_dungeon_tutorial_malcolm.cs

示例5: PlayerLoggedIn

	public void PlayerLoggedIn(Creature creature)
	{
		if (creature.Keywords.Has("g1_31"))
		{
			Cutscene.Play("G1_28_a_Morrighan", creature, cutscene =>
			{
				creature.Keywords.Remove("g1_31");
				creature.Keywords.Give("g1_32");
				creature.Keywords.Remove("g1_goddess_morrighan2");
				creature.Keywords.Give("g1_request_from_goddess");

				creature.GiveItem(Pendant);
			});
		}
	}
开发者ID:aura-project,项目名称:aura,代码行数:15,代码来源:021_the_pendant_from_goddess.cs

示例6: OnLeftEarly

	public override void OnLeftEarly(Dungeon dungeon, Creature creature)
	{
		// Give pass again if lost
		if (!creature.Keywords.Has("Clear_Tutorial_Alby_Dungeon"))
			creature.GiveItem(63180); // Trefor's Pass
	}
开发者ID:aura-project,项目名称:aura,代码行数:6,代码来源:tircho_alby_dungeon_tutorial_ranald.cs


注:本文中的Creature.GiveItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。