Thread: All Items Not Sellable To Shops

Results 1 to 6 of 6
  1. #1 All Items Not Sellable To Shops 
    Registered Member
    Join Date
    Sep 2008
    Age
    32
    Posts
    82
    Thanks given
    0
    Thanks received
    0
    Rep Power
    40
    How can I make it so that ALL items are unsellable to shops?

    In the item.java there is this to make certain items unsellable:

    itemSellable[6570] = false;

    It there any shorter way that i could make it so that all items are unsellable? Instead of doing it like this...

    itemSellable[6570] = false;
    itemSellable[6571] = false;
    itemSellable[6572] = false;
    itemSellable[6573] = false;...

    Will rep++ if someone has a way...

    Thanks.

    ~Comedy
    Reply With Quote  
     

  2. #2  
    `Zenzie
    Guest
    11000 = Amount of items there are ...

    Code:
    for ( int i=0; i<11000; i++ )
    {
         itemSellAble[i] = false;
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2008
    Age
    32
    Posts
    82
    Thanks given
    0
    Thanks received
    0
    Rep Power
    40
    OMG, i knew it was something like that if it works ill rep++!

    ~Comedy
    Reply With Quote  
     

  4. #4  
    `Zenzie
    Guest
    It has to work ... Its a loop ...
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2008
    Age
    32
    Posts
    82
    Thanks given
    0
    Thanks received
    0
    Rep Power
    40
    Thanks Your The Best =]

    ~Comedy
    Reply With Quote  
     

  6. #6  
    `Zenzie
    Guest
    Yw
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •