Everything posted by Flamezzz
-
Auto Quester - Do (some) Quests Automatically
Imo you should start by spending a week on building a global navigation system (teleports/spirit trees/fairy rings/etc). Once you have this, create abstract classes for dialogues and combat. Now for simplicity assume the user has everything in bank or inv. Once you have this adding new quests is just a matter of managing states, a few quest specific things and adding some edges to the GNS.
-
return true if any other player is on a certain tile
players.get(x,y).size() > 0
-
Drop 5 of a certain item
Smth like this? inventory.dropForFilter(item -> item.getName().equals("Item Name") && inventory.getAmount("Item Name") > 10); 10 can obv be replaced with getAmount-5 before you use this statement if you want
-
interact() returning true even though entity is not interacted with
I'd use something like: if floor = 1 then attempt to click ladder wait for a small amount of time if moving/animating then wait a little longer (LocalWalker#waitUntilIdle() or smth similar) As Mysteryy points out you shouldn't use a while loop. You want to do 1 action each time the onLoop method executes.
-
Return true if there are 10 dropped buckets on the floor
Or just: groundItems.filter(item -> item.getName().equals("Bucket")).size() == 10
-
New scripter says hello to OSBOT ;)
Well if it is any faster the speed improvement is negligible. The main advantage is that it's clean, and you can't really do anything wrong in this method as long as your filter is defined correctly (and of course interact works). In this case it doesn't really matter if you return a void or boolean, just did that because interact returns a boolean ^^
-
New scripter says hello to OSBOT ;)
You could use a filter, some info: http://osbot.org/forum/topic/71713-objectsgetint-int-and-grounditemsgetint-int-not-working/ What you're doing right now is get the closest sheep and then check if it meets a few requirements. You could do this using a filter like this (not tested): public boolean Shear() { if (myPlayer().isAnimating()) return true; Area SHEEP_PEN = new Area(3193, 3257, 3211, 3276); NPC sheep = getNpcs().closest( npc -> npc.getName().equals("Sheep") && SHEEP_PEN.contains(npc) && npc.hasAction("Shear")); return sheep != null && sheep.interact("Shear"); } You basically say give me the closest npc which: has the name "Sheep", is located in the SHEEP_PEN area and has an action "Shear". interact should then turn the camera if needed.
-
New scripter says hello to OSBOT ;)
Hi welcome and good luck! Your first script looks promising Alright, I briefly checked your script ;) First of all when you script it's important to use an IDE such as eclipse or IntelliJ IDEA. Using IntelliJ you can jump to the (decompiled) implementation of an API method, so you can actually see what it does. There's this line in your script: while (bank.isOpen()){ bank.close(); ... if we check the implementation, bank.close() already checks if the bank is open. I use this very often, perhaps it's useful for you as well to understand what exactly the api methods do. Arrays.asList(stairs.getDefinition().getActions()).contains("Climb-down") could be simplified into stairs.hasAction("Climb-down") You could also check out the doorHandler api, it most likely support gates. You specify what position you want to walk to and the doorhandler opens any doors/gates between the player and the target position. There are a lot of nested if statements :p I remember I did the same thing when I first started scripting. It's very difficult to debug, so you might want to avoid it ;)
- buying 5$ voucher for 07gp
-
Questions about Mirror Client
Can be done in advanced settings:
-
So who is Google Bot
The google web crawler? :p
-
Login and welcome screen messing up my script
You probably want to use one of the client methods: http://osbot.org/api/org/osbot/rs07/api/Client.html like client#isLoggedIn() or client#getLoginState(). Hmm in the welcome screen you're already logged in since it activates when client.isLoggedIn() && widgets.isVisible(378); You could also check for that widget (or specific colors) yourself.
-
Buy 2m fast - pp
I wasn't really serious, but this is great for my post count So if you wanna buy for 2/m add me Edit: this was not intended to boost my post count...
-
Buy 2m fast - pp
2 + fee and you go first, I don't trust cats
-
Buy 2m fast - pp
2.1 + fee Skype: flamezzztw2
- Private script
-
[WTB]Osbot Voucher + Vip
I can sell you a $5 voucher for 2.5m 07gp. Skype: flamezzztw2
-
Account Buying
There's a blacklist to prevent that. Apparently some people are willing to take the risks, let them :p
-
I cant get this out of my head!
So you just bother us with that... that... yeah I guess it's not that bad after all. Damn it.
-
Account Buying
I think you get some issues with paypal when you receive too many gifts The gp is usually sold to very trusted people, who have been in the business for a long time.
-
Account Buying
Well even if someone quits rs they can still sell the gp for $ to prevent paypal chargebacks. There are always risks involved when you buy an account, even when the email is changed and you know previous passwords etc. For goldfarmers its balancing the cost vs how much can you make with this account p/h, can I make profit after just a few days? For people actually playing the game and buying an account, and intending to keep the accounts longer, there's even a higher risk. I rather create my accounts myself and use services
-
Selling credits?
By using vouchers: http://osbot.org/forum/forum-227/announcement-44-voucher-guide-explanation/
-
[+85 FB] Questing, Defenders, Barbarian Assault, Void!
Order Form: Quests/Services you need: dragon slayer, fight arena, monkey maddness, fairy tale 1 Your Skype: flamezzztw2 Do you agree with my T.o.S: Yes
-
Running 2 PCs in the same house
Ye its the same ip. If you don't want a chain ban get a proxy for one.
-
Selling 2.3m for VIP membership in osbot
I can get you a $5 voucher for 2.3m. Skype: flamezzztw2