Jump to content

Czar

Discord Helper
  • Posts

    20477
  • Joined

  • Last visited

  • Days Won

    1774
  • Feedback

    100%

Everything posted by Czar

  1. Gjdm ! Can you put the price of the script on the script browser so that the user can compare prices please EDIT: Damn man the client looks better, such small detail made the client look completely new
  2. In your onStart method, make sure to activate the listener by doing getBot().addMessageListener(this); Then it will start listening for messages
  3. Strange.. banking works perfectly fine for me.
  4. Any details on the ret pally? Pvp or pve and ilvl ? USA/ EU ?
  5. If you are truly stuck, there's a trick to achieving strokes and shadows in paint without any fancy stuff by drawing the text with the stroke color, then drawing the text again with a different color on top of it. Usually, for shadows I just draw the text again with an offset of 1 pixel, so: String msg = "Hello"; int x = 15, y = 15; g.setColor(Color.BLACK); drawString(msg, x + 1, y + 1); g.setColor(Color.RED); drawString(msg, x, y); Thats for a basic shadow, however if you want a full stroke (like you mentioned in your thread) you must make additions to the above code so that it draws in every direction, not just + 1, example drawString(msg, x + 1, y + 1); drawString(msg, x, y + 1); drawString(msg, x + 1, y); however, from the looks of it, its drawing too many strings! So only use this if you are hopeless, it's really not that bad but its better than nothing.
  6. int x = 999; int y = 999; setLocation(x, y); Fill in the X and Y according to Swizzbeat's post
  7. Bot busting moderate is a temporary 2-day ban. It is extremely unwise to bot again after having a temporary ban. EDIT: And bot busting major is a permanent ban, you can appeal but they don't read it
  8. Czar

    CzarRangingGuild

    You have been unlucky, unfortunately. The anti-ban is not 'extremely lousy', it is, as I have explained, the best antiban for this type of script. EDIT: Thanks everybody else for the support I'm glad you enjoy the script.
  9. Yess, very good idea for updates Can you add quests to this list so it doesn't check the quest tab for completed quests too?
  10. Daaaaamn GJ alek! I was expecting 2.3.X like next month or something, nice speed
  11. Czar

    OSBot name

    getBot().getUsername(); Maybe, I haven't checked
  12. gjdm, but what was the interface update? was it the one I talked about earlier about the lines and stuff?
  13. Czar

    CzarRangingGuild

    Ah unlucky, which other scripts did you use?
  14. If you need any more help just pm @OP remove the client. So its just this.getInventory() because in osbot2 they changed it around. Client. Is just for old osbot.
  15. Did somebody say... Counter strike? 1v1 me pls
  16. If inventory isn't full, drop? Remember to remove the ! before the boolean (it was !isEmpty now !isFull) they are opposite so it should be if (getInventory().isFull()) Or is the isFull causing an actual error?
  17. 1) Don't generate jar files while testing a script, you should do that in the end, otherwise you must restart etc. What I do, is just make your project folder on Users/OSBot, and change your output folder to OSBot/scripts, so all the .class goes there and you can just save script on your ide, and refresh scripts on OSBot and you don't have to restart client every time you make an update 2) A trade request is a message, so you must add a messagelistener to your script by doing the following; put this in your onStart method: getBot().addMessageListener(this); and then add the overriden method onMessage(Message m) the message will be String msg = m.getMessage(); and to check if its a trade, just do m.getMessageType(), which is an enum and contains RECEIVE_TRADE (in your case) As for the last question I've never handled trading in a script so I'm unable to assist you there, but there's an open source merching bot (which handles trades) in the snippet section iirc.
  18. public NPC getTarget(final String npc) { return getNpcs().closest(new Filter<NPC>() { public boolean match(NPC n) { if (!n.getName().equalsIgnoreCase(npc)) { return false; } if (n.getInteracting() != null) { return false; } return true; } }); } You can use a Filter<> to to find the best npc, in this case it's the npc which isn't interacting with anything, and is called whatever you put in the getTarget method, so: NPC guard = getTarget("Guard"); if (guard != null) { // attack } And it will attack every NPC with the name 'guard', also, try to use names instead of IDs when it comes to npcs and objects, since the IDs can change from time to time. You can greatly expand on the filter by adding more stuff like getMap().canReach for extra failsafes etc. As for the camera movement, the while() is unnecessary because you are already checking if its visible.
  19. Czar

    Disabling anti ban

    EDIT: Thought he meant for other scripts.
  20. Damn nice, but does it run OSBot?
  21. Mine: Called Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep Sleep public boolean contains(int i) { System.out.println("Called"); return true; } public void check() { if (contains(0)) { for (int i = 0; i < 100; i++) { System.out.println("Sleep"); } } } Yours Called Sleep Called Sleep Called Sleep Sleep Called Sleep Called Sleep Called Sleep Called Sleep Called Sleep Called Sleep Called Sleep Called Sleep Sleep Called public boolean contains(int i) { System.out.println("Called"); return true; } public void check() { for (int i = 0; i < 100 && contains(0); i++) { System.out.println("Sleep"); } } Hypothetical, but yeah.
×
×
  • Create New...