PPcL Custom commands.

PPcL Custom commands.


PPcL custom commands. Remade on an account to refer back to.

Okay, to start off you need to open tasks.php with notepad ++.
Then, press CTRL+F on your keyboard and paste this into the messagebox:

} elseif (strpos($strMessage, "wave")){
$this->sendMessage("Hi! I'm waving to ya!");
$this->sendAction(25);
echo "$time --> $PenguinID: Wave complete\n";

Copy that, and find it.
Then, under it, press enter, to leave a line between your new command and the other one above. Then paste this under it:

} elseif (strpos($strMessage, "black")){
$this->sendMessage("Black is the best!");
$this->sendAction(26);
echo "$time --> $PenguinID: Wave complete\n";

Now, edit $strMessage, "black")){ with a command name. For instance, I would change it to:

} elseif (strpos($strMessage, "torch")){
$this->sendMessage("Torch made GPPS!");
$this->sendAction(26);
echo "$time --> $PenguinID: Wave complete\n";

sendAction(26); means it will make the bot dance after the command.
(If your bot is already on the CPPS, you need to restart the bot by entering the server details again

Don't forget to save the tasks.php file!

So happy... creating commands?
-Black a.k.a Apollo/Mist/Phantom/Xedili0n

No comments:

Post a Comment