Page 1 of 1

Automated herbing

Posted: 27 Jan 2015 13:08
by Keltar
Attached aliases and triggers need to be added to the web client.

Some use cases:
You want to gather a specific herb from the area
1. use h_area
2. put herb to search for
var hn = 'herbs'; -> this will perform a general search for herbs in the room
var hn = 'chicory'; -> this will search for chicory

3. put max number of herbs to gather from the room
h.per_room = 2; -> will get max 2 herbs per room

4. put paths room by room to h.plan
h.plan = [
{path:[],herb:hn}, -> will search in current room
{path:['e'],herb:hn}, -> will then go 1 east and search
{path:['s'],herb:hn}, -> will then go 1 south and search
];

4. go to the starting place, type h_area and watch

You want to scan the area for a specific herb because the herb placement changes each Armageddon
1. use h_area_check
2. put paths room by room to h.plan -> see point 3 above
3. go to the starting place type h_area_check <herb name>, e.g. <h_area_check chicory> and watch
4. after the area is done, the script will display the needed paths, which you can then put to h_area and know the
exact placement for a specific herb this Armageddon

You can of course have many aliases for different areas (duh :-)).
Simply add a new alias e.g. h_shire or h_shire_check, copy the script to them and modify the herb to search for, the plan and amount to gather.

Remember, though, to watch out for other players.
Use <stop> to stop searching.
Use <h_start> to resume searching.
Use <stop> and <h_next> in case there is someone already in the room searching and you want to continue to the next room

Happy herbing.

Re: Automated herbing

Posted: 13 May 2017 19:37
by Tarax the Terrible
Going to try this out, its next lvl stuff compared to anything I tried b4!!
Thanks for sharing :D :D :D

Re: Automated herbing

Posted: 24 May 2017 00:34
by Tarax the Terrible
The client wouldn't let me save the h_stop alias.

Said I was missing a semicolon.
at the end of the arr+= line

Code: Select all

=================================================
pattern: h_stop
Script type: Javascript
Script:

    for(var step = 0;step < h.check.paths[i].length;step += 1) {
      arr += "'" + h.check.paths[i][step] + "'"
      if (step < h.check.paths[i].length - 1) {
        arr += ',';
      }
    }

Re: Automated herbing

Posted: 24 May 2017 15:56
by Kwevin
Put in either a space bfore it or another one after it?

Re: Automated herbing

Posted: 24 May 2017 20:09
by Melarec
Tarax the Terrible wrote:The client wouldn't let me save the h_stop alias.

Said I was missing a semicolon.
at the end of the arr+= line

Code: Select all

=================================================
pattern: h_stop
Script type: Javascript
Script:

    for(var step = 0;step < h.check.paths[i].length;step += 1) {
      arr += "'" + h.check.paths[i][step] + "'"
      if (step < h.check.paths[i].length - 1) {
        arr += ',';
      }
    }
Yeah.. You are missing a semicolon there.
If you know what the issue is, what's the problem?

Re: Automated herbing

Posted: 24 May 2017 20:31
by Tarax the Terrible
Just leaving feedback and for anyone using this.
Its not my script.

Re: Automated herbing

Posted: 24 May 2017 20:47
by Melarec
oic.
Very nice.