

Supercharger
-
Posts
10 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by Supercharger
-
-
Hey Guys,
So haven't prorammed or scripted for a long time and excited to get back into it and learning it agian.
I want to implement a working GUI and I don't know how. I've made a good GUI with WindowsBuilder in eclipse but I don't know how to program it into make it work.. Would anybody be able to help me out?
Also,
http://osbot.org/forum/topic/60921-areapositionmyplayer/
I'm looking to add checking if the play is an area like this thread, but I'm curious to know how to I make the area like, what are the coordinates I see the Method as Area(Int, Int, Int, Int). How is that composed of? Like... What is the first, second, third, and fourth int?
-
read the jdocs for SimpleDataFormat#format and you'll see why. and the other method was just ugly
Got a link to the JavaDoc?
-
public void onMessage(Message m) {
@SuppressWarnings("unused")
NPC FishingSpot = npcs.closest(FISHING_SPOT);
if (m.getType() == MessageType.GAME) {
String c = m.getMessage().toLowerCase();
try {
if (c.contains("you catch a salmon.")
|| (c.contains("you catch a trout."))) {
fishCaught++;
} else if (c.contains("i can't reach that!")
|| (c.contains("I can't reach that!"))) {
state = "Can't Reach Object - Report to Supercharger...";
failed++;
FishingSpot = null;
}
} catch (Exception e) {
e.printStackTrace();
}
}
}So my OnMessage is working all correctly theres just one problem, If there is already that case in the chatbox even if the script hasn't started fishing yet it will still say that x amount have been caught. I know it's not a major issue but having false proggies is not something I want.Any suggests?cheers.
-
public static String timeFormat(long time) { StringBuilder t = new StringBuilder(); long total_secs = time / 1000L; long total_mins = total_secs / 60L; long total_hrs = total_mins / 60L; long total_days = total_hrs / 24L; int secs = (int) total_secs % 60; int mins = (int) total_mins % 60; int hrs = (int) total_hrs % 24; int days = (int) total_days; if (days < 10) { t.append("0"); } t.append(days).append(":"); if (hrs < 10) { t.append("0"); } t.append(hrs).append(":"); if (mins < 10) { t.append("0"); } t.append(mins).append(":"); if (secs < 10) { t.append("0"); } t.append(secs); return t.toString(); }
I'm using this method, but it's only showing H:MM:SS. How can I change it to HH:MM:SS?
I've tried numerous things and can't figure it out :X
-
Hey Guys,
Anyone help me out back to scripting after a few years and have forgotten a few things.
How do I get my run time in HH:MM:SS, atm it's like 23742384.
Cheers.
-
Hey Guys,
So I started 07 and I decided I would try and bot it but my problem is. I made my account linked to my rs3 account which is maxed and almost comped (all legit) and I was wondering if my 07 account gets banned will my rs3 account be banned?
I also wanted to ask how many hours a day are considered 'safe' to bot. And what my antiban options be set for in my account to be on the 'safer' side.
Cheers.
Gui & Area..
in Scripting Help
Posted
Thanks mate, now.. What about the GUI. You have any idea?