Author Topic: Help with Chatbot  (Read 1353 times)

Ok, so this is definitely a problem with something you are doing. I used your script with Notepad++ and it worked perfectly, same filepaths and all

When I update it, yes. Like when I add a new case to it, EXACTLY as the other ones, and update it. Will try setModPaths(getModPaths());

When I update it, yes. Like when I add a new case to it, EXACTLY as the other ones, and update it. Will try setModPaths(getModPaths());
I updated kal just fine, not sure what could be causing your problem.

Whaddafudge. My PC did a bluescreen D=
Well for some unknown reason all works fine now. WTF. Maybe a messed up cache file?

The problem is that you're updating it in a .zip file, and then executing it without first using setmodpaths, discoverfile, or restarting the game.

When you're working on an add-on, use a regular folder, not a zip. It will still work.

Hmm. Yea that's how I do it... what is is discoverfile and how2use it?

discoverFile(filename);

For zips, you just discover the zip file itself

discoverFile("add-ons/Addon_Name.zip");

But I seriously recommend just using a normal folder, so you don't have to use this.

So when I use a unzipped folder, do I still do exec("add-ons/Client_KalBot/Client.cs"); ?



New problem: I want that the bot can copy someone's chat, but it doesn't work! How do I set a variable??
Can someone with more knowledge fix it?

New problem: I want that the bot can copy someone's chat, but it doesn't work! How do I set a variable??
Can someone with more knowledge fix it?
you have to have some way to set %copyname, adding it as a parameter won't do anything in this case because that parameter will never be used.

also don't do case %msg:, just have an if statement before the switch or something.

you have to have some way to set %copyname, adding it as a parameter won't do anything in this case because that parameter will never be used.
So what do I do instead?

also don't do case %msg:, just have an if statement before the switch or something.
Um... What... Where?

Fixed. Had to define $CopyName = ""; at the top... lol