Blockland Forums > Modification Help

Bot

Pages: << < (3/4) > >>

Flubbman:


--- Quote from: Bauklotz on February 23, 2011, 12:11:13 PM ---serverCmdMessageSent(cow, quit(), missionGroup.delete());

--- End quote ---
What does that do exactly? I'm no coder.

Headcrab Zombie:


--- Quote from: Flubbman on February 24, 2011, 09:51:01 AM ---What does that do exactly? I'm no coder.

--- End quote ---
Close the server/game.

clinr121:

look

clinr121:



--- Code: ---package Bot
{
function clientCmdChatMessage(%a,%b,%c,%d,%prefixtag, %name,%suffixtag,%message)
{
Parent::clientCmdChatMessage(%a,%b,%c,%d,%prefixtag, %name,%suffixtag,%message);
if(%name $= $pref::Player::NetName)
return;
%message = stripMlControlChars(%message);
%word[0] = "test";
%count = 0;
for(%i=0; %i<%count; %i++)
{
for(%j=0; %j<getWordCount(%message); %j++)
if(getWord(%message,%j) $= %word[%i])
commandtoserver('messageSent',"Test".");
}
}
};
activatePackage(Bot);

--- End code ---


for that if someone says something ill say something like...

Person: TEST

and

%word[0] = "test";
for any number in [0] box

and use

%count = 0;

or some number for that

that code is from my bot



Bauklotz:

What. That also causes a syntax error, and %count set to 0 would cause the %i loop not to run at all.

Pages: << < (3/4) > >>

Go to full version