Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfif #user.bots# is 0>
- <font color="red">Je BOT saldo is op. Je kunt geen BOT's meer maken, koop hierboven extra BOT tegoed</font> </cfif>
- <cfif #user.bots# gte 1>
- <center><h2><font color="green">Je kunt nog <cfoutput>#user.bots#</cfoutput> BOT's maken!</font></h2></center>
- <cfif IsDefined('form.submit')>
- <cfoutput>
- <cfif #user.bots# gte 1>
- <cfquery name = "pay" datasource = "#DSN#">
- UPDATE users
- SET bots=#user.bots#-1
- WHERE id=#user.id#
- </cfquery>
- <cfquery name = 'get' datasource = '#DSN#'>
- INSERT INTO `bots` (`id`, `room_id`, `ai_type`, `name`, `motto`, `look`, `x`, `y`, `z`, `rotation`, `walk_mode`, `min_x`, `min_y`, `max_x`, `max_y`, `effect`, `owner`)
- VALUES (NULL, '#form.room#', 'generic', '#form.name#', '#form.motto#', '#form.look#', '#form.coordsz#', '#form.coordsy#', '#form.coordsz#', '#form.rotation#', '#form.walk#', '0', '0', '0', '0', '#form.effect#', '#user.id#');
- </cfquery>
- <center><img src='/c_images/group_1.gif' /></center><br>
- Geweldig! Je BOT <b>'#form.name#'</b> is succesvol aangemaakt! Gelieve in het hotel het commando ':update_bots' te typen en in je kamer ':unload' te zeggen. Je bot verschijnt dan automatisch in je kamer!
- <br><br>
- <a href='/content/1-Home/botteksten.cfm'>Laat <b>#form.name#</b> spreken</a><br>
- <a href='/content/1-Home/botreacties.cfm'>Laat <b>#form.name#</b> reageren</a><br>
- <br><br>
- <a href='bots.cfm'>Terug</a>
- <cfelse>
- <b>Je hebt te weinig credits, sorry!</b><br>
- <br><a href='groepen.cfm'>» Terug</a>
- </cfif>
- </cfoutput>
- <cfelse>
- <cfform name='form' method='post'>
- <b>Naam:</b><br>
- <input type='text' name='name' rows='3' cols='40'></textarea>
- <br>
- <b>Motto:</b><br>
- <input type='text' name='motto' rows='3' cols='40'></textarea>
- <br>
- <b>Kleding van de bot:</b><br>
- <cfoutput>
- <input type='text' name=look' rows='3' cols='40' value='#user.look#' disabled='true'></textinput>
- <input type='hidden' value='#user.look#' name='look'>
- </cfoutput><br>
- <i>De kleding die je bot aan zal hebben is dezelfde kleding als jij, kleed je om en herlaad deze pagina om de kleding te veranderen.
- </i>
- <br><br>
- <b>Rotatie:</b><br>
- <select name="rotation"><option value="3">Frontaal (3)</option><option value="7">Achter(7)</option><option value="1">Rechts (1)</option><option value="2">Schuin rechts (2)</option><option value="8">Achter rechts (8)</option><option value="5">Links (5)</option><option selected="selected" value="4">Schuin links (4)</option><option value="6">Achter links (6)</option></select>
- <br><br>
- <b>Kamer van de BOT:</b><br>
- <cfquery name = "Rooms" datasource = "#DSN#">
- SELECT caption, description, users_now, score, state, id
- FROM rooms
- WHERE owner = '#user.username#'
- ORDER BY users_now DESC
- </cfquery>
- <select name="room">
- <cfoutput query = "Rooms">
- <option value="#id#">#caption#</option>
- </cfoutput>
- </select>
- <br>
- <br>
- <b>Effect:</b><br>
- <select name="effect">
- <option value="0">Geen effect</option>
- <optgroup label="Beschikbare effecten">
- <option value="1">Spotlight</option>
- <option value="111">Gouden medaille</option>
- </optgroup>
- </select>
- <br>
- <b>Coordinaten:</b><br>
- X : <input style="width:50px;" name="coordsx" type="text"> Y : <input style="width:50px;" name="coordsy" type="text"> Z : <input style="width:50px;" name="coordsz" type="text">
- <br><i>Dit is iets ingewikkelder, dit bepaald waar je BOT staat in je kamer. Ga naar de plek waar je hem wilt in je kamer, typ :coords, en dan krijg je een alertje waarin staat X: (bijv: 1). Y: (bijv: 1). Z: (bijv: 1). Vul deze gegevens hierboven in.</i><br>
- <br><b>Plaats:</b><br>
- <select name="walk" style="">
- <option value="freeroam" selected>Vrij lopend</option>
- <option value="stand">Voor altijd stilstaand</option>
- </select>
- <center><cfinput type='image' src='http://linehotel.org/c_images/bot_buy.png' name='submit' value='Koop deze badge nu'></center>
- </cfform>
- </cfif></cfif>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement