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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 24-04-2003
--
+---------------------------------------------------------------+
| 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