Bot Shop

= $botPrice) { ?> "; $id = "No cake for you!"; } $userRoomID = mysql_query('SELECT id FROM rooms WHERE owner = "'.$_SESSION['user']['username'].'"'); if(is_numeric ("$_POST[room_id]") && "$_POST[room_id]" == $userRoomID) { $room_id = mysql_real_escape_string($_POST[room_id]); } else { echo "No cake for you! (room_id)
"; $room_id = "No cake for you!"; } if("$_POST[name]" != "") { $room_id = mysql_real_escape_string($_POST[name]); } else { echo "Field bot name is empty.
"; $name = "No cake for you!"; } if("$_POST[motto]" != "") { $room_id = mysql_real_escape_string($_POST[motto]); } else { echo "Field motto is empty.
"; $motto = "No cake for you!"; } if(is_numeric ("$_POST[x]")) { $x = mysql_real_escape_string($_POST[x]); } else { echo "No cake for you! (x)
"; $x = "No cake for you!"; } if(is_numeric ("$_POST[y]")) { $y = mysql_real_escape_string($_POST[y]); } else { echo "No cake for you! (y)
"; $y = "No cake for you!"; } if(is_numeric ("$_POST[z]")) { $z = mysql_real_escape_string($_POST[z]); } else { echo "No cake for you! (z)
"; $z = "No cake for you!"; } if(is_numeric ("$_POST[rotation]")) { $rotation = mysql_real_escape_string($_POST[rotation]); } else { echo "No cake for you! (rotation)
"; $rotation = "No cake for you!"; } //Insert filtered values into database if ($id=="No cake for you!" || $room_id=="No cake for you!" || $name=="No cake for you!" || $motto=="No cake for you!" || $x=="No cake for you!" || $y=="No cake for you!" || $z=="No cake for you!" || $rotation=="No cake for you!") { if ($name=="No cake for you!" || $motto=="No cake for you!") { echo ""; } else { echo "yo mama so fat"; } } else { //Just to play safe $id = mysql_real_escape_string($_POST[id]); $owner = mysql_real_escape_string($_POST[owner]); $room_id = mysql_real_escape_string($_POST[room_id]); $name = mysql_real_escape_string($_POST[name]); $motto = mysql_real_escape_string($_POST[motto]); $look = mysql_real_escape_string($_POST[look]); $x = mysql_real_escape_string($_POST[x]); $y = mysql_real_escape_string($_POST[y]); $z = mysql_real_escape_string($_POST[z]); $rotation = mysql_real_escape_string($_POST[rotation]); $walk_mode = mysql_real_escape_string($_POST[walk_mode]); //Get and update user Credits $userID = mysql_fetch_array(mysql_query('SELECT id FROM users WHERE username = "'.$_SESSION['user']['username'].'"')); MUS("updatecredits", $userID['id']); MUS("update_bots"); $updateCredits = (mysql_query("UPDATE users SET credits=credits-$botPrice WHERE username= '".$owner."'")) or die(mysql_error()); $makeBot = mysql_query("INSERT INTO bots (id, room_id, owner, name, motto, look , x , y , z , rotation , walk_mode) VALUES ('".$id."','".$room_id."','".$owner."','".$name."','".$motto."','".$look."','".$x."','".$y."','".$z."','".$rotation."','".$walk_mode."')") or die(mysql_error()); echo "

Bot succesfully added! ("; echo $userID['id']; echo ")

"; unset($GLOBALS['submit']); unset($_post['submit']); $reload = $_SERVER['REQUEST_URI']; } } { ?>

Room:

Simply select the room to place your bot.



Bot name:

Self-explanatory.



Bot motto:

Will be seen when other Teddy's click on your bot in the hotel.



Coordinates:

Say :coords in the hotel for coordinates of where you are standing at that time.

X:
Y:
Z:
Rotation:

Walk mode:

There are 3 types of walkmode: stand, freeroam and specified_range; pretty self-explanatory.




'; echo ''; } ?>
'; echo ''; } ?>
'; echo ''; } ?>
'; echo ''; } ?>
" readonly />


Not enough Credits"; echo "You don't have enough Credits for this.
"; } } else { echo 'Maximum bot limit reached. Please delete one of yours bots to continue.'; ?> Bot deleted"; echo 'Buy another bot'; unset($GLOBALS['delete']); unset($_post['delete']); $reload = $_SERVER['REQUEST_URI']; } else { ?>

Your bots:

"; } ?>

All About Bots

You'll find bots in various places in {hotelName}; most are residents in some of the public rooms. But now you can get your very own bot for your room - for only Credits!

Please note that this feature is currently in testing stage.