示例#1
0
        public override bool OnBeforeDeath()
        {
            Gold gold = new Gold(Utility.RandomMinMax(190, 230));

            gold.MoveToWorld(Location, Map);

            Backpack pack = Backpack as Backpack;

            if (pack != null)
            {
                pack.Movable = true;

                pack.AddLoot(LootPack.LootItem <FireHorn>(3.0));
                pack.AddLoot(LootPack.RandomLootItem(Loot.GrimmochJournalTypes, 33.3, 1));
                pack.AddLoot(LootPack.LootItem <Arrow>(40));

                pack.MoveToWorld(Location, Map);
            }

            Effects.SendLocationEffect(Location, Map, 0x376A, 10, 1);
            return(true);
        }