Thread: Little Help please

Results 1 to 6 of 6
  1. #1 Little Help please 
    Registered Member
    Join Date
    May 2011
    Posts
    13
    Thanks given
    3
    Thanks received
    0
    Rep Power
    29
    It happens whenever i click a npc.
    I can post whole methods if wanted. Please

    Code:
    [00:00:12]: java.lang.NullPointerException
    [00:00:12]: 	at com.rs2.content.dialogue.dialogueHandler.sendNpcChat(dialogueHandler.java:376)
    [00:00:12]: 	at com.rs2.content.dialogue.impl.Banker.sendDialogue(Banker.java:15)
    [00:00:12]: 	at com.rs2.content.dialogue.dialogueHandler.sendDialogue(dialogueHandler.java:41)
    [00:00:12]: 	at com.rs2.content.WalkToNPC.startTask(WalkToNPC.java:132)
    [00:00:12]: 	at com.rs2.content.WalkToNPC.loop(WalkToNPC.java:57)
    [00:00:12]: 	at com.rs2.content.actions.ActionManager.processActions(ActionManager.java:93)
    [00:00:12]: 	at com.rs2.Process.run(Process.java:69)
    [00:00:12]: 	at java.lang.Thread.run(Unknown Source)

    Code:
    	public void sendNpcChat(String line1, int emotion) {
    		int id = player.getClickId() > Constants.MAX_NPCS ? 494 : player.getClickId();
    		NPCDefinition def = World.getDefinitions()[id];
    		String npcName = def.getName();
    		player.getActionSender().sendDialogueAnimation(4883, emotion);
    		player.getActionSender().sendQuest(npcName, 4884);
    		player.getActionSender().sendQuest(line1, 4885);
    		player.getActionSender().sendNPCDialogueHead(player.getClickId(), 4883);
    		player.getActionSender().sendInterface(4882);
    	}
    Code:
    			case 1 :
    				player.getDialogue().sendNpcChat("What can I do for you?", player.getDialogue().CONTENT);
    				player.getDialogue().setNextDialogue(2);
    				break;
    Code:
    		case 495:
    				Banker.sendDialogue(player, 1);
    			break;
    Code:
    			case 495:
    				client.getDialogue().sendDialogue(495, 1);
    				break;
    Code:
    		if (atDestination(currentAction.getClient())) {
    			startTask(currentAction.getClient());	
    			stop(currentAction);
    			return;
    		}
    Code:
    			case LOOPING:
    				task[currentAction.getSkill()].loop(currentAction);
    				break;
    Code:
    				ActionManager.processActions();
    getName method in npcdef if you need it.
    Code:
    	/**
    	 * Gets the npc name
    	 * 
    	 * @return
    	 */
    	public String getName() {
    		return this.name;
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2012
    Posts
    749
    Thanks given
    5
    Thanks received
    1
    Rep Power
    10
    which npc? bec. if its the old man with the blue phat i always d/c when i click him for some reason lol looks like the banker tho?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2011
    Posts
    13
    Thanks given
    3
    Thanks received
    0
    Rep Power
    29
    Yes its a banker id 495
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2011
    Posts
    13
    Thanks given
    3
    Thanks received
    0
    Rep Power
    29
    Anybody have a idea?
    Reply With Quote  
     

  5. #5  
    Spoonfeed Me Bitch
    AddictivePkz's Avatar
    Join Date
    Jun 2012
    Age
    28
    Posts
    733
    Thanks given
    79
    Thanks received
    51
    Rep Power
    0
    Try using a different banker id
    Quote Originally Posted by Fakeblitz View Post
    What does [PI] mean? (sorry i am used to 503+)
    And what base is this?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2011
    Posts
    13
    Thanks given
    3
    Thanks received
    0
    Rep Power
    29
    Quote Originally Posted by AddictivePkz View Post
    Try using a different banker id
    Same exception happens.
    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

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