

xVirtus
Members-
Posts
73 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by xVirtus
-
Holiday Giveaway! 1B GRAND PRIZE, $100 OSBot Credits, 100M
xVirtus replied to Maldesto's topic in News & Announcements
good luck everyone! -
$1000.00 in OSBot Credit Holiday Giveaway
xVirtus replied to Maldesto's topic in Community Discussion
got a harddrive, thank u very much -
haha, basically i figured out that it would enter the last else if statement, before running the previous one when using else if, rather than if. I will try using your snippet later and see if it works the same. Then probrably keep using that later. Only been messing with this since last night, and already made a functioning kebab buyer with GE selling
-
if i exchange the if, if, if with if, else if, else if then it breaks the program
-
I did something sort of like this, and that worked and i finally figured out how to work the GE too, so my script is fully working right now. Dont know if i should release it or whatever, its still lacking stuff that could be improved, but it works. Buys kebabs untill out of cash in inventory then sells it on the GE This is what i ended up doing. Else-ifs were causing some errors, due to later statements would be executed out of order if (!getBank().isOpen()) { getBank().open(); if(!getInventory().isEmpty()) getBank().depositAll(); getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE); } if (getBank().contains("Kebab")) { getBank().withdrawAll("Kebab"); Sleep.sleepUntil(() -> !getBank().contains("Kebab"),5000); } if(getInventory().contains("Kebab")){ getBank().close(); } instasell("Kebab"); private void instasell(String item){ NPC geClerk = npcs.closest("Grand Exchange Clerk"); if (getInventory().contains(item) && geClerk != null && geClerk.interact("Exchange")) { Sleep.sleepUntil(() -> (getGrandExchange().isOpen()), 5000); } if (getInventory().contains(item) && getGrandExchange().isOpen()){ Sleep.sleepUntil(() -> getInventory().getItem(item).interact("Offer"), 5000); .....
-
ah of course, i'm a bit new to "async" programming like this botting API stuff, so i appreciate the help :). It does withdraw the kebabs without the GE code, which is why i was confused
-
I tried doing this if (!getBank().isOpen()) { getBank().open(); getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE); } else if (getBank().contains("Kebab")) { getBank().withdrawAll("Kebab"); Sleep.sleepUntil(() -> !getBank().contains("Kebab"),5000); } else if(getInventory().contains("Kebab")){ getBank().close(); } NPC geClerk = npcs.closest("Grand Exchange Clerk"); if (geClerk != null && geClerk.interact("Exchange")) { Sleep.sleepUntil(() -> (getGrandExchange().isOpen()), 5000); } else if (getGrandExchange().isOpen()){ getGrandExchange().sellItem(1971, 1, (int) getInventory().getAmount("Kebab")); Sleep.sleepUntil(this::canCollect, 5000); } But it still skips over the withdrawal of the kebabs from the bank. It seems to skip over the Sleep.sleepUntil(() -> !getBank().contains("Kebab"),5000); statement
-
of course, thanks for the help guys @BravoTaco my next line in the code was actually to wait untill the GE was open, but i chose not to include that part in the example just to make it a bit clearer, but i didnt have the interact call in the if statement
-
Hello, im quite new to writing these scripts, and just been messing with it this evening. I quickly stumbled into a problem when trying to script selling an item to the grand exchange, and i could not find any example on how to do this, so i experimented. My issue is, that an item does not get withdrawn from the bank properly, because of lack of sleeps or whatever, im not completely sure. if (!getBank().isOpen()) { getBank().open(); getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE); } else if (getBank().contains("Kebab")) { Sleep.sleepUntil(() -> (getBank().withdrawAll("Kebab")), 5000); getBank().close(); } NPC geClerk = npcs.closest("Grand Exchange Clerk"); if (geClerk != null) { Sleep.sleepUntil(() -> (geClerk.interact("Exchange")), 5000); } If i have the code above, the kebabs will not be withdrawn when i have the geClerk interact line. Without it, it gets withdrawn fine, but with that line, it skips over the withdrawal and instantly opens the GE window instead. Hope i explained my issue well enough, and someone can give a helping hand. (if anyone has a code snippet that just grabs whatever item in a Note and lists it on GE for insta-sell price then that would be perfect too)
-
i wholeheartedly support this cause
-
u sure about that, it should be one. imagine the answer when people ask how people met.
-
LUL 2nd tab
-
//bought
-
Selling 25m for $25 | Skrill | Paypal | UKBank |
xVirtus replied to mrNalbo's topic in Runescape 2007
Bought 30M cheers -
hate circlejerk 8)
-
loool thats pretty low of him ngl
-
did he literally scam 35m? lol
-
fuck off dude, prove urself not a scammer and u would be unbanned
-
Do you Agree to the terms of service?: Yes What is your skype name?: remaake Your Partners Skype name?: mrnalbo Type of trade?: paypal for 07gp Do you have me on Skype Already?: yes
-
we are not exactly on a forum that follows the rules, but i do agree that its a scummy thing.
-
Selling 25m for $25 | Skrill | Paypal | UKBank |
xVirtus replied to mrNalbo's topic in Runescape 2007
skype. will use sysm middleman -
weak admins? or just not enough proof