View Single Post
  #4  
Old 05-09-2014, 12:36 AM
JohnnyChimpo JohnnyChimpo is offline
Registered User
JohnnyChimpo's Avatar
Join Date: Jun 2004
Posts: 105
JohnnyChimpo is on a distinguished road
For all of you that dont know, here is the code. I guess i had to just step away from it, and also read through the scriptfunctions_client.txt which is terrible to look at.

Well.... ugly but thats gs2

NPC Code:

temp.obj = new TStaticVar("obj");
temp.obj.name1 = "steve";
temp.obj.number = 123;
temp.obj.float1 = 1.23;
temp.obj.strarray = { "asdf", "adsf", "adfdfgsd" };
temp.obj.numarray = {1,2,3};
temp.obj.botharray = {1,2,"asdfdsf"};
temp.obj.obj1 = new TStaticVar("sfg");
temp.obj.obj1.ha = "yea";
temp.obj.obj1.paws = true;
temp.list = temp.obj.getdynamicvarnames();

for ( temp.item : temp.list ){
echo(temp.obj.(@temp.item).type());
echo (temp.obj.(@temp.item));
}

Reply With Quote