-
Posts
305 -
Joined
-
Last visited
-
Feedback
100%
Posts posted by KMJT
-
-
inb4 drama =D
-
1
-
-
Just converted one of my smaller scripts - Tutorial island script - for OSBot 2. Took me about several hours to get a hang of the API. Another several to actually change the code. Now, after all this time, I run the script to see how it runs. I seriously was naive enough to believe it would run.
Well, it doesn't.
ColorPickers method, isColorAt() - http://osbot.org/osbot2_api/org/osbot/rs07/api/ColorPicker.html
Does not work (throws more nullpointers then me searching for my biological parents).
java.lang.NullPointerException at org.osbot.rs07.api.ColorPicker.isColorAt(jf:41)
My script is entirely based on ColorPicker.I use ColorPicker for my tutorial script too
Not looking good for us lol
-
Gotta love ColorPicker =D
-
Cool script
-
-
what bot are you using
Huh? It is a method in MethodProvider class
-
searchInterfacesForText(String) is broken. Any plans for fixing it?
-
getMessage(), searchInterfacesForText(String text), etc are all broken.
You're correct when saying that the hook is broken.
It's not broken on all situations, I know that much. Example: "Click here to continue" returns fine.
You won't be able to check based on the text.
You can try to find a specific interface parent/child to look for.
Probably going to have to focus on the parent/child ID's of the "Click here to continue"
If you're selecting a chat option, the interfaces should still be available for each one.
If there are not options for specific chat actions, you can just use continueDialogue(), which will return true if the "Click here to continue" is available, false if it is not there.
You can use isInDialogue(), but this only works in the dialogues where the NPC is saying something to you, I believe.
If you can tell me one thing, I may be able to suggest a course of action.
Are there any conversation instances where you select an option of chat?
Example:
NPC says "Can you take the quest?"
>click "Click here to continue"
>4 options come up
"That's much too scary for me!"
"I can take the quest."
"Your face is ugly."
"Thanks!"
If any of these situations happen, let me know so I can more accurately give advice. ^.^
Yes, there are times during the chat where I need to choose from a number of options (for example, 4 different choices). It is not all just a "click here to continue" chat. Cheers.
-
When you search for the string it's case sensitive and you have to include the punctuation, have you tried that?
Yes, it is the exact case sensitivity and punctuation.
I still don't see any way in the API to confirm that certain text is in the npc chat interface. I debugged the interfaces in game and even when I hover over the text sentence, it does not highlight, making me believe it isn't even hooked? Before I remember when I hovered over the sentences, they would highlight. For example, the first sentence is 0, 2nd is 1, and so on. This is how I used to confirm text in an interface. But now I can't even do that? No clue what to do.
-
Looking for help still
-
Assumed we were talking about ingame here
my bad
Yeah I am talking about the npc chat interface, my bad probably should have made it more clear
-
I think it has been broken for almost a week
Refer to this thread, Divinity says the orb is broken:
http://osbot.org/forum/topic/49852-is-setrunningtrue-broken/
-
Yes using setRunning(true) with orbs is broken, the hooks will be updated in the next release as for the moment just turn the orbs option off and it will work as normal or alternatively interact with the interfaces using your own method.
What are orbs? >.<
-
This is the method I used to use with no problem but lately it does not seem to work anymore:
private boolean isTextInOpenInterfaces(String message) { return searchInterfacesForText(message) != null && !searchInterfacesForText(message).isEmpty(); } It is returning false even when the String is clearly in the chat interface. It was working fine before for months.
-
1
-
-
This is from non-osbot2 api. Is setRunning(true) broken? If so are there any plans to fix it?
This does not turn run on, just spams before and after:
public int onLoop() throws InterruptedException { log("before"); setRunning(true); log("after"); return 50; }
-
Just had the same issue. Instantly fixed it.
Go to users/yourname/OSBot
Delete the OSBot folder. Then reload 1.8.7
This worked for me.
-
-
Just a simple tool for bank sales.
As example:
You advertise ON YOUR OWN for a bank sale,
when you get traded, you run your script and it moves all items but gold that you have in your inventory
into the trade.
So literally all you want is a script that when you are in trade, you start the script, and it puts everything in your inventory into the trade, then stops?
-
No complaints from me as long as the current scripts work flawlessly on there.
-
-Fight cave for fire cape.
-Barbarian assult (torso mode and so on)
-Farming script with alch/fletch support
- What i would love to see -> all in mover (moves all items in inventory into the trade, very usefull for bank sales)
Good luck with your project
Can you elaborate on the thing that moves all items in inventory?
-
Barbarian assult.
Never played the minigame. What kind of stats would I need?
-
Hello. Looking for a new project.
- Nothing like quests
- Nothing that is already clearly out (if there is already a "blast furnace" script for example, not going to create another one unless it is outdated)
-
Good luck, definitely not an easy thing in terms of time investment
-
What is your problem exactly? Unless i'm wrong.. the picture looks like old school runescape? In which case for every new account they make they have to waste their own money. If this is your way of asking what to do about it -- you can always get a scripter to make you a spam kicker script.
Swift - take over Objective-C?
in Software Development
Posted
I am excited, even though I don't mind objective c. Constantly switching between .h and .m in Xcode gets annoying sometimes though and it looks like with Swift there is no .h and .m.