Blockland Forums > Help
ChatBot help
MasterChief55:
new problem, how do you make it so that everyone can talk to it?
jes00:
--- Quote from: MasterChief55 on January 11, 2012, 09:37:02 PM ---new problem, how do you make it so that everyone can talk to it?
--- End quote ---
Remove
--- Code: ---if(%name $= "xXGravity DogXx")
--- End code ---
and it's opening and closing brackets.
MasterChief55:
it no work
--- Code: ---package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
switch$(%msg)
{
--- End code ---
Slicksilver:
--- Quote from: MasterChief55 on January 11, 2012, 10:29:58 PM ---it no work
--- Code: ---package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
switch$(%msg)
{
--- End code ---
--- End quote ---
I'm not sure if you're just showing that much of the code, but besides the indentation of the switch and all the contained lines of code (between { and }) everything looks fine.
Slicksilver:
Noedit: what I meant by the first part of that was is that your whole code?