View Single Post
  #6  
Old 06-30-2010, 09:08 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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.varsomething, 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.catthis.bids.(@temp.acct).getdynamicvarnames() ){ 
    for (
temp.sellerthis.bids.(@temp.acct).(@temp.cat).getdynamicvarnames() ) { 
      for (
temp.itemthis.bids.(@temp.acct).(@temp.cat).(@temp.seller).getdynamicvarnames() ) {
        
temp.this.item.(@temp.cat).(@temp.seller).(@temp.item); 
        
temp.list.add({ temp.itemtemp.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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote