if its bids.sssssssssss.weapons.sword and i use that thatwill only pull up weapons. I could use another for loop, but here comes the problem.
All I have to pass in the function is the account name of the person checking their own bids from the get go. so, bids are saved as so:this.bids.bidderacct.weapons.selleracct.itemnam e.
Items selling are saved as this.items.weapons.selleracct.itemname.
What I was trying to see if was possible was to use something to pass along the account name to, so i could start the var and say this.bids.bidderacct.
something here, and that
something here would find the rest of the var which would be weapons.selleracct.itemname, then i could use that temp.var that found the rest of the var name by
something, and add this.item.temp.var
something, that way I could correctly retrieve the info needed from the seller standpoint.
In what I've tested, cant mix this with for loops.
Here is what I tried.
PHP Code:
public function getBids(temp.acct) {
temp.list = {};
for (temp.cat: this.bids.(@temp.acct).getdynamicvarnames() ){
for (temp.seller: this.bids.(@temp.acct).(@temp.cat).getdynamicvarnames() ) {
for (temp.item: this.bids.(@temp.acct).(@temp.cat).(@temp.seller).getdynamicvarnames() ) {
temp.v = this.item.(@temp.cat).(@temp.seller).(@temp.item);
temp.list.add({ temp.item, temp.v[3], temp.v[1] });
}
}
}
return temp.list;
}
The flags look like:
PHP Code:
bids.sssssssssss.Weapons.Decus_Arillias.BigSword=1000
item.Weapons.Decus_Arillias.BigSword=sword4.png,5,"The most ultimate sword ever!",1,100,1000
and the clientside script to sort it and show in textlist is:
PHP Code:
if (params[0] == "setupMyBids") {
for (temp.i=0;temp.i<params[1].size();temp.i++) {
ArmAuction_TextList3.addrow(i,params[1][i][0] @ " " @ params[1][i][1] @ " " @ params[1][i][2]);
//this.comlist.add("item."@params[2]@"."@params[1][i][2]@"."@params[1][i][0]);
}
}
params[1] is triggerClient in the params[1] calling the function getBids()serverside, using player.account when sent to the server on a button action.
This just comes up blank.
I have a similiar senario where I use the for loops to retrieve 1 var, and all this works fine.