Newbie Spellweaver
- Joined
- Dec 14, 2012
- Messages
- 80
- Reaction score
- 1
Ill give you free silver vip on my hotel if you want if you help.
My hotel is: Acidhotel.com
Here's the script:
My hotel is: Acidhotel.com
Here's the script:
<?php $sql = "SELECT * FROM `users` WHERE `id`='{$_SESSION['user']['id']}'"; $result = mysql_query($sql); $details = mysql_fetch_array($result); $rank = $details['rank']; if($rank = 1) { ?> <form action="/bots/insert.php" method="post"> <span title="Don't worry about the ID, it has been corrected for you.">Bot ID: </span><br /> <input type="text" name="id" value="<?php $sql = "SELECT * FROM bots ORDER BY id DESC LIMIT 0,1"; $result = mysql_query($sql); $info = mysql_fetch_array($result); $id = $info['id']; $addition = $id + 1; echo $addition; ?>" readonly /><br /><br /> <span title="To find your room ID, go to the your room and click "Room info". Look under "Link to this room", copy down your room number and input below.">Room ID: </span><br /> <select name="kamer"> <?php $getRoomInfo = mysql_query('SELECT id, caption FROM rooms WHERE owner = "'.$_SESSION['user']['username'].'"'); while($roomInfo = mysql_fetch_array($getRoomInfo)){ echo '<option value="'; echo $roomInfo['id']; echo '">'; echo $roomInfo['id']; echo ' - '; echo $roomInfo['caption']; echo '<br /></option>'; } ?> </select><br /><br /> <span title="Self-explanatory.">Bot name: </span><br /> <input type="text" name="naam" /><br /><br /> <span title="Will be seen when other Teddy's click on your bot in the hotel.">Bot motto: </span><br /> <input type="text" name="missie" /><br /><br /> <span title="">Look: </span><br /> <table name="look" align="center" > <br /> <tr> <td> <?php $gender = "m"; $query = "SELECT * FROM cms_registration_figures WHERE gender = '$gender' LIMIT 14"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $avatar = explode('.', $row['figure'], 2); echo '<img src="http://habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'] .'&direction=2&head_direction=2&gesture=sml&action=sit&cache={date}" width="40" height="65"/>'; echo '<input type="radio" name="look" checked="checked" value="'.$row['figure'].' ">'; } ?> </td> </tr> <tr> <td> <?php $gender = "m"; $query = "SELECT * FROM cms_registration_figures WHERE gender = '$gender' LIMIT 14,14"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $avatar = explode('.', $row['figure'], 2); echo '<img src="http://habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'] .'&direction=2&head_direction=2&gesture=sml&action=sit&cache={date}" width="40" height="65"/>'; echo '<input type="radio" name="look" value="'.$row['figure'].' ">'; } ?> </td> </tr> <tr> <td> <?php $gender = "f"; $query = "SELECT * FROM cms_registration_figures WHERE gender = '$gender' LIMIT 14"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $avatar = explode('.', $row['figure'], 2); echo '<img src="http://habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'] .'&direction=2&head_direction=2&gesture=sml&action=sit&cache={date}" width="40" height="65"/>'; echo '<input type="radio" name="look" value="'.$row['figure'].' ">'; } ?> </td> </tr> <tr> <td> <?php $gender = "f"; $query = "SELECT * FROM cms_registration_figures WHERE gender = '$gender' LIMIT 14,14"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { $avatar = explode('.', $row['figure'], 2); echo '<img src="http://habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'] .'&direction=2&head_direction=2&gesture=sml&action=sit&cache={date}" width="40" height="65"/>'; echo '<input type="radio" name="look" value="'.$row['figure'].' ">'; } ?> </td> </tr> </table><br /><br /> <span title="Say :coords in the hotel for coordinates of where you are standing at that time.">Coordinates: </span><br /> X: <input type="number" name="x" /><br /> Y: <input type="number" name="y" /><br /> Z: <input type="number" name="z" /><br /> Rotation: <input type="number" name="rotation" /><br /><br /> <span title="There are 3 types of walkmode: stand, freeroam and specified_range; pretty self-explanatory.">Walk mode: </span><br /> <select name="walk_mode"> <option>stand</option> <option>freeroam</option> <option>specified_range</option> </select><br /><br /> <input type="submit" value="Make Bot" /> </form> <?php } ?> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> |