View Single Post
  #4  
Old 09-08-2007, 07:11 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by coreys View Post
Okay, I did change them to that, but I also figured out why that's happening. It has to do with the chat system on Maloria, so there's nothing wrong with the for loops. However, the icons are showing in...odd places.
Here's what I have now:
PHP Code:
function loadPage() {
  for (
a=1a<25a++) {
    
makevar("ItemIcon_" a).destroy();
  }
  
this.itemssize clientr.items.size()-((this.page-1)*24);
  
temp.base = {21853};
  
temp.1;
  
temp.height temp.width 0;
  for (
temp.height=0temp.height<6temp.height++) {
    for (
temp.width=0temp.width<4temp.width++) {
      
with (new GuiShowImgCtrl("ItemIcon_" temp.i)) {
        
resize(temp.base[0]+(32*temp.width),temp.base[1]+(32*temp.height),32,32);
        
image "block.png";
        
Inv.addControl(this);
      }
      if (
temp.this.itemssize)
        
temp.i++;
      else
        break;
    }
  }

There's an icon in the top left corner and the the bottom left corner. o.0
Huh? How would the chat system be doing it?
__________________
Do it with a DON!
Reply With Quote