Thread: Send update items crash.

Results 1 to 4 of 4
  1. #1 Send update items crash. 
    Banned

    Join Date
    Nov 2013
    Posts
    270
    Thanks given
    107
    Thanks received
    76
    Rep Power
    0
    fixed
    Reply With Quote  
     

  2. #2  
    Banned Send update items crash. Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    had the same problem, let me see how you're sending the items on the interface
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Nov 2013
    Posts
    270
    Thanks given
    107
    Thanks received
    76
    Rep Power
    0
    Quote Originally Posted by lare96 View Post
    had the same problem, let me see how you're sending the items on the interface
    Code:
    public ActionSender sendUpdateItems(int interfaceId, Item[] items) {
    		StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(5 + (items.length * 7));
    		out.writeVariableShortPacketHeader(player.getEncryptor(), 53);
    		out.writeShort(interfaceId);
    		out.writeShort(items.length);
    		for (Item item : items) {
    			if (item != null) {
    				if (item.getCount() > 254) {
    					out.writeByte(255);
    					out.writeInt(item.getCount(), ByteOrder.INVERSE_MIDDLE);
    				} else {
    					out.writeByte(item.getCount());
    				}
    				out.writeShort(item.getId() + 1, ValueType.A, ByteOrder.LITTLE);
    			} else {
    				out.writeByte(0);
    				out.writeShort(0, ValueType.A, ByteOrder.LITTLE);
    			}
    		}
    		out.finishVariableShortPacketHeader();
    		player.send(out.getBuffer());
    		return this;
    	}
    Reply With Quote  
     

  4. #4  
    Banned Send update items crash. Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    the actual method where you invoke sendUpdateItems(...)
    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. [PI] *Updated* Items for Donators only
    By Linus in forum Configuration
    Replies: 37
    Last Post: 01-25-2011, 01:11 AM
  2. updating items and npc.cfg [emulous]
    By hellvgod in forum Help
    Replies: 0
    Last Post: 04-14-2009, 12:07 AM
  3. Weird... Update Items Weard..
    By Deviants in forum Help
    Replies: 2
    Last Post: 02-19-2009, 04:40 AM
  4. [508] Updated Items List.
    By Ensure in forum Configuration
    Replies: 2
    Last Post: 08-31-2008, 12:10 PM
  5. Newest Updated Item.Java for Miss Silabsoft
    By BLooDHounD in forum Tutorials
    Replies: 11
    Last Post: 09-16-2007, 02:36 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
  •