Re: Object Min Level/oedit

From: Phillip A. Ames (kirk47@JUNO.COM)
Date: 09/07/98

On Tue, 8 Sep 1998 02:14:21 +0200 Carlo Mocci <mocci@TIN.IT> writes:
>I don't know if a snippet exists, but you can easily add that to your
>a) Add an int (or shint) minlev to struct obj_data

Er...  This is a kind of stupid question, but what _is_ a shint?

Okie, I went to some oddball book fair my local library was having where
you could buy a bag of books for $5.00.  I immediately headed to the
programming section, and purchased the following books:

Advanced C by SAMS Publishing(Hipson)
C Primer Plus, by SAMS Publishing(Waite, Prata, and Martin)
C for Yourself by Microsoft
The Waite Group's Microsoft C Programming for the PC by SAMS
Publishing(2nd edition)
Microsoft Quick C Programming(The Waite Group, 2nd edition)
Borland C++ Programmers Guide
The C Trainer by Feuer

Are any of these worth buying, or did I waste $5.00? :)

I want to add colors to the who list, but am not exactly sure how to do
it...  I want to see if the player is greater than a certain level, and
if so, display it in whatever color I want it to be displayed in.  I've
tried it like this:

  (GET_LEVEL(tch) >= LVL_IMMORT ? CCGRN(ch, C_SPR) : ""),
                  (GET_LEVEL(tch) >= LVL_YELLOW ? CCYEL(ch, C_SPR) : ""),
                  (GET_LEVEL(tch) >= LVL_MAGENTA ? CCMAG(ch, C_SPR) :
                  (GET_LEVEL(tch) >= LVL_BLUE ? CCBLU(ch, C_SPR) : ""),
                  (GET_LEVEL(tch) >= LVL_CYAN ? CCCYN(ch, C_SPR) : ""),
                  (GET_LEVEL(tch) >= LVL_RED ? CCRED(ch, C_SPR) : ""),
                  (GET_LEVEL(tch) >  LVL_WHITE ? CCWHT(ch, C_SPR) : ""),

And the LVL_{colorname} is all defined in structs.h, but that doesn't
work...  I've tried changing the LVL_{colorname} to be actual numbers,
but that doesn't work...  Can anyone point me in the right direction?


Phillip Ames    | Satisfaction is not guaranteed. | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol

You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at
Or call Juno at (800) 654-JUNO [654-5866]

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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