Thread: Death Clock
View Single Post
  #2  
Old 06-10-2007, 05:11 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PHP Code:
  new GuiWindowCtrl("Results_Window") {
    
profile           "GuiBlueTransWindowProfile";
    
profile.fontColor = { 255255255};
    
extent            = { 15864};
    
position          = { screenwidth/2screenheight/3+80};
    
text              "Death Clock Results";
    
fontSize          14;
    
useownprofile     true;
    
canClose          true;
    
canMove           false;
    
canResize         false;
    
canMinimize       false;
    
canMaximize       false;
    
destroyOnHide     true;
    
visble            false;

    new 
GuiMLTextCtrl("Reseult_Text") {
      
profile  "GuiBlueTextProfile";
      
position = { 1225};
      
extent   = { 17548};
      
columns  = { 80175};
      
text     "Your going to die on, " NL thiso.day[0SPC thiso.month SPC thiso.day[1SPC thiso.d1;
    };

    if (
thiso.d1 2007)
    {
      
Reseult_Text.setText("Sorry, your time is up!" NL "Have a Nice Day! :)");
    }
  };
}


function 
BMI_Button.onAction() BMIWind();

function 
BMIWind() {
  new 
GuiWindowCtrl("BMI_Window") {
    
profile           "GuiBlueTransWindowProfile";
    
profile.fontColor = { 255255255};
    
extent            = { 17596};
    
position          = { screenwidth/2.25screenheight/3+80};
    
text              "BMI";
    
fontSize          14;
    
useownprofile     true;
    
canClose          true;
    
canMove           false;
    
canResize         false;
    
canMinimize       false;
    
canMaximize       false;
    
destroyOnHide     true;
    
visble            false;

    new 
GuiTextCtrl("Weight_Text") {
      
profile  "GuiBlueTextProfile";
      
position = { 1225};
      
text     "Weight (lbs) :";
    };

    new 
GuiTextCtrl("Height_Text") {
      
profile  "GuiBlueTextProfile";
      
position = { 1247};
      
text     "Height (in) :";
    };

    new 
GuiTextCtrl("BMI_Text") {
      
profile  "GuiBlueTextProfile";
      
position = { 1269};
      
text     "Your BMI is :";
    };

    new 
GuiTextEditCtrl("Weight_Edit_Text") {
      
profile  "GuiBlueTextEditProfile";
      
position = { 7825};
      
extent   = { 3220};
    };

    new 
GuiTextEditCtrl("Height_Edit_Text") {
      
profile  "GuiBlueTextEditProfile";
      
position = { 7847};
      
extent   = { 3220};
    };

    new 
GuiButtonCtrl("BMI_Get_Button") {
      
profile  "GuiBlueButtonProfile";
      
position = { 11247};
      
extent   = { 5520};
      
text     "Get BMI";
    };
  };
}

function 
BMI_Get_Button.onAction() {
  
this.weight1 Weight_Edit_Text.text;
  
this.height1 Height_Edit_Text.text;
  
this.BMI1 int((this.weight1*703)/(this.height1^2));
  
BMI_Text.setText("Your BMI is :" this.BMI1);
}

function 
About_Button.onAction() {
  new 
GuiWindowCtrl("About_Window") {
    
profile           "GuiBlueTransWindowProfile";
    
profile.fontColor = { 255255255};
    
extent            = { 250150};
    
position          = { screenwidth/2.55screenheight/3+80};
    
text              "About";
    
fontSize          14;
    
useownprofile     true;
    
canClose          true;
    
canMove           false;
    
canResize         false;
    
canMinimize       false;
    
canMaximize       false;
    
destroyOnHide     true;
    
visble            false;

    new 
GuiMLTextCtrl("About_Text") {
      
profile  "GuiBlueTextProfile";
      
position = { 825};
      
extent   = { 24048};
      
columns  = { 80175};
      
text     "Hello, this script is made by Mr. Omega of Niromia it is free for anyone to tinker with, just do not call it your own. :P THIS IS NOT MEANT TO BE SERIOUS OR ACTUAL!!! Some data is based off averages from the CIA Data bases of Human Health and sites alike. Have Fun!
                 - Mr. Omega"
;
    };
  };

Just copy each one into the same weapon no spaces or nothing, just make sure it's on its own line :P

I'm sure there ways to optimize it but I could care less so don't babble on about it

File for download I put aswell if you feel unsafe with the two post thing o.o
Attached Files
File Type: doc Death_Clock.doc (15.5 KB, 219 views)
__________________
Deep into the Darkness peering...
Reply With Quote