• Like 3

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

   (0 reviews)

1 Screenshot

Hello and thank you for creating this.

 

I've gotten every step set up correctly and the script properly loaded on my server. The issue I'm having is whenever I chat to an NPC I get an error on the server that says the following:

GPT_NPCs.lua:73: attempt to call method 'IsPlayer' (a nil value)

 

I don't know much at all about coding and tried google searching a way to fix this but cannot figure out how to do so.

Do you have any input?


Link to comment
Share on other sites
20 hours ago, evilbobman said:

Hello and thank you for creating this.

 

I've gotten every step set up correctly and the script properly loaded on my server. The issue I'm having is whenever I chat to an NPC I get an error on the server that says the following:

GPT_NPCs.lua:73: attempt to call method 'IsPlayer' (a nil value)

 

I don't know much at all about coding and tried google searching a way to fix this but cannot figure out how to do so.

Do you have any input?

I believe the IsPlayer() method is in the AzerothCore only. My mistake, I did not believe that would be the case. A new fix is available if you download it again.


Link to comment
Share on other sites

Got a new error now. Says " Scripts/GPT_NPCs.lua:115: bad argument #3 to 'RegisterEvent' (number expected, got no value)" So close to getting this working :(


Link to comment
Share on other sites
2 hours ago, evilbobman said:

Got a new error now. Says " Scripts/GPT_NPCs.lua:115: bad argument #3 to 'RegisterEvent' (number expected, got no value)" So close to getting this working :(

This one has me stumped. Can I ask what core you are using?

 

edit: I maybe made a fix? Try it again.


Link to comment
Share on other sites

SingleCore rev. 2974e284a9bf+ 2017-05-07 16:27:22 +0200 (npcbots branch) (Win64, Release, Static) (worldserver-daemon)

 

I got the file correctly working now but it's looping waiting for a response. I've (from what I understand) correctly set up openai. The server is looping waiting for a response without receiving one, creating an endless loop.

Getting this error in my server console: python3: can't open file 'C:\\Users\\evilbobman\\Desktop\\Anything': [Errno 2] No such file or directory


Link to comment
Share on other sites
11 hours ago, evilbobman said:

SingleCore rev. 2974e284a9bf+ 2017-05-07 16:27:22 +0200 (npcbots branch) (Win64, Release, Static) (worldserver-daemon)

 

I got the file correctly working now but it's looping waiting for a response. I've (from what I understand) correctly set up openai. The server is looping waiting for a response without receiving one, creating an endless loop.

Getting this error in my server console: python3: can't open file 'C:\\Users\\evilbobman\\Desktop\\Anything': [Errno 2] No such file or directory

I think now we are at an issue with some settings in the files. Can you reach me on discord or pm more?


Link to comment
Share on other sites




User Feedback