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 02-27-2011, 05:34 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
gui lister

Hey guys, i tried around with the GuiPopUpMenuCtrl(" ") and got two questions. First:

I placed the following into a NPC:
PHP Code:
function onCreated() {
  
this.join("test1");
}
//#CLIENTSIDE
function onCreated() {
  
this.bla1 "bla";
  
this.bla2 "bla";

and this is a part of the class "test1":
PHP Code:
new GuiPopUpMenuCtrl("test1_List") {
  
width 130;
  
height 20;
  
10;
  
77;
  
cleararrows();   
  
addrow(0,this.bla1);
  
addrow(1,this.bla2);
  
sort();
  
setSelectedRow(0);

So when I make it that way, it won´t say the this.bla1 or this.bla2. How could I make it that it will say that?

Seccond question:
I figured out, how to make it listing the player.weapons.
PHP Code:
for (temp.weapon player.weapons) {
        if (! 
weapon.name.starts("-")) {
          
addRow(0weapon.name);
        }
      } 
But how could I make it list like when I got a flag called:
clientr.test = 1,2,3,4
That it will list the clientr.test?
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:52 PM.


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