Premier script
Créer un paquet, faire entrer un bot dans le jeu, réagir aux messages, envoyer des messages, ajouter un réglage et le partager.
6 archives dans cette catégorie
-
Create a local package in Library Manager, find your way around the editor, and read the starter code line by line. Every script lives in a package. You create one in Library Manager, and Asteroboard opens it in the editor with a few lines of starter code that already run. Create the package In the sidebar, open Library Manager. Click New package. The New local package dialog opens. In Name, type a name for your package, for example my-first-script. Leave Version at 1.0.0. Click Create a
- 98 vues
-
Run your package on a bot, see its output, add the identification every Full socket script needs, and stop or restart it. A package does nothing until a bot plays it. Start by running the starter package on a bot, then send its output to the bot's page and add the lines that identify a Full socket bot on the game server. Before you start You need a bot whose header shows Connected to game server. The easiest is a MITM bot (man-in-the-middle: the bot relays the game session of the Dofus client
- 95 vues
-
Find a message with the Network tool, handle it with on(), write it to the bot's console and test it on a MITM bot. Most of a script's work is reacting to what the game says. Here you'll build the smallest useful example: a script that writes every chat line the bot receives to the bot's console. Test it on a MITM bot (man-in-the-middle: the bot relays the game session of the Dofus client you play). A Full socket bot doesn't get into the game until a connection script takes it there, and chat
- 75 vues
-
Send a message with send(), wait for the game's answer with wait(), know when request() applies, and handle timeouts. Reading the game is half of what a script does. Here the chat script learns to answer: when someone says !hello, the bot replies in chat and checks that its reply went through. Warning On a MITM bot (man-in-the-middle: the bot relays the game session of the Dofus client you play), everything the script sends goes out as your character. The reply on this page is a real chat mes
- 75 vues
-
Declare settings with export const parameters, read them with values and onChange, and change them from the bot's Settings tab. The chat bot from Send messages has its trigger and its reply written in the code. Turn them into settings, and anyone who runs your package can change them from the bot's page, without editing code and without stopping the script. Declare the settings A package declares its settings by exporting an object named parameters from index.js. Each key is the name of a set
- 71 vues
-
Export your package as a .zip, give each change its own version number, and find where publishing on asterobot.net is explained. Your package only exists in your own library until you share it. You can send someone a .zip file, or publish the package on the marketplace so anyone with Asterobot can install it. Export a .zip Open Library Manager. Open the menu at the end of your package's row, or right-click the row. Choose Export. Your browser downloads a file named after the package and
- 93 vues