Jump to content

Merccy

Members
  • Posts

    164
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Merccy

  1. Thank you . Hopefully OSBot will implement this soon™
  2. Hello, This snippet is for people that want to interact easily with shops (like a general shop, runes shop, etc...). The commands are very similar to bank and to start of you import the source/jar and make a new shop: Shop s = new Shop(this); // This must be a script object so your main file does fine! if (s.isOpen()){ // And close the shop immediately s.close(); } As you can see the isOpen method is there just like the one in the bank class. Next you can get a ShopItem by using this methods: ShopItem[] allItems = s.getAllShopItems(); ShopItem itemSlot4 = s.getShopItem(4); //4 is the slotID you can debug that by using the store debugger ShopItem hammer = s.getShopItemByName("Hammer"); // Wont break on patches ShopItem byId = s.getShopItemByID(123); // You can use it if you want but you should prefer ByName And for the final part you can interact with the shop items. itemSlot4.value(); // Wont return a value you must catch it in your onMessage(String s) itemSlot4.buy1(); hammer.buy5(); byId.buy10() int amountOfHammers = hammer.getAmount(); String hammerName = hammer.getName(); int hammerId = hammer.getID(); int hammerSlotID = hammer.getSlotID(); // You can also get the slot rectangle if you need it for painting: Rectangle rect = hammer.slot; Now you can buy stuff from the store! Remember: the ShopItem won't update you need to refresh it everytime by using hammer = s.getShopItemByName("Hammer"); (for example) There are also a few commands you can use for the shop like getting the shopname: // First check if the shop is open s.updateShopName(); s.updateInstructions(); String shopName = s.getShopName(); String instructions = s.getInstructions(); Screens (using the ShopDebugger): Download (jar): http://uppit.com/v6mr2nxmamsm/Shop.jar Source (pastebin): Shop.java: http://pastebin.com/1ud3N67r ShopItem.java: http://pastebin.com/5aNZZXkJ If you use the source then make a new package called com.merccy.Shop and place the Shop.java and ShopItem.java there! Download ShopDebugger (jar): http://uppit.com/68erm8t8a9bh/ShopDebugger.jar Credits: Jelknab - Gave me his debugger which contained the search for item loop (which I modified) XavierM - Told me that you would just have to use the x/y for clicking the items. Goodluck
  3. Just a note here this isn't allowed by Jagex too
  4. Funny that the things you listed here are also true if we are talking about you: 1) Grow up and learn that not everything is about money 2) Yup I'm not a native speaker but at-least my pronunciation is a bit better and I can quote a message from you aswell: "First of Grow up" 3) Get some respect for people: You must earn it and money hungry people like you don't deserve it. 4) Java conventions, sorry that I don't code in Java normally but luckily eclipse will take care of it. By the way, your conventions aren't right either so please shut up. Why would you add a fifth point if the only thing you type is ...
  5. So you are an liar? But you can tell the truth about me because I don't really care what you say about me. Oh so you said it was better maybe not but it is? "So much code for a simple checker xD You can do it with half the code." Edit: Please continue this with private messages
  6. So what? Im not talking about my code and never said that was perfect. Tyluur just said the truth but you can't deal with it and must complain about his code.
  7. So your other code was generated?
  8. No man let's share some shitty code that will people teach them things wrong and how they shouldn't share good code.
  9. Currently updating ;) Wait 2 minutes and there is a new version.
  10. Alpha why? You can just use this.openTab(Tab.XXX);
  11. Can you report the code with new lines please
  12. If you need help implementing then just send me a PM . Don't feel like making that tutorial now. But what I do for my scripts is add the AIOWalker.jar as an Referenced library (just like osbot) and then use Fat Jar (Eclipse plugin) to export my project + the jar. Screenshot:
  13. Cyro, I didn't make that on purpose because I had that earlier but in most cases it got even bugier . I released V1.1 If you set the door distance bigger you will get the effect that you want (probably).
  14. Warfront that is a great idea. I don't have problems with random door opening, just make sure your path is 2 tiles away from a door . You can also change that value. It is approx. at line 53
  15. 9001/10 Too much swag for me to handle
  16. Or this: http://osbot.org/forum/topic/6283-aio-walking-class-doenst-glitch-on-break/
  17. Merccy

    SDN scripts

    That is why you post it in Local scripts until it is verified.
  18. What do you mean with rsbots? I like your walking script too ;)
  19. LOL'd. People don't play Syndra often because there are better champions with the same purpose. Bursting someone. Lux for instance can do everything what Syndra can but better.
  20. You can't report someone for not being good or having a bad game. That kassa had 21 assists and you? 6. Maybe you stole 15 kills of kass. Who knows? Just don't blame 1 person for the game.
×
×
  • Create New...