Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-21-2011, 10:55 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Report System Help

PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (
player.chat == "/report") {
Report_Window1.show();
  new 
GuiWindowCtrl("Report_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "313,237";

    
canclose false;
    
canmaximize false;
    
canminimize false;
    
canmove true;
    
canresize true;
    
closequery false;
    
destroyonhide false;
    
text "Report System";
    
480;
    
159;

    new 
GuiTextEditCtrl("Report_TextEdit1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
text "";
      
width 313;
      
45;
    }
    new 
GuiTextCtrl("Report_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Use this system to report players who arent obeying the rules!";
      
width 301;
      
5;
    }
    new 
GuiTextCtrl("Report_Text2") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Account Of Report";
      
width 91;
      
109;
      
26;
    }
    new 
GuiButtonCtrl("Report_Button1") {
      
profile GuiBlueButtonProfile;
      
height 17;
      
text "File Report";
      
width 155;
      
220;
    }
    new 
GuiButtonCtrl("Report_Button2") {
      
profile GuiBlueButtonProfile;
      
height 17;
      
text "Close";
      
width 159;
      
154;
      
220;
    }
    new 
GuiButtonCtrl("Report_Button3") {
      
profile GuiBlueButtonProfile;
      
height 19;
      
text "Load and Manage Reports";
      
width 191;
      
62;
      
201;
    }
    new 
GuiTextCtrl("Report_Text3") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "Reason To Report";
      
width 87;
      
108;
      
80;
    }
    new 
GuiTextEditCtrl("Report_TextEdit2") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
text "";
      
width 313;
      
113;
    }
  }
}
}

function 
Report_Button1.onAction() {
  
player.chat "Filed Report!";
  
serverr.player player.account;
  
serverr.account Report_TextEdit1.text;
  
serverr.reason Report_TextEdit2.text;
  
Report_Window1.hide();
}

function 
Report_Button2.onAction() {
  
Report_Window1.hide();
}

function 
Report_Button3.onAction() {
if (
player.guild == "Owner") {
echo(
"Report System: "@serverr.player@" reported "@serverr.account@" for "@serverr.reason@"!");
}

The Problem with this is that, I dont know how to send the text edit text, to the RC by pressing the file report button. Can someone please help?
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


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:34 AM.


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