LLM-Driven NPCs: Cross-Platform Dialogue System for Games and Social Platforms