>>I thank you for the quick response but would also like to know where >>to
>>put the code...
>I was wondering how you can make a spell work only during specific hours
>or
>in rooms with specific roomflags. I was hoping to make an invisibility
>spell
>that only works at night and in dark rooms.
>
>------O------
>Hi
>
>Try to take a look at this variable
>Declare this in the top of the file.
>
>extern struct time_info_data time_info;
>and use this to return the hour of the day.
>
>time_info.hours
>
>it And for the dark room
>If (ROOM_FLAGGED(IN_ROOM(ch), ROOM_DARK) {
> // Do your magic here :)
>}
>
>This should do what your are asking for.
>
>Christian
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/26/03 PDT