

Kenneh
Members-
Posts
218 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by Kenneh
-
This is what I use for my loading gif Also what the heck is this You have a folder that just has all the frames of the GIF in PNG format. As well as having the original gif in the client 2 times. In case you didn't know, you can load gifs natively with animation support by doing loading = Toolkit.getDefaultToolkit().getImage(new URL("https://copy.com/qbRyWbkx6KTa/loading.gif?download=1"));
-
I use it, it's trustable, and it loads movies from top rated torrents and downloads them while you watch the movie then deletes it all when it's over.
-
Clearly not as much as you did to get mod ;) ;) ;)
-
I joined in march Q_Q
-
I have a pretty large penis, where's mine?
-
Let's find out which are sensored. OSBuddy, Excobot, Advertising other bots isn't allowed., HexBot, *****, p****bot Those are all I know offhand xD
-
Most places don't care. OSBot is just afraid to lose what they have.
-
Well you did just ask for all your scripts to be removed from the sdn. You of all people should know how the administration works here. Nothing ever makes sense. It could be a messup, but I'll just wait for Alek's confirmation.
-
☑ rekt ☐ not rekt
-
Want a better one? Read thru the programming section ;)
-
It's extremely bland and doesn't fit in the current forum theme.
-
How to know when someone didn't read the thread Hopefully this will be fixed in v2. Edit; There isn't even an interactWithItem(), the Item class is literally useless
-
I understand that there is one in the inventory class, but that's pretty stupid considering that all the entities have interaction methods. package org.kenneh.scripts; import org.kenneh.api.script.PollingScript; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.model.Item; import org.osbot.script.rs2.model.NPC; import org.osbot.script.rs2.model.RS2Object; import java.awt.*; /** * Created by Kenneth on 5/1/2014. */ @ScriptManifest( name = "Test Script", author = "Kenneh", info = "For debugging purposes", version = 0.1 ) public class TestScript extends PollingScript { @Override public void onPaint(Graphics graphics) { final Graphics2D graphics2D = (Graphics2D) graphics; for(NPC npc : ctx.npcs.refresh().name("Chicken")) { if(npc != null && npc.isVisible()) graphics2D.draw(npc.getPosition().getPolygon(ctx.script.bot)); try { npc.interact("asdfasdf"); } catch (InterruptedException e) { e.printStackTrace(); } } for(RS2Object obj : ctx.objects.refresh().name("Sack")) { if(obj != null && obj.isVisible()) graphics2D.draw(obj.getPosition().getPolygon(ctx.script.bot)); try { obj.interact("asdfasdf"); } catch (InterruptedException e) { e.printStackTrace(); } } for(Item item : ctx.inventory.refresh().name("Feather")) { item.interact("asdfasdf"); // Okay, there is literally no reason for this not to exist. } } @Override public void start() { } @Override public int poll() { return 50; } }
-
Annnnd this is why osbot api is shit.. public Npc[] attackableNpcs(String... names) { final List<Npc> npcList = new ArrayList<Npc>(); final Player local = ctx.players.local(); final Filter<Npc> npcFilter = new Filter<Npc>() { @Override public boolean accept(Npc npc) { return npc.animation() == -1 && !npc.inCombat() && !npc.interacting().valid() && Arrays.asList(npc.actions()).contains("Attack"); } }; final Comparator<Npc> npcComparator = new Comparator<Npc>() { @Override public int compare(Npc o1, Npc o2) { return (int) o1.tile().distanceTo(local) - (int) o2.tile().distanceTo(local); } }; for(Npc npc : ctx.npcs.select().select(npcFilter).name(names).sort(npcComparator)) { npcList.add(npc); } return npcList.toArray(new Npc[npcList.size()]); } looks so much better and neater.
-
Thought you were gonna link this http://www.youtube.com/watch?feature=player_embedded&v=6jUG1PfmmTA
-
does that look like a bit field to you?
-
Don't get your hopes up.
-
Plural enums really bother me. I just think they look weird.
-
Enums shouldn't be plural. Number.FIVE vs Numbers.FIVE
-
I just noticed in your example enum, you've capitalized Ten, but not the rest of the numbers. my OCD is killing me.
-
I try. Like, I really try sometimes. I considered coming to osb and making scripts but every time I do, I remember that the API just terrible and I literally have to re-write everything myself. I get about halfway done with writing some usable API I realize that it's just not worth it and trash my project. Who are one and two? I shall kill them!
-
You're calling me an ungrateful prick for something I'm never going to use. I help people out on this forum from time to time but it's hardly worth it. This community isn't really advancing so why bother.
-
code looks shitty as fuck. btw what's a looting bag and how do you get one?