Thread: What is this array doing?

Results 1 to 7 of 7
  1. #1 What is this array doing? 
    Banned
    Join Date
    Aug 2010
    Age
    30
    Posts
    119
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    nvm delete
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2008
    Posts
    168
    Thanks given
    1
    Thanks received
    1
    Rep Power
    2
    One is the item ids in your inventory, one is their names. The method commented out counts how many of a certain item you have in your inventory.
    - Kyle / ToplessGrunt
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Quote Originally Posted by Toplessgrunt View Post
    One is the item ids in your inventory, one is their names. The method commented out counts how many of a certain item you have in your inventory.
    the itemsN is the amount of items in that slot. Not the name.
    Reply With Quote  
     

  4. #4  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,146
    Thanks given
    256
    Thanks received
    1,252
    Rep Power
    3714
    It's getting how much of 1 item you have in your inventory

    Example I have 27 godswords in my inv, it will return 27



    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Aug 2010
    Age
    30
    Posts
    119
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Toplessgrunt View Post
    One is the item ids in your inventory, one is their names. The method commented out counts how many of a certain item you have in your inventory.
    obv not their name , since its not a String array
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2008
    Posts
    168
    Thanks given
    1
    Thanks received
    1
    Rep Power
    2
    Oh my bad, lol. I don't know why I was thinking names
    - Kyle / ToplessGrunt
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Aug 2010
    Age
    30
    Posts
    119
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by 'Mystic Flow View Post
    It's getting how much of 1 item you have in your inventory

    Example I have 27 godswords in my inv, it will return 27
    Well , i was actually talking about the array playerItemsN[] , what the method did was pretty obvious , by debugging i have found that playerItemsN[] contains amount of item in a specific place in ur invo

    for example : if ur the 1st square of ur invo you've got 50 noted ags

    then playerItems[0] will be 11695
    playerItemsN[0] will be 50
    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

Similar Threads

  1. Array Help
    By TheRedArmy in forum Help
    Replies: 3
    Last Post: 04-26-2010, 03:01 AM
  2. array...
    By _slam in forum Help
    Replies: 0
    Last Post: 10-31-2009, 09:40 AM
  3. Replies: 4
    Last Post: 08-26-2009, 07:14 PM
  4. Placing an array into another array?
    By Meanz in forum RS2 Client
    Replies: 13
    Last Post: 05-26-2008, 05:28 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •