Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Commands ➜ grub

grub

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Tue 06 Jun 2006 06:06 AM (UTC)
Message
Command:   grub
Handler:   do_grub
Min level: 55
Min posn:  any (dead)
Log:       normal

.Here is some reference data you will need in order to use GRUB.
 Sex          Class       Race         Fields   Clans    Councils
 0 Neutral  0 Mage      0 Human        Name     1 Guild  1 CoE
 1 Male     1 Cleric    1 Elf          Sex      2 DS     2 MC
 2 Female   2 Thief     2 Dwarf        Class    3 MS     3 NC
            3 Warrior   3 Halfling     Race     4 RB     4 Pro
            4 Vampire   4 Pixie        Level    5 AR     5 PK
            5 Druid     5 Vampire      Room     6 Bru    6 QC
            6 Ranger    6 Half Ogre    Gold     7 Las    7 Neo
            7 Augurer   7 Half Orc     Clan     8 Nos    8 CC
            8 Paladin   8 Half Troll   Council  9 Tre    9 AC
            9 Nephandi  9 Half Elf     Site    10 Ven   10 TS
                            10 Gith         Last    11 Inc
                             11 Drow     Pkill
                             12 Sea-elf
                             13 Lizard
                             14 Gnome
                                      Pkill
 
Here are some sample uses of GRUB:
 
grub 20 pkill=y class=5      Display 20 Druid pkillers
grub 20 level=2 last<=970120 Display 20 L2 players absent since 970120
grub 20 level>=20 level<=30  Display 20 players levels 20 thru 30
grub  0 level=2              Count the number of level 2 players
grub 20 level>50 gold>100000 Display 20 imms with more than 100k gold
grub 50 damroll>100 sex=2    Display 50 females with damroll>150
grub  0 class=5 damroll>150  Count the number of druids with damroll>100
grub 20 site<>123.456.789    Display 20 players from site 123.456.789
grub 10 class=0 race=2       Display 10 dwarven mages
grub  1 name=Joe             Display Joe's info
grub 20 room=7070 class=0    Display 20 mages who logged off in 7070
grub  0 class!=2 class!=3 class!=4   Count the number of mana users
 
You always need to specify the number of lines you want displayed. The
reason for that is that we don't want to ask for a list and then get
surprised to find that it's 15,000 lines long. You can get a count
of the players that match your criteria by requesting zero lines.
 
GRUB will tell you how many lines there are in the list no matter how
many you ask to display. So if there are 15,000 players that meet your
criteria and you ask for the first ten, GRUB will tell you there are
15,000 in total but will only show you the first ten.
 
 
See also: HELP 'GRUB EXAMPLES'




Add comments here ...

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,636 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.