Automated herbing

General discussion about the Genesis Web Client located at https://www.genesismud.org/play/

Moderator: Eowul

Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Keltar
Wanderer
Posts: 59
Joined: 20 Apr 2010 18:54

Automated herbing

Post by Keltar » 27 Jan 2015 13:08

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.
Attachments
herbing.txt
(4.08 KiB) Downloaded 222 times

User avatar
Tarax the Terrible
Myth
Posts: 1331
Joined: 09 Mar 2010 20:33
Location: UK

Re: Automated herbing

Post by Tarax the Terrible » 13 May 2017 19:37

Going to try this out, its next lvl stuff compared to anything I tried b4!!
Thanks for sharing :D :D :D
http://genesisquests.pbworks.com/
Join up and help each other with Quests :)

User avatar
Tarax the Terrible
Myth
Posts: 1331
Joined: 09 Mar 2010 20:33
Location: UK

Re: Automated herbing

Post by Tarax the Terrible » 24 May 2017 00:34

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 += ',';
      }
    }
http://genesisquests.pbworks.com/
Join up and help each other with Quests :)

Kwevin
Veteran
Posts: 207
Joined: 21 Mar 2016 09:17

Re: Automated herbing

Post by Kwevin » 24 May 2017 15:56

Put in either a space bfore it or another one after it?
Alea iacta est. Serius regredi est.

User avatar
Melarec
Rising Hero
Posts: 318
Joined: 29 Feb 2016 19:51
Location: Everywhere
Contact:

Re: Automated herbing

Post by Melarec » 24 May 2017 20:09

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?

User avatar
Tarax the Terrible
Myth
Posts: 1331
Joined: 09 Mar 2010 20:33
Location: UK

Re: Automated herbing

Post by Tarax the Terrible » 24 May 2017 20:31

Just leaving feedback and for anyone using this.
Its not my script.
http://genesisquests.pbworks.com/
Join up and help each other with Quests :)

User avatar
Melarec
Rising Hero
Posts: 318
Joined: 29 Feb 2016 19:51
Location: Everywhere
Contact:

Re: Automated herbing

Post by Melarec » 24 May 2017 20:47

oic.
Very nice.

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/