case 20:
weather_info.sunlight = SUN_DARK;
strcat( buf, "The night has begun.\n\r" );
break;
void dam_message( CHAR_DATA *ch, CHAR_DATA *victim,int dam,int dt,bool immune )
if ( dt == TYPE_HIT )
{
if (ch == victim)
{
sprintf( buf1, "$n %s $melf%c",vp,punct);
sprintf( buf2, "You %s yourself%c",vs,punct);
}
else
{
sprintf( buf1, "$n %s $N%c", vp, punct );
sprintf( buf2, "You %s $N%c", vs, punct );
sprintf( buf3, "$n %s you%c", vp, punct );
}
}
if (immune)
{
if (ch == victim)
{
sprintf(buf1,"$n is unaffected by $s own %s.",attack);
sprintf(buf2,"Luckily, you are immune to that.");
}
else
{
sprintf(buf1,"$N is unaffected by $n's %s!",attack);
sprintf(buf2,"$N is unaffected by your %s!",attack);
sprintf(buf3,"$n's %s is powerless against you.",attack);
}
}
else
{
if (ch == victim)
{
sprintf( buf1, "$n's %s %s $m%c",attack,vp,punct);
sprintf( buf2, "Your %s %s you%c",attack,vp,punct);
}
else
{
sprintf( buf1, "$n's %s %s $N%c", attack, vp, punct );
sprintf( buf2, "Your %s %s $N%c", attack, vp, punct );
sprintf( buf3, "$n's %s %s you%c", attack, vp, punct );
}
}
}
sprintf( buf1, "$n %s $melf%c [%d]",vp,punct, dam);
case 20:
weather_info.sunlight = SUN_DARK;
strcat( buf, "The night has begun.\n\r" );
break;
Alright, I run a Silent Hill based MUD, and on of the unique features I'd like to implement is something I suppose we can call "teleport time". Within the Silent Hill series (a video game developed for the Sony Playstation and owned by Konami Studios. All rights reserved) there is a timer on when the darkness comes. It switches between two different descriptions for each area. We're developed in Diku/Merc/Rom 2.4 and here is a wonderful preview of something VERY similar to what we are trying to impletment. http://www.mudbytes.net/index.php?a=file.... Now, yes, as the darkness comes, I would like the description to change around the player seamlessly. An environment shift will be great. The way we were first going to go about this was two different areas and somehow, create a code to transfer the player; however, with this code snippet I see maybe we can go about it in a different way and only shift things.
This code should work properly in executing my idea, but I need a few things inserted into it. Anyone willing to take a swing at this project and maybe I'm making this too complicated. It may only need a few lines of code added. Let me know what you think.