Everything posted by Flamezzz
-
Need help with my first script.
The chatbox has a private chat option
-
Need help with my first script.
Hey I can help you out, not on skype but you can find me in the chatbox
-
Is using the mirror client a "must"
Yes it's vip only. For public scripts it looks like it reduces ban rates.
-
Interacting with widget menu?
Well... for me it seems to work just fine lol As for the interaction. This widget doesn't seem to support that. So you could just use widget.hover(), mouse.click(true) and check if the menu (there's a menu api) is open, if it's open use menu.selectAction("action").
-
Enter Amount boolean snippet
if(widgets.get(162,32) != null && widgets.get(162,32).isVisible()) { keyboard.typeString("something", true); }
- LoL EUW Unranked (S4 Plat IV) only 6m 07
- LoL EUW Unranked (S4 Plat IV) only 6m 07
-
Message Listener
implement MessageListener and define the listener method class ... extends Script implements Painter, MessageListener public void onMessage(Message m) { if(m.getType().equals(Message.MessageType.GAME)) { // game message } if(m.getType().equals(Message.MessageType.PLAYER)) { // player message } }
-
Interacting with NPC's menu items?
Alright so once you interact with the guy, a widget pops up, you can use the widgets api to interact with that thing. In the bot client, check settings->debug->widgetdebugger to find the widget ids hint: use widgets.get, widgets.isVisible and widgets.interact to program the interaction Good luck, if you can't find the ids or smth feel free to post here or pm me and I'll visit the saw-mill guy to help you out
-
General suggestions.
Yes keep in mind that auto checking scripts for malicious code is impossible, since it's difficult to define malicious in this context. As for global 'walking', probably 5-10 people have this at least partially implemented atm for the osbot api. Would be nice if we could merge those systems into a decent api, but it's not a priority. Global 'walking' is only needed for complex scripts, and the scripters who are able to write such complex scripts should have no difficulty implementing global 'walking'. It would take a lot of time to fully implement global navigation and maintain it...
-
scripts wont work
Looks like another widget bug introduced in the resizable update. Notify the script developer, the script dev should post a bug report or fix it if it's not an api issue.
-
Simulate focus in your scripts the easy way
"Focus can play a very important factor in your script; it could be the difference between a ban or not." Is this an assumption or have you actually put this to the test?
-
Clicking by inventory slot number
Hmm... I think you could do this mouse.move(inventory.getMouseDestination(SLOT_ID)); mouse.click(false);
-
will anyone?
As in, I'd rather allocate the resources for my bot farm. Resizable seems to use 1.5-2x cpu power for me.
-
will anyone?
No, waste of cpu. When I play legit I play on multiple accounts at the same time anyway so its not really useful for me.
-
Get the fonts used in RS?
But not a check for e.exists(), which might be an issue in the first while loop :p
-
Get the fonts used in RS?
I love the missclicks You know your script is well written once it can handle missclicks. imo it doesn't missclick that often. Just look up the current implementation and try to 'improve' it, no need to do fancy stuff with fonts you got all the widget sizes.
-
random breaks
So while this happens, is onLoop still being called? If this is the case, it's your script. If not, and you have no while loops, some API method is most likely blocking. The only method im aware of which may do that is localwalker#walk. It shouldn't be difficult to check where it goes wrong if you just add a shitload of log messages.
-
Hovering entity's option
Nice snippet For moving the mouse inside the rect you might wanna use MouseEvent me = new MoveMouseEvent(new RectangleDestination(bot, menu.getOptionRectangle(idx))); that's what Menu#selectAction does (EDIT: might be better considering the upcoming resizable stuff )
-
Get the first option of a context menu?
you could use position.interact(bot, "Walk here")
-
Is it possible to drop inventory or items really fast?
http://osbot.org/forum/topic/70076-mousekeys-like-mouse-movement/
-
getModel().getArea doesn't work correctly
GraphicsUtilities#drawModel?
-
isAttackable()
in isMultiCombatArea() it returns health of npc > 0 else it returns not(npc is under attack) or npc interacts with myplayer and health of npc > 0
-
Is it possible to check if a grounditem is dropped by me?
Highly doubt it, what's wrong with storing dropped items in a list?
-
GE Selection
Is selecting an item at position 2 an issue? RS2Widget geSearchItemsMain = widgets.get(548, 125); for(RS2Widget item : geSearchItemsMain.getChildWidgets()) { if(!item.getMessage().equals("")) { log(item.getMessage() + " - " + item.getRootId() + ":" + item.getSecondLevelId() + ":" + item.getThirdLevelId()); } } -> [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age amulet - 548:125:1 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age bow - 548:125:4 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age cloak - 548:125:7 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age full helmet - 548:125:10 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age kiteshield - 548:125:13 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age longsword - 548:125:16 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age mage hat - 548:125:19 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age platebody - 548:125:22 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age platelegs - 548:125:25 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age range coif - 548:125:28 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age range legs - 548:125:31 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age range top - 548:125:34 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age robe - 548:125:37 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age robe top - 548:125:40 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age vambraces - 548:125:43 [iNFO][bot #1][05/26 01:43:29 PM]: 3rd age wand - 548:125:46 items are at interface 548:125:(1+3p)