1
Mods Pack / [MOD] Open AI Npc System
« Último mensaje por U3Games en 01 de Febrero de 2025, 02:21:55 am »Information:
[EN] This mod allows NPCs to interact with players using responses generated by OpenAI when enabled.
[ES] Este mod permite que cuando esté habilitado, los NPC interactuarán con los jugadores utilizando respuestas generadas por OpenAI.
Config:
Upcoming Features:
• Green ------- Feature that has already been tested and added.
• Orange ----- Feature in development or partially done.
• Red --------- Feature is not yet available.
[EN] This mod allows NPCs to interact with players using responses generated by OpenAI when enabled.
[ES] Este mod permite que cuando esté habilitado, los NPC interactuarán con los jugadores utilizando respuestas generadas por OpenAI.
Config:
# ---------------------------------------------------------------------------
# Open AI Npc System Mod (By L2JDevs Mods Engine)
# ---------------------------------------------------------------------------
# More information -> http://www.l2jdevs.org
# Telegram group -> https://t.me/l2jdevs
# Sign up and join our community!
# ---------------------------------------------------------------------------
# Enable or disable the Open AI NPC System.
# When enabled, NPCs will interact with players using OpenAI-generated responses.
# Default: False
OpenAINpcSystemEnabled = False
# ---------------------------------------------------------------------------
# API Configuration
# ---------------------------------------------------------------------------
# Specify your OpenAI API Key.
# This key is required to communicate with OpenAI's API and generate NPC responses.
# GUIDE:
# 1.- Sign up at https://platform.openai.com/signup/
# 2.- Go to https://platform.openai.com/account/api-keys
# 3.- Generate a new API key and copy it.
# 4.- Paste the key below inside the double quotes.
# Default: ""
OpenAINpcApiKey = ""
# ---------------------------------------------------------------------------
# NPC Interaction Settings
# ---------------------------------------------------------------------------
# The maximum distance (in game units) at which players can interact with NPCs.
# If a player is farther than this range, the NPC will not respond.
# Default: 75
MinRangeFromNpc = 75
# Determines whether NPCs should respond aggressively when provoked.
# If enabled, NPCs may reply in a hostile or defensive manner based on the player's message.
# Default: False
AggressiveResponsesEnabled = False
# NPC response style.
# Defines the general behavior of NPCs when responding to players.
# Possible values:
# - "Neutral" -> The NPC responds normally and helpfully.
# - "Friendly" -> NPCs respond in a cheerful and welcoming manner.
# - "Sarcastic" -> NPCs have a humorous and sarcastic tone.
# - "Aggressive" -> NPCs are more confrontational (requires AggressiveResponsesEnabled = True).
# Default: "Neutral"
NpcResponseStyle = "Neutral"
# Delay (in milliseconds) before an NPC responds to a player's message.
# Higher values create a more natural response time.
# Default: 1000 (1 second)
NpcResponseDelay = 1000
# ---------------------------------------------------------------------------
# OpenAI Model Configuration
# ---------------------------------------------------------------------------
# The AI model used to generate NPC responses.
# Available models: "gpt-3.5-turbo", "gpt-4", "gpt-4-turbo"
# Newer models are more accurate but may cost more in API usage.
# Default: "gpt-4"
OpenAIModel = "gpt-4"
# Maximum tokens per response.
# Controls the length of NPC replies. A higher value results in longer responses.
# Recommended range: 50 - 500.
# Default: 200
MaxTokens = 200
# AI Temperature setting (0.0 - 1.0).
# A lower value makes responses more predictable, while a higher value adds more randomness.
# Recommended range: 0.2 - 0.8.
# Default: 0.7
Temperature = 0.7
# ---------------------------------------------------------------------------
# Logging and Debugging
# ---------------------------------------------------------------------------
# Enables detailed logging of AI interactions.
# If set to True, all AI responses and errors will be logged for debugging purposes.
# Default: False
DebugMode = False
# Allows NPCs to log their interactions in the game chat.
# If enabled, NPCs will display debugging messages with their responses.
# Default: False
ShowDebugInGame = False
Upcoming Features:
• Green ------- Feature that has already been tested and added.
• Orange ----- Feature in development or partially done.
• Red --------- Feature is not yet available.