Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Working on a construction bot.

Joined
Jan 13, 2016
Messages
116
Hallo,

I am new with writing a bot. but i going to try it anyway. i have a small set up:

public void onLoop() {
if (atCastleWarsBank()){
if (canTeleportToHouse()){
teleportTohouse();
}else {
if (Bank.isOpen()) {
Bank.withdraw(Oak plank, 28);
}else {
openbank();

i want to make oak larders with this. But i dont know how to make oak larders and remove it again. and make it 3 times when out of oak planks. would some one help me?
 
Joined
Jan 8, 2015
Messages
1,427
Goodluck man, perhaps you can check if interface is open and the larder is made to remove it and otherwise to make it.
 
Joined
Dec 10, 2014
Messages
3,255
Hallo,

I am new with writing a bot. but i going to try it anyway. i have a small set up:

public void onLoop() {
if (atCastleWarsBank()){
if (canTeleportToHouse()){
teleportTohouse();
}else {
if (Bank.isOpen()) {
Bank.withdraw(Oak plank, 28);
}else {
openbank();

i want to make oak larders with this. But i dont know how to make oak larders and remove it again. and make it 3 times when out of oak planks. would some one help me?
You'll mainly need to get 2 things:
- Get the GameObject of the building spot.
- Get the interfacecomponents of the building interface.

If the building spot has the larder, remove it.
If there is no larder there, make the larder.

Not entirely sure what you mean by "make it 3 times when out of oak planks".
 
Joined
Jan 13, 2016
Messages
116
its harder then i thoughtXD. i work on it later. maybe tomorrow.

how can i test it. i dont know how i can get the script in runemate
 
Joined
Jan 8, 2015
Messages
1,427
So I guess he means he wants to make it bank when he has less than 8 planks? That should be easy enough for him to figure out :p

Think so, although I'd suggest using a butler by investing some money to make him do the banking. Je suis lazy..
 
Top