Thread: Examine NPC drops

Results 1 to 3 of 3
  1. #1 Examine NPC drops 
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    879
    Thanks given
    161
    Thanks received
    117
    Rep Power
    124
    Hi,

    I'm using this snippet [Only registered and activated users can see links. ] that shows NPC drops when you examine them.

    I copied it exactly, and double checked all the code.

    Code:
    java.lang.NullPointerException
    	at com.rs.game.entity.character.content.ViewNPCDrops.getSortedList(ViewNPCDrops.java:82)
    	at com.rs.game.entity.character.content.ViewNPCDrops.sendInterface(ViewNPCDrops.java:22)
    	at com.rs.network.decoders.handlers.NPCHandler.handleExamine(NPCHandler.java:64)
    	at com.rs.network.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDecoder.java:1819)
    	at com.rs.network.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.java:262)
    	at com.rs.network.ServerChannelHandler.messageReceived(ServerChannelHandler.java:116)
    	at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)
    	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
    	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
    	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
    	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351)
    	at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282)
    	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
    	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
    	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Reply With Quote  
     

  2. #2  
    zen2
    Corey's Avatar
    Join Date
    Feb 2012
    Age
    23
    Posts
    1,388
    Thanks given
    1,090
    Thanks received
    1,450
    Discord
    View profile
    Rep Power
    5000
    The code on line 82 of ViewNPCDrops.java is returning null
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    24
    Posts
    3,337
    Thanks given
    801
    Thanks received
    1,185
    Rep Power
    189
    Post your line 82 in ViewNPCDrops.java as that line in the post is on a line in which is a comment

    [Only registered and activated users can see links. ]
    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: 08-10-2017, 05:06 PM
  2. Replies: 7
    Last Post: 06-01-2017, 08:34 PM
  3. Adding NPC Drop's
    By newservermaker in forum Tutorials
    Replies: 4
    Last Post: 03-26-2008, 07:02 PM
  4. adding npc drops (the real noob way)
    By fabjan in forum Tutorials
    Replies: 9
    Last Post: 10-26-2007, 01:41 PM
  5. Npc drops change when...
    By Frozen in forum Tutorials
    Replies: 7
    Last Post: 09-30-2007, 04:05 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
  •