Page 1 of 1

herb fatigue alias

Posted: 15 Nov 2017 00:12
by bashere
/*
Description: random fatigue herb array alias. Basically, I wanted some way to grab
a mana herb quickly without searching through my container.

Alias Command: fatigue
Script Type: Javascript

Synopsis:
Usage: will randomly attempt to get one of the herbs defined in the fatigue array. I'll
spam the command until it comes up with an herb from my container.

Required changes: change 'qarraba' below to whatever container you use.
*/

var fatigue =[
"asparagus",
"blackberry",
"blueberry",
"blung",
"bunchberry",
"caraway",
"cattail",
"chervil",
"chicory",
"chokecherry",
"dandelion",
"dill",
"elanor",
"fennel",
"ginger",
"hawthorn",
"hazelnut",
"laurel",
"licorice",
"marjoram",
"mint",
"oregano",
"paramol",
"redweed",
"rosemary",
"rushwash",
"saffron",
"sage",
"saskatoon",
"tarragon",
"thyme",
"wild cucumber",
"beach plum",
"red potato",
"coffee bean",
"holly berry",
"black bean",
"Raspberry"
];

gwc.connection.send('open qarraba');
var item = fatigue[Math.floor(Math.random()*fatigue.length)];
gwc.connection.send( 'get ' + item + ' from jar' );
gwc.connection.send( 'eat ' + item);
gwc.connection.send('close qarraba');