View unanswered posts | View active topics It is currently 21 Apr 2018 11:48

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.



Reply to topic  [ 1 post ] 
herb health alias 
Author Message
Beginner

Joined: 12 Oct 2017 19:31
Posts: 10
/*
Description: random healing herb array alias. Basically, I wanted some way to grab
a healing herb quickly without searching through my container.

Alias Command: health
Script Type: Javascript

Synopsis:
Usage: will randomly attempt to get one of the herbs defined in the healing 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 healing = [
"attanar",
"cinquefoil",
"fiddlehead",
"garlic",
"huckleberry",
"lamia",
"lothore",
"marshmallow",
"parsley",
"black",
"wild",
"three-leaf",
"olinaith",
"wintergreen leaf",
"blue gentian flower",
"parsley",
"healing",
"redwood leaf",
"healing",
"gnarglefrix",
"huckleberry",
"strawberry",
"vampiric moss",
"adillyp weed",
"cinquefoil",
"satilia",
"black raspberry",
"attanar",
"saskatoon",
"wild strawberry",
"lianor",
"skunk berries",
"sphagnum",
"carlith",
"cladina",
"sea bubble",
"brown slime",
"red eye",
"monkshood",
];

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


15 Nov 2017 00:09
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.