136
Help / Re: ChatBot help
« on: January 12, 2012, 05:01:17 PM »
that was only the first part of the code.
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.
package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
switch$(%msg)
{
package Gravbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
if (%msg $= "Rofl") {
if (%name $= "xXGravity DogXx") {
commandToServer('messageSent',"Don't roll on the floor, it's not healthy.");
}
}
}
};
activatePackage(Gravbot);
and yes, xXGravity BotXx is my new name, i have no idea how to change my name on the forums, any help please (this is my first post)