示例#1
0
        public override void OnNpcSpawn(IMap map, MapNpcPreset npc, MapNpc spawnedNpc, PacketHitList hitlist)
        {
            base.OnNpcSpawn(map, npc, spawnedNpc, hitlist);

            if (Data.Started)
            {
                if (!map.IsZoneOrObjectSandboxed())
                {
                    spawnedNpc.Unrecruitable = true;
                    spawnedNpc.Shiny         = Server.Enums.Coloration.Shiny;

                    PacketBuilder.AppendNpcSprite(map, hitlist, spawnedNpc.MapSlot);
                }
            }
        }