<?php
require “core.php”;
require “tasks.php”;
$Username = “USERNAME OF BOT GOES HERE”;
$Password = “PASSWORD OF BOT GOES HERE”;
$TargetID = “ID OF PENGUIN YOU WANT THE BOT TO FOLLOW GOES HERE”;
if (connect(SERVER ID GOES HERE, $Username, $Password, true)) {
echo “Connected to server”;
} gotoRoom(ROOM ID GOES HERE);
while(true) {
$rawPack = readRawPacket();
if (stripos($rawPack, “xt%sp%”. $myRoomID .“%”. $TargetID .“%”)) {
$x = stribet($rawPack, “xt%sp%$myRoomID%$TargetID%”, “%”);
$y = stribet($rawPack, “xt%sp%$myRoomID%$TargetID%$x%”, “%”);
goto($x, $y);
echo “Penguin went to: $x, $y \n”;
}
if (stripos($rawPack, “xt%sm%”. $myRoomID .“%”. $TargetID .“%”)) {
$Message = stribet($rawPack, “xt%sm%$myRoomID%$TargetID%”, “%”);
say($Message);
}
elseif (stripos($rawPack, “xt%se%$myRoomID%$TargetID”)){
$EmoteID = stribet($rawPack, “%xt%se%$myRoomID%$TargetID%”, “%”);
sendEmote($EmoteID);
echo “u r feeling : $EmoteID\n”;
}
}
?>
Leave a comment