本文整理汇总了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)
}
示例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);
}
示例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);
}
示例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
}
示例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);
});
}
}
示例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
}