2761
Modification Help / Re: Underground Mining RP
« on: August 16, 2011, 09:15:49 PM »
Why even bother to post a topic if there's nothing in the OP? I would just wait until you at least have some info.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I'm pretty sure its a server-sided chat bot.while it is, that's not at all what he was asking for.
Go here if you wanna learn how to make a chat bot - forum.blockland.us/index.php?topic=143501.15
Your believability went out many posts ago. Give us more reason to believe you.aw man. i was about to post about how i was calling bullstuff about this.
Ok I fixed up. But now my chat only appears before my name when i want to talk. :(. And it shows up in red or white and only will display one word.oh forget! i'm dumb.
//Secton
//8448
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "testing testing 123")
{
if(%name $= "Secton")
{
commandToServer('messageSent',"Your testing is win, Secton!");
}
}
}
};
ActivatePackage(chatbot);fyi, i messed up the two arguments so that they were backwards. I'm not quite sure what that does in the longrun, but it's not good apparently.
Can you put this in code format plz? Sorry I just don't wanna mess my whole script up.read again.
Code: [Select]//Secton
//8448
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "testing testing 123")
{
if(%name $= "Secton")
{
commandToServer('messageSent',"Your testing is win, Secton!");
}
}
}
};
ActivatePackage(chatbot);
You should try writing code with the brackets on a seperate line, you can see them better and see if your missing something.try this.
The parent::clientCmdChatMessage line is just a function call, it ends in a semicolon and doesn't have brackets.
And lastly, %msg is undefinedCode: [Select]//Secton
//8448
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "testing testing 123")
{
if(%name $= "Secton")
{
commandToServer('messageSent',"Your testing is win, Secton!");
}
}
}
};
ActivatePackage(chatbot);
You have a very interesting life bones