Jump to content

tivo444

Members
  • Posts

    26
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

tivo444's Achievements

Bronze Poster

Bronze Poster (2/10)

2

Reputation

  1. Wow. Thanks! I can't believe I missed that.
  2. Hello This is probably just a dumb error on my part, but for some reason, this NPC object isn't working correctly. Here's my code: package nodes; import core.Node; import org.osbot.rs07.api.filter.Filter; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; /** * Created by ___ on 3/28/2016. */ public class Finding extends Node { NPC npc; NPC previous_npc; public Finding(Script script) { super(script); } public String status() { return "Finding new NPC to chat with..."; } /** * This method checks to make sure the conditions are true, if they are, it will start * the Finding node. (Located in the execute() method. * @return if the conditions are met or not. * @throws InterruptedException */ public boolean validate() throws InterruptedException { if (!script.getDialogues().inDialogue()) return true; return false; } public boolean execute() throws InterruptedException { npc = npcs.closest(new Filter<NPC>() { @Override public boolean match(NPC npc){ return npc != previous_npc && npc.hasAction("Talk-to"); } }); if(npc != null){ npc.interact("Talk-to"); } return true; } } I get an error on this line: npc = npcs.closest(new Filter<NPC>() { With "npcs" saying: Cannot resolve symbol: 'npcs'. I'm not sure why it isn't working, it has worked for me all other times. Any help would be appreciated. Thanks.
  3. Yes, but that's the problem. I don't know how to check the NPC ID. Also, the API is down for me, so I can't look it up.
  4. Hello. Is there a way to get an NPC's ID while in dialogue with them? Or at least their name? Thanks
  5. Yes. There are atleast 10 different "Guards"
  6. It's now printing out: org.osbot.rs07.api.ui.RS2InterfaceChild@19a61368.txt
  7. Hello. I'm trying to make it print the interface name In this case, the title of a quest. I want it to print out to a text, QUESTNAME.txt (Black Knight's Fortress.txt, Dragon Slayer.txt) etc; It only prints out as ".txt" However, the code doesn't seem to work. Even though it should. the parent and child ID's are all correct, the interface ID is correct. Why isn't this working? Thanks.
  8. Hello. I noticed that Jagex randomized the NPC ID's. No NPC's ID is what they should be. Is there any way to get the real ID of the NPC? Thanks
×
×
  • Create New...