• Like 3

[LUA] ChatGPT NPCs [ENG/RU/ES] 1.0

   (0 reviews)

1 Screenshot

 

mcnetlogo_upload.thumb.png.75a8dfdb79ed881707a45470b1ebb6cc.png

Ember's ChatGPT NPCs

Allows players to have conversations with NPCs in World of Warcraft via in-game chat and communication. A player can simply walk up to any NPC, type a chat at it, and will receive results from OpenAI.

Current Compatibility
- Eluna TrinityCore 3.3.5
- Azerothcore Eluna Module 3.3.5

Requirements
- Python3
   - Pip Packages: `openai` via `pip install`
   - Easy Linux Command that installs the packages for you: `pip install openai`

Installation Instructions
- Clone this repository into your LUA scripts folder
- In GPT_NPCs.lua, edit the following configuration values:
- - `path_to_history = "lua_scripts/elunamod-GPT_NPCs/"`
  - Path to where conversation histories are stored. Should be the same as where these .lua and .py files are located.
- - `PATH_TO_OPENAI_EVENT = "lua_script/elunamod-GPT_NPCs/GPT_NPCs.py"`
  - Path to where the python file is stored.
- Create environment variable, "OPENAI_API_KEY", via your specific system instructions.
- - Linux users : `export OPENAI_API_KEY='your_api_key'`
  - Copy and paste your specific OpenAI API key here. You can receive one from the OpenAI API website.

Editing the Prompt
If you'd like to edit the initial AI prompt that is received, open the file `GPT_NPCS.lua` and investigate the variable `content` in the `OnPlayerChat` function.

Licensing
This specific module is covered by the MIT License rules. Distribution and modification is entirely allowed. Please refer to its documentation below for more information.

MIT License

Copyright (c) 2023 Ember-RP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

 

Русский перевод - RU Translation for our Russian friends.

Spoiler

Ember's ChatGPT NPCs

Позволяет игрокам взаимодействовать с неигровыми персонажами в World of Warcraft через внутриигровой чат. Игрок просто подходит к любому NPC, пишет ему в чат, и получает ответы от OpenAI.

В связи с убеждением правительства США в том, что эта технология представляет угрозу для граждан других стран, она недоступна в России. Пожалуйста, воспользуйтесь VPN. Война не касается вас, человека, который не совершал противоправных действий. Эта технология заслуживает доступа ко всему миру.

Текущая совместимость:

  • Eluna TrinityCore 3.3.5
  • Azerothcore Eluna Module 3.3.5

Требования:

  • Python3
    • Pip-пакеты: openai (установить с помощью pip install)
    • Простая команда для Linux, устанавливающая все необходимые пакеты: pip install openai

Инструкции по установке:

  • Склонируйте этот репозиторий в папку со скриптами LUA.
  • В файле GPT_NPCs.lua отредактируйте следующие значения конфигурации:
    • path_to_history = "lua_scripts/elunamod-GPT_NPCs/"
    • Путь к месту хранения истории разговоров. Должен совпадать с местоположением файлов .lua и .py.
    • PATH_TO_OPENAI_EVENT = "lua_script/elunamod-GPT_NPCs/GPT_NPCs.py"
    • Путь к файлу Python.
  • Создайте переменную среды "OPENAI_API_KEY", следуя инструкциям вашей операционной системы.
    • Пользователи Linux: export OPENAI_API_KEY='ваш_api_key'
    • Скопируйте и вставьте ваш уникальный ключ API OpenAI, который можно получить на веб-сайте OpenAI API.

Редактирование приглашения:
Если вы хотите изменить начальное приглашение ИИ, откройте файл GPT_NPCS.lua и посмотрите переменную content в функции OnPlayerChat.

Лицензирование:
Этот модуль подпадает под правила лицензии MIT. Разрешается свободное распространение и модификация. Для получения дополнительной информации обратитесь к документации ниже.

 

traducción al español a continuación - Spanish translation below. It's the third most popular language in the world where speakers do not also know English.

Spoiler

NPC de ChatGPT de Ember

Permite a los jugadores mantener conversaciones con NPCs en World of Warcraft a través del chat y la comunicación dentro del juego. Un jugador puede simplemente acercarse a cualquier NPC, escribir un mensaje en el chat y recibir resultados de OpenAI.

Compatibilidad actual:
- Eluna TrinityCore 3.3.5
- Módulo Azerothcore Eluna 3.3.5

Requisitos:
- Python3
   - Paquetes Pip: `openai` a través de `pip install`
   - Sencillo comando de Linux que instala los paquetes por ti: `pip install openai`

Instrucciones de instalación:
- Clona este repositorio en la carpeta de tus scripts LUA.
- En GPT_NPCs.lua, edita los siguientes valores de configuración:
  - `path_to_history = "lua_scripts/elunamod-GPT_NPCs/"`
    - Ruta hacia donde se almacenan los historiales de conversaciones. Debería ser la misma que la ubicación de estos archivos .lua y .py.
  - `PATH_TO_OPENAI_EVENT = "lua_script/elunamod-GPT_NPCs/GPT_NPCs.py"`
    - Ruta donde se almacena el archivo Python.
- Crea la variable de entorno "OPENAI_API_KEY" siguiendo las instrucciones específicas de tu sistema.
  - Usuarios de Linux: `export OPENAI_API_KEY='tu_clave_api'`
    - Copia y pega tu clave API específica de OpenAI aquí. Puedes obtener una en el sitio web de OpenAI API.

Edición del mensaje:
Si deseas editar el mensaje inicial que recibe la IA, abre el archivo `GPT_NPCS.lua` e investiga la variable `content` en la función `OnPlayerChat`.

Licencia:
Este módulo específico está cubierto por las reglas de la Licencia MIT. La distribución y modificación están completamente permitidas. Consulta la documentación a continuación para obtener más información.

Licencia MIT

Copyright (c) 2023 Ember-RP

Se concede el permiso de forma gratuita a cualquier persona que obtenga una copia
de este software y los archivos de documentación asociados (el "Software") para tratar
con el Software sin restricciones, incluyendo, entre otras, los derechos de
usar, copiar, modificar, fusionar, publicar, distribuir, sublicenciar y/o vender
copias del Software, y permitir a las personas a las que el Software se les haya
suministrado que lo hagan, sujeto a las siguientes condiciones:

El aviso de derechos de autor anterior y este aviso de permiso se incluirán en todas
las copias o partes sustanciales del Software.

EL SOFTWARE SE PROPORCIONA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O
IMPLÍCITA, INCLUYENDO PERO NO LIMITADO A LAS GARANTÍAS DE COMERCIABILIDAD,
IDONEIDAD PARA UN PROPÓSITO PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO LOS
AUTORES O TITULARES DE LOS DERECHOS DE AUTOR SERÁN RESPONSABLES DE NINGÚN RECLAMO, DAÑO U OTRO
RESPONSABILIDAD, YA SEA EN UNA ACCIÓN DE CONTRATO, AGRAVIO U OTRA MANERA, QUE SURJA DE,
FUERA DE O EN CONEXIÓN CON EL SOFTWARE O EL USO U OTROS TRATOS EN EL
SOFTWARE.

 





User Feedback