Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-30-2007, 03:06 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
More gui trouble. -.-

Ok, I could never do this. ><
When you press a button, if a certain text in the gui says like "password" then something happens....
I have tried alot of stuff, so, can someone help me? x.x

HTML Code:
//#CLIENTSIDE
function onCreated(){
passwin.destroy();
}
function onWeaponFired(){
new GuiWindowCtrl("passwin") {
  profile = GuiBlueWindowProfile;
  x = 10;
  y = 10;
  canclose=true;
  canmove=true;
  canminimize=false;
  canmaximize=false;
  canresize=false;
  destroyonhide=true;
  width = 160;
  height = 120;
  text = "";
  
  new GuiMLTextCtrl("passs") {
  profile = GuiBlueMLTextProfile;
  x = 10;
  y = 30;
  width = 140;
  height = 10;
  text = "<center>Password:</center>";
}
  
  new GuiTextEditCtrl("password12") {
  profile = GuiBlueTextEditProfile;
  x = 10;
  y = 50;
  width = 140;
  height = 20;
  text = "";
}

 new GuiButtonCtrl("button1") {
   profile = GuiBlueButtonProfile;
   x = 30;
   y = 80;
   width = 100;
   height = 20;
   text = "Submit";
 }
  
}
}

function button1.onAction(){
if (thiso.password12 == "password"){
player.chat = "!";
}
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.