Jump to content


Photo
- - - - -

Auto Square Builder

Script Bot square auto build ahk download prototype

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 AJ1AJ

AJ1AJ

    Member

  • Members
  • PipPip
  • 25 posts

Posted 29 January 2016 - 08:38 PM

Hi, since uhh this is allowed"[19:24] <@EightBitMMO> <shcky> if not allowed u can blame me"(ok im not certain im allowed to post it on forums but if its not allowed then uhh *thread deleted* right?- script itself should be allowed - i checked via support ticket and it says its ok "if you are present" and also that it doesn't send all build events at once - for me it lags lots when i get run it at 10millseconds per block so 50 should be fine)(one block every 50 milliseconds - not too fast - comparison of 1 block every 200 millsecs without or quicker if spamming- but not really slow when making bigger squares).... using autohotkey i made a script that can make a square. (in .exe format cause compiled)

 

Sounds amazing right?

Its not.

Its literally just a tiny square. It is mostly self explanatory and can build any size if it fits into your screensize without moving. It also will not work if the square will go above where you are standing or if it goes where you are standing (well it will work in this case but it will double place a few blocks and leave one side shorter than intended. If you do not think about how much room is on your screen dont blame me if it starts clicking random stuff off the edge of the game.

Another rule is the zoom must be set so that each block is roughly the size of the word MENU in the top right. i suggest testing it with a 5*5 square before you do any slightly bigger rectangles. 

 

You may crash it if you type in letters when it asks for a number. When pop up windows appear click enter after reading them to remove them. Try to avoid clicking on the buttons. 

 

Please note: it can only use one material per square.

 

Default Controls (can be changed if you edit the script):

numpad1: size queries

numpad2: (only use after previous)starting location saver

numpad3: (only use after previous)begin (has f10 enabled while it runs)

numpad4: pauses the script (doesnt click f10 for you - ingame it toggles most UI)

numpad5: reload script

numpad6: exit

 

idk if u need to install ahk too (i did compile it tho so its a .exe) so next time i make a script ima learn how to use C# cause apparently that is better... (no idea)

I would make a script that moves the character because its 1block in 200millisecondsish but that can vary by around 50 milliseconds depending on lag and stuffs so it is not reliable... Incase anyone else wants to try each block is 48pixels up/down/left/right.

 

have fun! :)

 

file: https://www.dropbox....placer.exe?dl=0

 

PS: May mess up your pc if you try to use it incorrectly (all it does is left click and send f10 and move the mouse and add msgboxes and input pop up windows). (it controls the mouse/keyboard so please dont try to type or anything while its active unless you are clicking pause)

 

PS2:if you want me to modify or change anything just comment and i may check back to see if i can sort it out.


by me, AJ1AJ / AJ


#2 RobbyZ

RobbyZ

    Administrator

  • Developer
  • 1331 posts

Posted 30 January 2016 - 02:05 AM

  • Unattended botting is not permitted. 
  • It is okay to use automation tools if you are present and responding on chat.
  • It is not okay to use 'hack' tools that give you abilities that you did not previously have through normal means, including teleportation or fast movement.
  • Linking to hack tools will get you banned.
  • It is okay to use an automated build script if you are present. Ideally do not send all the build events at once, rather, spread them out to be one or two a second so as to not consume too many server resources.
  • It's probably a bad idea to download random EXE's off the internet.  People have had their accounts stolen this way in past.  I don't recommend you download mod EXEs and won't be responsible if it nukes your account.


#3 AJ1AJ

AJ1AJ

    Member

  • Members
  • PipPip
  • 25 posts

Posted 30 January 2016 - 05:17 PM

huh oh yea i forgot about that .exe unreliability...

 

The code: (incase you dont trust the compiled .exe and want to download ahk and manually create the script)

 

#singleinstance force
numpad1::
msgbox numpad5 to restart and numpad 6 to exit :)
inputbox, right, how many blocks wide do you want to place
inputbox, down, how many blocks down do you want to place
totalb := right*down
msgbox, Value is: make sure you have %totalb% blocks selected
msgbox Now move the cursor over where the topleft block of the square should be and click numpad 2.
t=50
return
numpad2::
MouseGetPos, mx, my
sleep 10
msgbox, The mouse location for the starting positon is saved. %mx% %my%
msgbox UI will be turned off using F10 and click numpad4 to pause (will re-enable UI)
msgbox make sure the blocks and active in place mode and then click numpad3 to start.
return
numpad3::
l=0
;start
send {f10}
loop % totalb
{
mousemove mx,my
sleep t
send {Lbutton down}
sleep t
send {Lbutton up}
sleep t
mx += 48
sleep t
l += 1
if (l==right) {
my += 48
l=0
mx -= right*48
}
}
send {f10}
return
 
 
numpad4::pause
numpad5::reload
numpad6::exitapp
 
;pretty simple.

by me, AJ1AJ / AJ


#4 asedita1

asedita1

    Santa

  • Members
  • PipPipPip
  • 408 posts

Posted 31 January 2016 - 04:46 AM

You may crash it if you type in letters when it asks for a number.

 

I'm pretty sure you can make a simple line of code so that it doesnt crash if you give invalid input.

 

Something like

if (input is not a number) {

      go back and ask for that input again

}

 

i know thats not any really coding language, but you get the idea



#5 AJ1AJ

AJ1AJ

    Member

  • Members
  • PipPip
  • 25 posts

Posted 01 February 2016 - 04:39 PM

I'm pretty sure you can make a simple line of code so that it doesnt crash if you give invalid input.

 

Something like

if (input is not a number) {

      go back and ask for that input again

}

 

i know thats not any really coding language, but you get the idea

Yes i know, which is what i did in a script similar to this that i made just before. The thing is, if someone wanted to type letters in they probably wouldn't want to use it anyway.


by me, AJ1AJ / AJ