Everything posted by tivo444
-
Problem with NPC object?
Wow. Thanks! I can't believe I missed that.
-
Problem with NPC object?
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.
-
Any way to get NPC ID while in dialogue?
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.
-
Any way to get NPC ID while in dialogue?
Hello. Is there a way to get an NPC's ID while in dialogue with them? Or at least their name? Thanks
-
Is there a way to decrypt the NPC ID's?
Yes. There are atleast 10 different "Guards"
-
I can't get OSBot to print the name of this interface. Any help?
Ooohhhh you're right! Thank you let me try that!
-
I can't get OSBot to print the name of this interface. Any help?
It's now printing out: org.osbot.rs07.api.ui.RS2InterfaceChild@19a61368.txt
-
I can't get OSBot to print the name of this interface. Any help?
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.
-
Is there a way to decrypt the NPC ID's?
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
-
Is there a way to do this, with the current API?
I'm not quite sure how I would execute that. Where is it in the API?
-
Is there a way to do this, with the current API?
Is there a way that you can read text in the chatbox (When talking to an NPC). Like, if NPC says certain thing then, do this. Thanks.
-
I need a script to be made. I will pay.
Sorry, I didn't know.
-
I need a script to be made. I will pay.
I need a script made. I need it to, when I click Talk on an NPC, cycle through all the options, everything that the NPC could say, and print it out in a text file. I will pay if anyone is interested.
-
ChopEverywhere (+Firemaking) - Chop any tree on any location!
I'm looking through it now, to make sure it's clean.