[code] oSearch wizcommand.

From: Brian Langenfeld (00206205@BIGRED.UNL.EDU)
Date: 09/20/98


   On every mud I've ever worked for, there's been something of a problem
with controlling equipment stats.  You're all probably familiar with Joe
NewBuilder, who makes a complete set of damroll+100 gear without telling
you.  Maybe you already have a huge number of objects built, and wish you
could get a feel for what eq is out there without having to go through and
stat each item individually by vnum.
   Well, I've written a wizcommand to help with these problems.  The
command, called "oSearch", allows the user to search the entire object
database by parameters.  You can have it spit out all the objects that
affect damroll, hitroll, or dexterity, for instance:

> osearch -a damroll hitroll dex
       vnum          object name       Dex Hit Dam
  1. [  904] a platinum ring             .   2   .
  2. [  905] a flail                     .   .   2
  3. [  907] a heavy spear               .   .   1
  4. [ 1501] the Scroll of the Messeng   .   .  -1
  5. [ 1506] a charred ember             .   2   .
  6. [ 1510] a surah of the book         .   3   3
                                (et cetera)

   Or a whole slew of affects:

> osearch -a combat points saves
       vnum    Str Dex MMP MHP MVP  AC Hit Dam SPa SRo SPe SBr SSp
  1. [  901]    .   .   .   .   .   .   .   .   .   .   .  -4   .
  2. [  904]    .   .   .   .   .  10   2   .   .   .   .   .   .
  3. [  905]    .   .   .   .   .   .   .   2   .   .   .   .   .
  4. [  907]    .   .   .   .   .   .   .   1   .   .   .   .   .
  5. [  909]    .   .   .   . -20   .   .   .   .   .   .   .   .
  6. [ 1501]    .   .   .   .  15   .   .  -1   .   .   .   .   .
                               (et cetera)

   You can also search by object alias, type, wear position, and vnum
range to narrow or expand the parameters.  It's probably not the best-
coded command in the history of CircleMUD, but hey, it works.
   Anyway, I just uploaded it to the ftp site (ftp.circlemud.org), so it
ought to be available for download soon (hopefully).  Enjoy.

                                                Brian Langenfeld (Cipher)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST