Blockland Forums > Help
ChatBot help
Headcrab Zombie:
--- Quote from: jes00 on January 09, 2012, 12:06:49 PM ----snip-
--- End quote ---
Tell him what you fixed, instead of simply fixing it for him
Anyways, %msg is undefined, change the second %fmsg in the function argument list and parent call to %msg
Also, learn proper indentation, it will make reading your code a lot easier
Optionally, the two ifs can also be combined into one:
--- Code: ---if (%msg $= "Rofl" && %name $= "xXGravity DogXx")
{
commandToServer('messageSent',"Don't roll on the floor, it's not healthy.");
}
--- End code ---
Also, the usual disclaimer about chatbots: Test them on your own server, or the server of someone who you know doesn't mind, then once you've gotten the practice, turn them off; they're annoying and many people will ban you for using them
MasterChief55:
well thats all fine and dandy, but i cant seem to put it on to the actual game idk if its someting with V20 of blockland or what
jes00:
--- Quote from: MasterChief55 on January 09, 2012, 04:39:02 PM ---well thats all fine and dandy, but i cant seem to put it on to the actual game idk if its someting with V20 of blockland or what
--- End quote ---
1. Make sure it is packaged correctly.
2. Make sure the folder is in My Documents/Blockland/Add-Ons(or for Mac /Users/yourUsername/Documents/Blockland/Add-Ons).
MasterChief55:
does it have to be zipped?
it is supposed to be Client_ correct?
MasterChief55:
never mind, it works now, thanks jes! but one more thing id like to know, how do you add multiple phrases?