View Single Post
  #1  
Old 06-05-2010, 04:26 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Oh, I see a little better now. Your making an auction house dealy?

I follow the recommendation, use .'s instead of _'s
I don't like how you have the string stored, but if I were forced to, I might search the categories like this. Untested, but i've done things like this in the past.

PHP Code:
public function getCategoryListing(temp.category){
  
clearemptyvars();
  
temp.list = {};
  for (
temp.acntthis.item.(@temp.category).getdynamicvarnames() ){
    for (
temp.itemthis.item.(@temp.category).(@temp.acnt).getdynamicvarnames() ){
      
temp.this.item.(@temp.category).(@temp.acnt).(@temp.item);
      
temp.list.add({ temp.itemtemp.v[0], temp.acnttemp.v[3] });
    }
  }
  return 
temp.list;

__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote