Open diamkil opened 5 years ago
Right Click or Left CLick and will you say how often he click or must be say in the chat like a simple number in stack size?
sorry for bad english Germans not always the best in it ^^
Right Click or Left CLick and will you say how often he click or must be say in the chat like a simple number in stack size?
sorry for bad english Germans not always the best in it ^^
It needs to left click on the sign one time and enter the amount of cactus it has in its inventiry ex : 64 or even 704 in the chat to sell this amount
ok I do it for in a script that you can do with /minebot js sellCactus.js just a moment pls ^^
So sorry the Script tests are longer that I know... ;)
you must be change end of the txt file to .txt or do start with /minebot js sellCactus.txt there is your way
PS: you must be show on the sign by the home when not say this to me I can do something to fix that :D
sellCactus.txt MFG pixel
So sorry the Script tests are longer that I know... ;)
you must be change end of the txt file to .txt or do start with /minebot js sellCactus.txt there is your way
PS: you must be show on the sign by the home when not say this to me I can do something to fix that :D
sellCactus.txt MFG pixel
Thank you I will test it tonight and give you the result, by the way where do I put the txt file in my minecraft directory?
in the ".minecraft/minebot/scripts"
in the ".minecraft/minebot/scripts"
the bots doesn't enter the right amount in the chat but after left clicking the sign this text appears in the chat wich tells the exact amount of cactus it has to enter in the chat
Ok i come in 3 hours home than i can change it i think my math is not correct in the skript can you also say me what for a server it is (i'm searching for a good new one) :)
And have you a empty inventory when you go to the shop it works only perfect when you only have the cactus in the inventory or you they me how many tools / eat you have in the slots better send me a screenshot of your inventory :)
To count all available cacturs, use:
var count = 0;
var inv = minescript.getInventory()
for (var k = 0; k < 36; k++) {
if (inv.getSlot(k).itemId == 81) {
count += inv.getSlot(k).amount
}
}
// Now use count, e.g.:
minescript.serverCommand("/sell cactus " + count);
oh that is that i hava not know thanks I change this :D
ok I have changed it well it does it what you will :D and @michaelzangl thanks for help :)
there is still one last problem and it is that it counts the number of stacks and the scripts sometimes takes "non-full" stacks and the amount entered in the chat is the one if the stacks were full
sorry I don't can the complete inventory scan and the really answer say I hope this is hopefully okay for the while
I want to know if there's a way my bot can take the cactus from my farm and then go to /home sc click on a quickshop sign and enter the amount of cactus from the inventory in the chat and then go back to /home c