Re: [Circle] Auto-setting commands for newbies??

From: Shawn A. Daniel (itech2@sonnet.com)
Date: 11/17/96


I put in this line of code and got this error, and it does it with all the
lines similar.  I am unsure why it is doing this, and you please explain??

code segment:
SET_BIT(PRF_FLAGS(ch), PRF_DISPHP | PRF_DISPMANA | PRF_DISPMOVE);

error segment:
act.wizard.c
act.wizard.c(2638) : error C2065: 'ch' : undeclared identifier
act.wizard.c(2638) : error C2223: left of '->PRF_FLAGS' must point to
struct/union


<---------------------------------------------------------------------------
------------------------------->
  |			  Shawn A. Daniel  				|
  |			    Damion Thaed				|
  |Co-Implementor of CyberMUD, Modesto's first WWIV BBS MUD, dial up	|
<---------------------------------------------------------------------------
------------------------------->


----------
On Sun, 17 Nov 1996, Shawn A. Daniel wrote:

> Okay here is my delimma (<- I think I spelled that right?? ANYWAYZ):
> I am trying to set certain flags for when a newbie first enters the
> MUD....I want to set AUTOEXIT, COLOR COMPLETE, DISPLAY ALL, and AUTOLOOT.
> Can someone please guide me.  I have tried to do most of my changes
myself;
> however, this has me bugged and I can't figure it out.

Try something like:

SET_BIT(GET_PREFS(ch), PRF_C1 | PRF_C2 | xxx);

something like that, can't remember the syntax, and not able to get into
my linux box presently, perhaps someone else will be able to show you the
right format. Oh yeah, and then call save_char() when you set those bits
*grin*

Regards,
Con.

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration.
----------

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



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