Thread: [z508] Items move up to top of inventory(508 loading 525 cache) [z508]

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [z508] Items move up to top of inventory(508 loading 525 cache) [z508] 
    Registered Member
    Join Date
    Apr 2010
    Posts
    76
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey guys, I have tried to fix this but I'm not sure how. Does anybody know how to fix this? Here is a small video of it happening.


    [Only registered and activated users can see links. ]


    Hope somebody can help me!
    All the best,

    Eldin
    Reply With Quote  
     

  2. #2  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,910
    Thanks given
    1,558
    Thanks received
    2,617
    Rep Power
    5000
    thats the way it shut be..
    Reply With Quote  
     

  3. #3  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    28
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    hmm what exactly is the problem???

    Moved it to the correct section btw.

    Reply With Quote  
     

  4. #4  
    Registered Member Marcus|fury upon u's Avatar
    Join Date
    Oct 2008
    Posts
    239
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Im guessing he wants them to stay in the same spot when u drink a pot etc.
    -----------------------------------------------------------------------
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2010
    Posts
    76
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I want them to behave like they do in real Runescape, and not move to the first available slot in my inventory.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2008
    Posts
    286
    Thanks given
    17
    Thanks received
    4
    Rep Power
    2
    Open your ItemOption1.java and add or replace:

    Code:
            case 387: // Unequip item.
                if (itemSlot < p.equipment.length && p.equipment[itemSlot] == itemId) {
                    if (!Engine.playerItems.addItem(p, p.equipment[itemSlot], p.equipmentN[itemSlot])) {
                        break;
                    }
                    p.equipment[itemSlot] = -1;
                    p.equipmentN[itemSlot] = 0;
                    p.frames.setItems(p, 387, 28, 94, p.equipment, p.equipmentN);
                    p.playerWeapon.setWeapon();
                    p.appearanceUpdateReq = true;
                    p.updateReq = true;
                    p.calculateEquipmentBonus();
                }
                break;
    If you get int errors, add above (under handlePacket):

    Code:
            int itemSlot = p.stream.readUnsignedWordBigEndianA();
            int interfaceId = p.stream.readUnsignedWord();
            int junk = p.stream.readUnsignedWord();
            int itemId = p.stream.readUnsignedWord();
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2010
    Posts
    76
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Nathan View Post
    hmm what exactly is the problem???

    Moved it to the correct section btw.
    It's supposed to stay in the same spot when you take off armor or drink potions rather then moving up to the first available slot in the inventory. Know how to fix this?

    Neelix, I did what you said and I got this error(s).
    Reply With Quote  
     

  8. #8  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    28
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    Quote Originally Posted by E L D I N View Post
    It's supposed to stay in the same spot when you take off armor or drink potions rather then moving up to the first available slot in the inventory. Know how to fix this?

    Neelix, I did what you said and I got this error(s).
    Post your ItemOption1 class via [Only registered and activated users can see links. ] please

    Reply With Quote  
     

  9. #9  
    Registered Member
    FuckThePolice's Avatar
    Join Date
    Feb 2009
    Age
    27
    Posts
    846
    Thanks given
    29
    Thanks received
    57
    Rep Power
    87
    Quote Originally Posted by Nathan View Post
    Post your ItemOption1 class via [Only registered and activated users can see links. ] please
    I have this same problem, i'm sure this is what his itemoption1.java looks like too

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Feb 2010
    Posts
    715
    Thanks given
    133
    Thanks received
    364
    Rep Power
    550
    ItemOption1 is irrelevant as unequiping directly should go to the first slot, for this problem you need the equipping packet class, which also includes 'passive' unequiping (replacing) and the itemselect packet class for potions etc
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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