Thread: Switching (Item Switching)

Results 1 to 5 of 5
  1. #1 Switching (Item Switching) 
    Registered Member
    Join Date
    May 2014
    Posts
    44
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hi!

    I am using the old method of switching, I just want my users to be able to switch, I don't care how the method, I just want them to be able to do it.

    This is my method

    http://www.rune-server.org/runescape...switching.html

    However I get an error on:

    public void messageReceived(IoSession arg0, Object arg1) throws Exception {
    if (arg0.getAttachment() != null) {
    Packet packet = (Packet)arg1;
    Client client = (client) arg0.getAttachment();
    if(packet.getId() == 41) {
    client.timeOutCounter = 0;
    client.wearId = packet.readUnsignedWord();
    client.wearSlot = packet.readUnsignedWordA();
    client.interfaceId = packet.readUnsignedWordA();
    client.getItems().wearItem(client.wearId, client.wearSlot);
    } else {
    client.queueMessage((Packet) arg1);
    }
    }
    }
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Nov 2012
    Posts
    1,094
    Thanks given
    173
    Thanks received
    136
    Rep Power
    0
    It might be that your wearitem method is called something else, check in item assistant or something.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2014
    Posts
    379
    Thanks given
    31
    Thanks received
    77
    Rep Power
    0
    Sean is da helpfull in coding
    Reply With Quote  
     

  4. #4  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    This instant switching causes random client crashes.
    Attached image
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Nov 2012
    Posts
    1,094
    Thanks given
    173
    Thanks received
    136
    Rep Power
    0
    Quote Originally Posted by Zee D View Post
    Sean is da helpfull in coding
    Far from it lol, I don't know shit
    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. 508 Item switching
    By MudkiepWarrior in forum Requests
    Replies: 9
    Last Post: 12-01-2010, 03:36 AM
  2. Proper Item Switching (Equipment)
    By Sanity in forum Show-off
    Replies: 21
    Last Post: 10-23-2009, 06:44 AM
  3. Replies: 0
    Last Post: 08-31-2009, 07:45 PM
  4. Item Switching = 1hit ko?
    By myK- in forum Help
    Replies: 11
    Last Post: 05-29-2009, 05:45 PM
  5. [525]Switch items
    By Sean in forum Snippets
    Replies: 11
    Last Post: 05-25-2009, 10:44 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
  •