Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Opening GUIs? (https://forums.graalonline.com/forums/showthread.php?t=134260929)

MattKan 10-26-2010 01:14 AM

Opening GUIs?
 
Is there a scripting command to open different Graal-Wide GUI's such as the player list, RC, options menu, etc.?

fowlplay4 10-26-2010 02:05 AM

If you know the name of GUI object.

object.show();

works just fine.

MattKan 10-26-2010 02:31 AM

Ok.

In that case, does anyone know the name of those GUI objects?

fowlplay4 10-26-2010 04:57 AM

Learn more about the scripts around you by dumping all their user-defined functions, and a quick peek at some this vars.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  for (
temp.wepplayer.weapons) {
    
temp.funcs temp.wep.getfunctions();
    for (
temp.functemp.funcs) {
      
// Ignore Built-In Functions
      // All user-defined functions have a parameters set to ...
      
if (temp.func.parameters != "...") continue;
      
temp.doc.add((temp.func.scope == "public" "public " "") @ "function " temp.func "();");
    }
    
temp.doc.sortdescending();
    
temp.doc.insert(0"== Functions ==");
    
temp.doc.add("== this. Variables == ");
    
temp.keys temp.wep.getdynamicvarnames();
    for (
temp.keytemp.keys) {
      if (
temp.key in temp.funcs) continue;
      
temp.doc.add("this." temp.key SPC "=" SPC temp.wep.(@temp.key));
    }
    
temp.doc.savelines("functions/" temp.wep.name ".txt"0);
    
temp.doc "";
  }



xAndrewx 10-26-2010 08:08 AM

haha thanks


All times are GMT +2. The time now is 09:24 PM.

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