Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ lighted rooms?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nexela
USA (14 posts) Bio
|
Date
| Fri 31 Jan 2003 05:54 AM (UTC) |
Message
| ok heres another problem using the stock areas how would I got about making Darkhaven Academy room 10300 lighted for the newbies that come in and cant see a thing :p
|
wait! wait! I didnt want to format! | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #1 on Fri 31 Jan 2003 01:17 PM (UTC) |
Message
| Add a mob holding a light source or have a bunch of balls of light load on the ground to be picked up. Also be sure the room isnt flagged as dark. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Nexela
USA (14 posts) Bio
|
Date
| Reply #2 on Sat 01 Feb 2003 03:58 AM (UTC) |
Message
| Darn I was hoping not to have to do that but oh well :p
BTW anyone got a snippet for a lighted room flag? |
wait! wait! I didnt want to format! | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sat 01 Feb 2003 05:27 AM (UTC) |
Message
| If you look inside handler.c you see this ...
/*
* True if room is dark.
*/
bool room_is_dark( ROOM_INDEX_DATA *pRoomIndex )
{
if ( !pRoomIndex )
{
bug( "room_is_dark: NULL pRoomIndex", 0 );
return TRUE;
}
if ( pRoomIndex->light > 0 )
return FALSE;
if ( IS_SET(pRoomIndex->room_flags, ROOM_DARK) )
return TRUE;
if ( pRoomIndex->sector_type == SECT_INSIDE
|| pRoomIndex->sector_type == SECT_CITY )
return FALSE;
if ( time_info.sunlight == SUN_SET
|| time_info.sunlight == SUN_DARK )
return TRUE;
return FALSE;
}
Now it seems it shouldn't be dark if the room sector type is "inside" or "city" however my room 10300 seems to be marked "in a forest" for some reason. Try changing the sector type to "inside" and see if the problem goes away.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nexela
USA (14 posts) Bio
|
Date
| Reply #4 on Sun 02 Feb 2003 03:26 AM (UTC) |
Message
| *worship Nick*
I guess it would help to look at Sector instead of flags in Rstat :P
|
wait! wait! I didnt want to format! | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,870 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top