Version 1.0
103 downloads
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.
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.