LegenD SharD

The assistant

The Assistant button on the top bar opens a window with seven tabs. In it the character mines, chops wood, fishes and trains a skill while you do something else, and a macro you recorded runs on a key. The pace is the server's, and the assistant sends only what your own hand could send.

tabs: Routines, Library, Macros, My scripts, Buy and sell, Settings and Rules
7tabs: Routines, Library, Macros, My scripts, Buy and sell, Settings and Rules
routines from the game: Mining, Lumberjacking, Fishing, Sand and Wool
5routines from the game: Mining, Lumberjacking, Fishing, Sand and Wool
ready scripts in the Library, from bandage healing to reagents
8ready scripts in the Library, from bandage healing to reagents
stops everything the assistant runs, from any window
Ctrl+Alt+Pstops everything the assistant runs, from any window

Opening the window

A button on the top bar and a switch

On the game's top bar, the Assistant button opens and closes the window. The window remembers the tab you used last. At the top of every tab sits the switch LegenD's Assistant: on or off, and it starts on. Off, the tabs stay open for you to edit, but nothing runs and no macro key has any effect: the game tells you the assistant is off.

The LegenD Assistant window with the Routines, Library, Macros, My scripts, Buy and sell, Settings and Rules tabs, open on My scripts with the Treinar magia script in the editor, and the Info, Values, Pause and Stop everything buttons below.
Seven tabs in one window: the Treinar magia script casts Magic Arrow while the mana lasts and meditates when it runs out.

Anyone who prefers a key finds four actions among the macros in the Options: Assistant: run script, Assistant: run routine, Assistant: stop and Assistant: on/off. The game's installer and the steps to create an account are in Get started, and the assistant already comes inside the client.

The seven tabs
TabWhat it is for
RoutinesThe jobs the game publishes: mining, chopping wood, fishing, digging sand, shearing sheep.
LibraryEight ready scripts, which you adjust with simple questions.
MacrosLists of steps that you record while playing, edit and put on a key.
My scriptsThe text of scripts, for those who want to write their own.
Buy and sellWhat to buy and what to sell on its own when a shop's window opens.
SettingsPace, stopping on low life, the strip, resuming after a reconnect.
RulesWhat the server allows and the pace it asked for, read only.

Routines

Mining, Lumberjacking, Fishing, Sand and Wool

The Routines tab lists the jobs the game publishes. Pick one on the left and the card on the right says what it does, what to carry, and holds its questions. Start begins, and the same button reads Stop while the routine works. The routine that runs shows in the list with the word running.

The Routines tab with the Mining routine: the text that says what it does, the Backpack full choice set to Stop, and the When hurt choice set to Use bandages.
Mining stops when the backpack fills and uses bandages when the character gets hurt.

Mining mines the rock within reach and walks to the next when it runs out; it asks for a pickaxe or a shovel, in hand or in the pack. Lumberjacking chops the trees nearby, one at a time, until each runs out of wood, with an axe. Fishing fishes every spot of water within reach without leaving the place and waits for the fish to come back; you stand at the water's edge with a pole. Sand digs sand from the beach or desert and asks for 60 Mining besides the pickaxe or shovel. Wool shears the sheep with wool nearby and waits for the wool to grow back, 30 minutes, with a dagger, a knife or a cleaver.

Every routine has two questions. With a full pack takes *Stop*, *Store in the bank*, *Store in a chest* and *Store on the pack animal*. Way to the bank or chest takes *Use the one I showed* or *Show it again*. To store in the bank or a chest you walk the way once, when the routine asks, and from then on it goes there and back by itself, going around whoever stands in the way and opening doors. A route that crosses a moongate or a teleporter, or that is too long, is not kept. Resources run out, as everywhere in the game: when a spot is done, the routine walks to the next and comes back to it only after its rest.

Copy to my scripts opens the routine's script in the My scripts tab, written for the answers you chose, for you to read and change. Every card ends by saying that no place in the world is safe: the character stays in the world while the routine works, and where you leave it is your call.

The Library

Eight ready scripts, each with its own questions

In the Library the cards work like the routines': questions, Start, Stop and Copy to my scripts. The scripts come with the client and cover what repeats in a hunting or training session.

The Library tab with Heal with bandages: heal below 70% health, also when poisoned, 6 seconds between bandages, and the Start and Copy to my scripts buttons.
Heal with bandages uses a bandage whenever health drops below 70% and waits 6 seconds between them.
ScriptWhat it asks
Bandage healingWhether it heals when poisoned too; the time between bandages (4, 6 or 10 s).
Emergency potionsAt what life it drinks the healing potion (30, 50 or 70%, or never); the cure potion when poisoned; the refresh potion with stamina below 25 or 50%.
Train a spellWeaken, Cure, Bless or Greater Heal. It casts the spell on you over and over and meditates when mana runs low; carry the reagents.
Train a skillHiding, Meditation, Spirit Speak, Anatomy, Evaluating Intelligence or Detecting Hidden, and the time between uses (3, 6 or 11 s).
Collect from a containerGold, gold and gems, or gold, gems and reagents.
Store in a containerAll of these, reagents, ore and ingots, logs and boards, hides and leather, gems or gold.
Restock reagentsHow many of each reagent: 20, 50 or 100.
Repeat the last itemHow many: one, or until the material runs out. It repeats the last item made in the craft window.

You point at the containers (the pack, the chest) with the target the first time. The game keeps the name given to each, and the Settings tab has the Forget names button to start over.

Whoever uses Train a skill or Train a spell finds what rises and how in Skills. The Repeat the last item script serves those who craft, and Crafting tells what each bench does.

Macros

Record what you do and run it on a key

A macro is a list of steps. In the Macros tab, + New creates one and Record starts writing down what you do in the game: every use of an item, target, spell, skill, spoken line, answer to a server window, context menu choice, attack and war mode switch, with the pauses between them. Lifting an item and dropping it becomes a single move step. Walking and equipping are not recorded. Stop recording in the window, on the small strip or Ctrl+Alt+P end it, and so do the character's death, leaving the game or switching the assistant off.

The Macros tab with the Treinar magia macro: the Ctrl Q key and six steps, from casting Magic Arrow to waiting for the target, picking the character, pausing, using Meditation and pausing again.
The Treinar magia macro holds six steps and runs on Ctrl+Q.

Pauses under a tenth of a second are dropped, those over 10 seconds become 10, and before a target or a window the pause becomes a wait for the target or the window: the macro waits for the target to appear instead of counting the time you took. After recording, every step can be changed, and Up, Down, Delete step and + Step (thirteen kinds) reorder them. Any item of this kind swaps the exact item you used for any item of the same graphic. A macro has at most 500 steps.

Repeat makes the macro repeat until you say stop, and Run runs it once. The Key field takes a keyboard key, a mouse button or the wheel, with Ctrl, Alt and Shift, and the key enters the same list as the macros in the Options, as Assistant: the macro's name, with the same warning when two things ask for the same key. Copy puts the macro's text on the clipboard, and whoever receives it pastes it into My scripts. As text opens the macro as a script.

My scripts

For those who want to write

The My scripts tab keeps the texts, one .txt file each, in the game's assistant/scripts folder. Reload reads the folder again, so a script you edited outside the game counts without a restart; if the same script changed on both sides, the game asks which one stays before writing over it. New opens a blank script, Paste from outside creates one from what is on the clipboard, and the editor has Save, Check (an error names its line, in words), Run, Copy and Delete, which asks for a second click. A script is up to 64 KB, and the name takes letters, numbers, spaces, - and _, up to 40. The Commands button swaps the editor for the language's full reference, in the game's language, and the same reference, with examples to paste, is in Assistant scripts.

The My scripts tab with the command list open in the editor: one command a line, the if, while and for blocks, and the pause, waitfortarget and waitforgump waits.
The command list is one button from the editor and explains each wait, like waitfortarget, which holds until the server asks for a target.

The language is one instruction per line, with if, while, for, waits (waitfortarget, waitforgump, waitforjournal, waituntil), actions (cast, useskill, useobject, target, moveitem, walkto, replygump) and reads of life, mana, weight, items and creatures in sight. A script may have at most 64 names and 64 timers. There is no way to send an arbitrary packet or to do anything beyond what a hand would. A script pasted from someone else asks you to read it before running it, because it does what it says.

Macros show in this tab too, with the note *macro*, and a macro that gains conditions or loops keeps running; it just stops showing as a list of steps.

Buy and sell

Reagents, bandages and arrows without counting by hand

The Buy and sell tab has two lists, each with its own switch. Buy holds what the character should have in the backpack: with Black Pearl at 30 and 18 pearls in the backpack, the assistant buys 12. Sell holds how much of each item to sell, and 0 sells all of it. Add asks for a target: click an item of the same kind and hue, in the backpack or on the ground, and it joins the list. The lists belong to each character.

The Buy and sell tab with the Buy list on, keeping 30 Black Pearls, 30 Mandrake Roots, 100 Clean Bandages and 250 Arrows, and the Sell list with Hide, Board and Iron Ingot.
With the Buy list on, every visit to the shop tops up the pearls, the roots, the bandages and the arrows.

A list acts when a shop's window opens and holds still: it makes the same request your clicks would, closes the window and says in the game what it bought or sold. It never buys more than the shop holds or spends more gold than the window shows. It keeps the server's pace like everything else, and needs the assistant on and macros allowed in the Rules tab. It works in LegenD's shop window, not in the classic parchment one.

Values and Info

To find out why a script does what it does

Below the window sit two buttons for those who write scripts. Values opens a small panel that refreshes four times a second with what the script reads at that moment: the line it is at, found, timedout, life, mana, stamina and weight with their maximum and difference, the position, the states that are on (like hidden and war), the setalias names, the settimer timers and the journal's last lines. The numbers come from the same read the script makes, so the panel and the script never disagree.

The Info window after clicking a sheep: name, serial, body, hue and position, each with a Copy button, the script line findmobile 0x00CF and the setalias field with the Keep as name button.
One click on a sheep gives body 0x00CF and the findmobile line ready to paste into a script.

Info turns the cursor into the game's own crosshair, without telling the server. Click an item, a creature or a spot of the map and the window shows the name, serial, graphic, hue, amount and where it is, each with Copy. Below comes a script line that finds the same thing again: findtype with the hue and the place for an item, findmobile for a creature, targettile for the ground or a tree. The setalias field keeps what you clicked under a name, and scripts find it with findalias.

The strip, pause and stop

What runs stays in sight

While something runs, a small movable strip stays on the screen, with the window closed too. It shows the name, how long it has run and the line it is at, with Pause (which becomes Continue), Stop and Assistant, which opens the window. The Settings tab has the option Show the strip while something runs. During a recording the strip shows regardless.

The Assistant's small strip with the name of the running script, Guardar minérios, the time, the line and the Pause, Stop and Assistant buttons.
With the Guardar minérios script running, the strip shows the time and the line, and keeps Pause and Stop one click away.

Stop everything, at the foot of the window, and Ctrl+Alt+P end what runs and the recording. The key is read only while something runs, so it takes Ctrl+Alt+P from no other use. Besides, the character's death, leaving the game, turning the switch off, a server that does not allow scripts and life below the limit you chose stop everything, and a notice on the screen says which it was.

Settings

Pace, low life and reconnecting

SettingWhat it does
Pace of scripts and routinesCalm, Normal or Fast: how much of the server's limit a script uses, 35%, 60% or 85%.
Stop everything with life belowNever, 25%, 50% or 75%. When life crosses the limit, what runs stops and a notice says why.
Show the strip while something runsTurns the small strip on and off.
Resume after reconnectingOff until you turn it on. See below.
Forget names, Forget routesErases what this character keeps: the names given to containers and the routes to the bank or chest. Only with nothing running.
The Settings tab with the pace of scripts and routines on Normal, stop everything under a health value, the strip switched on and what the character keeps.
The pace comes on Normal; Fast stays near the server's limits and Calm leaves more room.

With Resume after reconnecting on, the client notes what is running and, if the connection drops, the game is closed or the client is updated, the assistant starts again five seconds after the character is back in the world, as long as the last sign of it running is under 15 minutes old. A game closed for the night does not start a routine the next day. The window's line and a notice say the routine went back, or why it could not. The client does not enter the game by itself: you do the login, or the launcher.

What the server limits

The Rules tab shows the numbers that hold for you

Every limit is the server's, and the client adds none: no cap on hours, no rule by region, no question to see whether you are there. At login the server sends its rules, and the Rules tab shows them in words, read only. If it sends none, LegenD's standard rules hold, which are the same. Every part of the assistant is allowed: keys, macros, scripts, routines and walking by itself.

What each limit does is keep the assistant under what the server would refuse. The server drops an action past its limit, and the assistant waits its turn instead of sending what would be dropped. A script uses at most 60% of each limit at the Normal pace, 35% at Calm and 85% at Fast.

The pace the server asks for today
ActionLimit
Using objects, targeting, answering windows, attackingup to 20 every 2 s, each
Using skills, casting spellsup to 10 every 2 s, each
Speakingup to 12 every 4 s
Picking up itemsone every 0.33 s; after a pile, one every 0.43 s
All actions togetherup to 300 packets every 5 s
Stepsrunning, up to 10 a second mounted and 5 on foot; walking, half that

Steps follow a buffer of 1.5 s that refills at 25% of the time a slow step takes. The assistant keeps a margin for the connection's lag and holds back a step the server would refuse.

Two limits that exist in the server are off on LegenD on purpose, and the Rules tab says so for the first. Nothing stops a skill from rising for someone away from the keyboard (Away: no rule), and repeating the same action on the same target pays what it always paid. What holds back whoever stands still is the world: every mining, tree and fishing spot keeps an amount of resource and takes time to recover it, and a routine running on one spot ends up with nothing in its hands.

And everything that matters is checked on the server, whether the hand or the assistant asks: reach, line of sight, the delay between actions, whose each item is. The assistant is only a more organised way of asking.

What the assistant does not do

So you do not wait for what does not exist

It has no weather, light or season filters, which would undo the game: there is one look. It does not go faster than the server allows, does not see who is hidden, does not send raw packets and cannot do what a hand could not. It does not play several characters at once.

There is no agents tab. Collecting, storing and restocking, which other games turn into agents, are the Library's scripts. There is also no automatic looting of corpses, nor a buy and sell list it carries out: the shop window has the cart and the Max. button, and the game tells the bosses' personal loot in Bosses. Item counters live on the shortcut bar, which shows the amount of each item, and not in the assistant.

When a routine or a script stops, the window's line and a notice say why: the character died, the assistant was switched off, the server does not allow scripts, life fell below the limit, or an error on a line.

Common questions

Where is the assistant?
On the Assistant button of the game's top bar. The window has seven tabs: Routines, Library, Macros, My scripts, Buy and sell, Settings and Rules. It comes with the client, and the LegenD's Assistant switch at the top starts on.
Can I leave the character mining all night?
The server sets no cap on hours, and the Rules tab says Away: no rule. What ends the night is the resource: every rock or tree runs out, the routine walks to the next and comes back after the rest. With a full pack it stops, or stores in the bank, a chest or the pack animal, as the card's question says.
How do I record a macro?
In the Macros tab, + New, then Record, and do in the game what you want repeated. At Stop recording the steps show in the list, and Repeat puts them in a loop. Walking is not recorded.
How do I put a macro on a key?
In the macro's Key field. It becomes the action Assistant: the macro's name in the Options' macro list, and with the assistant off the key only says it is off.
How do I stop everything at once?
With Stop everything at the foot of the window, with Stop on the strip, or with Ctrl+Alt+P, from any window. The character's death, leaving the game and turning the switch off stop it too.
Does the assistant carry on after the connection drops?
Only if Resume after reconnecting is on in Settings. Then it starts again five seconds after the character is back in the world, if the last sign of it running is under 15 minutes old. You are the one who enters the game again.
Why does the assistant sometimes wait?
To stay under what the server accepts: 20 uses every 2 seconds, 10 spells or skills, one item picked up every 0.33 s, and so on. At the Normal pace a script uses 60% of the limit, at Calm 35% and at Fast 85%.
Is there automatic looting or a buy and sell list?
No. The assistant has the routines, the Library, the macros and the scripts. Collecting from a container and storing in a container are Library scripts, and the shop has the cart and the Max. button.
Can I share a macro or a script?
Yes: Copy puts the text on the clipboard, and whoever receives it uses Paste from outside in My scripts. A pasted script asks you to read it before running it, because it does exactly what it says.

Read on