FailScripts :P

Discussion in 'Off-Topic' started by Thecreator767, Jun 9, 2012.

  1. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    Post your fail scripts here! lol : P

    <html>
    <title>IDK</title>
    <p><b1>Boringness</b1></p>
    <p>
    If you`re readin this<br> then you will be very bored :p
    </p>
    </html>
     
  2. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    This is what I do when ECC is down lol
     
  3. iEvolive

    iEvolive Epidexipteryx hui
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 28, 2011
    Messages:
    1,384
    Trophy Points:
    40,690
    Ratings:
    +136
    How is this a script?
     
  4. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,509
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,583
    HTML Script evo
     
  5. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    ON the second time ECC was down.............

    <html>
    <Title>Color GUI</Title>
    <p>
    <font color="red"><font size=8>C</font><font color="blue"><font size=6>o</font><font color="Purple"><font size=8>l</font><font color="brown"><font size=6>o</font><font color="green"><font size=8>r</font><font color="orange"><font size=6>s</font><font color="yellow">!</font
    </p>
    </html>

    ................ took me five minutes but was worth it lol : P
     
  6. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    I put in the actual colors because I didn`t feel like puttng in the Number IDs :p
     
  7. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,051
    Trophy Points:
    80,160
    Ratings:
    +6,923
    HTML is not a scripting language, it's a markup language.
    Javascript is a scripting language.


    Here is my javascript/html :b
    Code:
    <html>
    <head>
    <title>Javascript digital clock, by kukelekuuk00.</title>
    <script type = "text/javascript">
    
    
    
    var  GMToffset = 0,t;
    
    function start() {
      GMToffset=zxcReadCookie('time')||0;
      t=setInterval('digitalclock()',500);
    }
    
    
    function digitalclock()
    {
    var monthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
    var today=new Date();
    var hours=(today.getHours() + GMToffset*1)%24;
    var daygmt=today.getTime()+ ((offset-1)*3600000);
    var myDate = new Date(daygmt);
    var asgk= myDate.toDateString();
    var minutes=today.getMinutes();
    var seconds=today.getSeconds();
    var day=today.getDate()
    var year=today.getFullYear();
    var month=today.getMonth();
    var timezone = "";
    	if(time == "12h")
    	{
    	var t = " PM "
    		if (hours < 12)
    		{
    		t = " AM "
    		}
    		if (hours > 12)
    		{
    		hours -= 12
    		}
    	}
    	else
    	{
    	var t = ""
    	}
    	
    if (GMToffset == -1){
    timezone = " (GMT) "
    }
    if (GMToffset == -2){
    timezone = " (GMT-1) "
    }
    if (GMToffset == -3){
    timezone = " (GMT-2) "
    }
    if (GMToffset == -4){
    timezone = " (GMT-3) "
    }
    if (GMToffset == -5){
    timezone = " (GMT-4) "
    }
    if (GMToffset == -6){
    timezone = " (GMT-5) "
    }
    if (GMToffset == -7){
    timezone = " (GMT-6) "
    }
    if (GMToffset == -8){
    timezone = " (GMT-7) "
    }
    if (GMToffset == -9){
    timezone = " (GMT-8) "
    }
    if (GMToffset == -10){
    timezone = " (GMT-9) "
    }
    if (GMToffset == -11){
    timezone = " (GMT-10) "
    }
    if (GMToffset == 0){
    timezone = " (GMT+1) "
    }
    if (GMToffset == 1){
    timezone = " (GMT+2) "
    }
    if (GMToffset == 2){
    timezone = " (GMT+3) "
    }
    if (GMToffset == 3){
    timezone = " (GMT+4) "
    }
    if (GMToffset == 4){
    timezone = " (GMT+5) "
    }
    if (GMToffset == 5){
    timezone = " (GMT+6) "
    }
    if (GMToffset == 6){
    timezone = " (GMT+7) "
    }
    if (GMToffset == 7){
    timezone = " (GMT+8) "
    }
    if (GMToffset == 8){
    timezone = " (GMT+9) "
    }
    if (GMToffset == 9){
    timezone = " (GMT+10) "
    }
    if (GMToffset == 10){
    timezone = " (GMT+11) "
    }
    if (GMToffset == 11){
    timezone = " (GMT+12) "
    }
    if (day == 1){
    day = day+"st"
    }
    if (day == 2){
    day = day+"nd "
    }
    if (day > 2){
    day = day+"th "
    }
    minutes=checkTime(minutes);
    seconds=checkTime(seconds);
    hours=checkTime(hours);
    document.getElementById('txt').innerHTML=hours+":"+minutes+":"+seconds+t+"<i><b>"+timezone+"</b></i>"+asgk;
    }
    
    function checkTime(i)
    {
    if (i<10)
      {
      i="0" + i;
      }
    return i;
    }
    
    function updatetime(nu) {
      GMToffset = nu;
      zxcCreateCookie('time',nu,0); // change 1 to the number of days persistance required
    }
    
    function zxcCreateCookie(nme,v,days){
     document.cookie=nme+'='+v+';expires='+(new Date(new Date().getTime()+days*86400000).toGMTString())+';path=/';
    }
    
    function zxcReadCookie(nme){
     nme+='=';
     var split = document.cookie.split(';');
     for(var z0=0;z0<split.length;z0++){
      var s=split[z0];
      while (s.charAt(0)==' ') s=s.substring(1,s.length);
      if (s.indexOf(nme)==0) return s.substring(nme.length,s.length);
     }
     return null;
    }
    
    var time = "12h"; //12h clock or 24h clock
    var offset = 11; //The timezone offset (0 = GMT)
    
    </script>
    
    </head>
    <body onload="start(); updatetime(offset-1)"> 
    <div align="center"><h1>Javascript digital clock, by kukelekuuk00.</h1></div>
    <div align="center" id="txt"></div>
    <div align="center"><h3>See the source for the javascript.</h3></div>
    
    </html>
     
  8. iEvolive

    iEvolive Epidexipteryx hui
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 28, 2011
    Messages:
    1,384
    Trophy Points:
    40,690
    Ratings:
    +136
    not a script.

    anyway, here's my super awesome java code :3

    Code:
    class beer{
        public static void main(String args[]){
            int beer = 99;
    
            while (beer > 1){
                System.out.println(beer + " bottles of beer on the wall,");
                System.out.println(beer + " bottles of beer!");
                System.out.println("Take one down, pass it around,");
                beer = beer - 1;
            }
            System.out.println("1 bottle of beer on the wall,");
            System.out.println("1 bottle of beer!");
            System.out.println("Take one down, pass it around,");
            System.out.println("No more bottles of beer on the wall.");
        }
    }
     
  9. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    Ievo? how can you do Javascript without HTML? do you mean JAVA or c++? cause javascript is not possible without HTML.
     
  10. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,051
    Trophy Points:
    80,160
    Ratings:
    +6,923
    That was Java, he clearly said java.
    Javascript can be done without HTML though. It is just generally used in HTML.
    Javascript like any other scripting language can be used for many applications.

    Here is a quote directly from wikipedia.
     
  11. MsMoofin

    MsMoofin (Don't) Paddle (the) Cow
    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 16, 2011
    Messages:
    3,958
    Trophy Points:
    48,090
    EcoDollars:
    $0
    Ratings:
    +828
    HTML, CSS, Javascript.

     
  12. iEvolive

    iEvolive Epidexipteryx hui
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 28, 2011
    Messages:
    1,384
    Trophy Points:
    40,690
    Ratings:
    +136
    how the hell could you possibly mistake that for C++?
     
  13. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,051
    Trophy Points:
    80,160
    Ratings:
    +6,923

    To be honest, your HTML is rubbish.
    I suggest you go here and learn html :b
     
  14. iEvolive

    iEvolive Epidexipteryx hui
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 28, 2011
    Messages:
    1,384
    Trophy Points:
    40,690
    Ratings:
    +136
    You can become moderately proficient in html in 5 minutes.
     
  15. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,051
    Trophy Points:
    80,160
    Ratings:
    +6,923
    Let's see who can make something out of this:


    This is TCL, What this does is it ciphers/deciphers Ceasars shift ciphers.


    Code:
    proc ceasar { nick userhost handle chan text } {
    set text [split $text { }]
    set key [lindex $text 0]
      if { [string compare -nocase $key 1] == 0} {
      set ceasar1 [string map -nocase { A b B c C d D e E f F g G h H i I j J k K l L m M n N o O p P q Q r R s S t T u U v V w W x X y Y z Z a} $text]
      set ceasar1 [string trimleft $ceasar1 "1 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar1"
      }
      if { [string compare -nocase $key 2] == 0} {
      set ceasar2 [string map -nocase { A c B d C e D f E g F h G i H j I k J l K m L n M o N p O q P r Q s R t S u T v U w V x W y X z Y a Z b} $text]
      set ceasar2 [string trimleft $ceasar2 "2 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar2"
      }
      if { [string compare -nocase $key 3] == 0} {
      set ceasar3 [string map -nocase { A d B e C f D g E h F i G j H k I l J m K n L o M p N q O r P s Q t R u S v T w U x V y W z X a Y b Z c} $text]
      set ceasar3 [string trimleft $ceasar3 "3 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar3"
      }
      if { [string compare -nocase $key 4] == 0} {
      set ceasar4 [string map -nocase { A f B g C h D i E j F k G l H m I n J o K p L q M r N s O t P u Q v R w S x T y U z V a W b X c Y d Z e} $text]
      set ceasar4 [string trimleft $ceasar4 "4 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar4"
      }
      if { [string compare -nocase $key 5] == 0} {
      set ceasar5 [string map -nocase { A g B h C i D j E k F l G m H n I o J p K q L r M s N t O u P v Q w R x S y T z U a V b W c X d Y e Z f} $text]
      set ceasar5 [string trimleft $ceasar5 "5 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar5"
      }
      if { [string compare -nocase $key 6] == 0} {
      set ceasar6 [string map -nocase { A h B i C j D k E l F m G n H o I p J q K r L s M t N u O v P w Q x R y S z T a U b V c W d X e Y f Z g} $text]
      set ceasar6 [string trimleft $ceasar6 "6 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar6"
      }
      if { [string compare -nocase $key 7] == 0} {
      set ceasar7 [string map -nocase { A i B j C k D l E m F n G o H p I q J r K s L t M u N v O w P x Q y R z S a T b U c V d W e X f Y g Z h} $text]
      set ceasar7 [string trimleft $ceasar7 "7 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar7"
      }
      if { [string compare -nocase $key 8] == 0} {
      set ceasar8 [string map -nocase { A j B k C l D m E n F o G p H q I r J s K t L u M v N w O x P y Q z R a S b T c U d V e W f X g Y h Z i} $text]
      set ceasar8 [string trimleft $ceasar8 "8 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar8"
      }
      if { [string compare -nocase $key 9] == 0} {
      set ceasar9 [string map -nocase { A k B l C m D n E o F p G q H r I s J t K u L v M w N x O y P z Q a R b S c T d U e V f W g X h Y i Z j} $text]
      set ceasar9 [string trimleft $ceasar9 "9 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar9"
      }
      if { [string compare -nocase $key 10] == 0} {
      set ceasar10 [string map -nocase { A l B m C n D o E p F q G r H s I t J u K v L w M x N y O z P a Q b R c S d T e U f V g W h X i Y j Z k} $text]
      set ceasar10 [string trimleft $ceasar10 "10 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar10"
      }
      if { [string compare -nocase $key 11] == 0} {
      set ceasar11 [string map -nocase { A m B n C o D p E q F r G s H t I u J v K w L x M y N z O a P b Q c R d S e T f U g V h W i X j Y k Z l} $text]
      set ceasar11 [string trimleft $ceasar11 "11 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar11"
      }
      if { [string compare -nocase $key 12] == 0} {
      set ceasar12 [string map -nocase { A n B o C p D q E r F s G t H u I v J w K x L y M z N a O b P c Q d R e S f T g U h V i W j X k Y l Z m} $text]
      set ceasar12 [string trimleft $ceasar12 "12 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar12"
      }
      if { [string compare -nocase $key 13] == 0} {
      set ceasar13 [string map -nocase { A o B p C q D r E s F t G u H v I w J x K y L z M a N b O c P d Q e R f S g T h U i V j W k X l Y m Z n} $text]
      set ceasar13 [string trimleft $ceasar13 "13 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar13"
      }
      if { [string compare -nocase $key 14] == 0} {
      set ceasar14 [string map -nocase { A p B q C r D s E t F u G v H w I x J y K z L a M b N c O d P e Q f R g S h T i U j V k W l X m Y n Z o} $text]
      set ceasar14 [string trimleft $ceasar14 "14 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar14"
      }
      if { [string compare -nocase $key 15] == 0} {
      set ceasar15 [string map -nocase { A q B r C s D t E u F v G w H x I y J z K a L b M c N d O e P f Q g R h S i T j U k V l W m X n Y o Z p} $text]
      set ceasar15 [string trimleft $ceasar15 "15 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar15"
      }
      if { [string compare -nocase $key 16] == 0} {
      set ceasar16 [string map -nocase { A r B s C t D u E v F w G x H y I z J a K b L c M d N e O f P g Q h R i S j T k U l V m W n X o Y p Z q} $text]
      set ceasar16 [string trimleft $ceasar16 "16 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar16"
      }
      if { [string compare -nocase $key 17] == 0} {
      set ceasar17 [string map -nocase { A s B t C u D v E w F x G y H z I a J b K c L d M e N f O g P h Q i R j S k T l U m V n W o X p Y q Z r} $text]
      set ceasar17 [string trimleft $ceasar17 "17 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar17"
      }
      if { [string compare -nocase $key 18] == 0} {
      set ceasar18 [string map -nocase { A t B u C v D w E x F y G z H a I b J c K d L e M f N g O h P i Q j R k S l T m U n V o W p X q Y r Z s} $text]
      set ceasar18 [string trimleft $ceasar18 "18 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar18"
      }
      if { [string compare -nocase $key 19] == 0} {
      set ceasar19 [string map -nocase { A u B v C w D x E y F z G a H b I c J d K e L f M g N h O i P j Q k R l S m T n U o V p W q X r Y s Z t} $text]
      set ceasar19 [string trimleft $ceasar19 "19 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar19"
      }
      if { [string compare -nocase $key 20] == 0} {
      set ceasar20 [string map -nocase { A v B w C x D y E z F a G b H c I d J e K f L g M h N i O j P k Q l R m S n T o U p V q W r X s Y t Z u} $text]
      set ceasar20 [string trimleft $ceasar20 "20 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar20"
      }
      if { [string compare -nocase $key 21] == 0} {
      set ceasar21 [string map -nocase { A w B x C y D z E a F b G c H d I e J f K g L h M i N j O k P l Q m R n S o T p U q V r W s X t Y u Z v} $text]
      set ceasar21 [string trimleft $ceasar21 "21 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar21"
      }
      if { [string compare -nocase $key 22] == 0} {
      set ceasar22 [string map -nocase { A x B y C z D z E b F c G d H e I f J g K h L i M j N k O l P m Q n R o S p T q U r V s W t X u Y v Z w} $text]
      set ceasar22 [string trimleft $ceasar22 "22 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar22"
      }
      if { [string compare -nocase $key 23] == 0} {
      set ceasar23 [string map -nocase { A y B z C a D b E c F d G e H f I g J h K i L j M k N l O m P n Q o R p S q T r U s V t W u X v Y w Z x} $text]
      set ceasar23 [string trimleft $ceasar23 "23 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar23"
      }
      if { [string compare -nocase $key 24] == 0} {
      set ceasar24 [string map -nocase { A z B a C b D c E d F e G f H g I h J i K j L k M l N m O n P o Q p R q S r T s U t V u W v X w Y x Z y} $text]
      set ceasar24 [string trimleft $ceasar24 "24 "]
      puthelp "PRIVMSG $chan :\002Output:\002 $ceasar24"
      }
      if { [expr $key > 24] == 1 } {
      puthelp "PRIVMSG $chan :Please provide a number below 25"
      }
    }
    Better view of the code http://pastebin.com/4XTmdHBD

    if I were to input "2 meep" I would get "oggr"
    see http://www.braingle.com/brainteasers/codes/caesar.php

    PS. it took quite some time to write down all those individual letters.
     
  16. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    .... thers a REASON why I said failscripts -_- also he did say java : P
     
  17. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
  18. Thecreator767

    Thecreator767 Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 22, 2012
    Messages:
    3,164
    Trophy Points:
    36,440
    Gender:
    Male
    Ratings:
    +248
    Also if I was being serious I would`ve put EXPERTscripts : P
     
  19. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,051
    Trophy Points:
    80,160
    Ratings:
    +6,923

    Actually.. the only actual script that was posted in here was my javascript digital clock.
    and learning HTML isn't hard, you should give it a try :b
     
  20. iEvolive

    iEvolive Epidexipteryx hui
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 28, 2011
    Messages:
    1,384
    Trophy Points:
    40,690
    Ratings:
    +136