Quote from: Nihongo^ on Apr 26, 2026, 03:32 PMCan it understand Java? I've heard that some servers in VCMP are scripted using Java, but you mentioned it only has information from the wiki, which mainly covers Squirrel scripting, not Java.nope for now its configured to wiki if theres any java wiki i can do that too
function onPlayerJoin( player )
{
local reply = getChatGPTResponse("Welcome this player", player.ID, "Bad");
MessagePlayer(reply.tostring(), player);
}
function onPlayerChat( player, text )
{
print( player.Name + ": " + text );
local tone = "You are Chat GPT-3.5 Turbo. Limit your responses to 3 lines.";
local reply = getChatGPTResponse(text, player.ID, tone);
MessagePlayer("[#FF3636]"+reply.tostring(), player);
return 1;
}function onPlayerCommand( player, cmd, text )
{
if(cmd == "chatgpt")
{
local tone = "You are Chat GPT-3.5 Turbo. Limit your responses to 3 lines.";
local reply = getChatGPTResponse(text, player.ID, tone);
MessagePlayer("[#FF3636]"+reply.tostring(), player);
}
}


ai.cfg
api_key=your_api_key_here
getChatGPTResponse(text, player.ID, tone)
getChatGPTResponse(
"How can I earn money in this server?",
player.ID,
"friendly and helpful"
);