Thread: Item won't equip because of different packetId

Results 1 to 3 of 3
  1. #1 Item won't equip because of different packetId 
    Registered Member

    Join Date
    Nov 2015
    Age
    24
    Posts
    1,980
    Thanks given
    334
    Thanks received
    1,051
    Rep Power
    5000
    So basically while I was rewriting the slayer shop interface class I came across this bug where it wouldn't allow me to equip a Full Slayer Helmet. A regular item would send packetId = 7(ACTION_BUTTON1_PACKET) for itemoption1 (it's 'Wear' most of the time) but the Full Slayer Helmet sends packetId = 103(ACTION_BUTTON2_PACKET). By putting this code under handleitemoption1 in InventoryOptions.java the option actually works so next I tried adding the wear() method with this but that wouldn't work either. A normal Slayer Helmet works perfectly fine just the Full Slayer Helmet doesn't for some reason.

    Code:
    case 15492:
    			if (item.getDefinitions().containsOption("Wear"))
    			    player.getPackets().sendGameMessage("works");
    			return;
    When I try to equip a normal Slayer Helmet:
    Attached image

    When I try to equip a Full Slayer Helmet:
    Attached image


    Solved it**
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Put it in handle item option 2 method
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Nov 2015
    Age
    24
    Posts
    1,980
    Thanks given
    334
    Thanks received
    1,051
    Rep Power
    5000
    Quote Originally Posted by Armo View Post
    Put it in handle item option 2 method
    My game message doesn't get sent if I do so and nothing else happens.

    Solved**
    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. Replies: 13
    Last Post: 11-07-2014, 02:31 AM
  2. Client won't load because of this error
    By geordie in forum Help
    Replies: 0
    Last Post: 09-14-2013, 07:25 PM
  3. Replies: 8
    Last Post: 04-20-2012, 12:00 PM
  4. Replies: 11
    Last Post: 06-27-2011, 05:37 PM
  5. Replies: 2
    Last Post: 09-15-2009, 08:15 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •