Blockland Forums > Help
ChatBot help
MasterChief55:
I need some help with my chatbot scripts,
--- Code: ---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);
--- End code ---
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)
MasterChief55:
No first post for u :cookieMonster: :cookieMonster:
MasterChief55:
OMG i meant xXGravity DogXx No second post for you either xD :cookie:
tkepahama:
Belongs in "Coding Help" Board.
jes00:
Belongs in Coding Help.
--- Code: ---package Gravbot {
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
if(%name $= "xXGravity DogXx")
{
if (%msg $= "Rofl")
{
commandToServer('messageSent', "Don't roll on the floor, it's not healthy.");
}
}
}
}; activatePackage(Gravbot);
--- End code ---