Posted Wednesday, August 12th @ 11:32:52 PM, by George Greer in the Wizard dept.
. Click the link below to read it or download it.
From: ?
Subject: Peace Command
ACMD(do_peace)
{
struct char_data *vict, *next_v;
act ("$n decides that everyone should just be friends.",
FALSE,ch,0,0,TO_ROOM);
send_to_room("Everything is quite peaceful now.\r\n",ch->in_room);
for(vict=world[ch->in_room].people;vict;vict=next_v)
{
next_v=vict->next_in_room;
if(IS_NPC(vict)&&(FIGHTING(vict)))
{
if(FIGHTING(FIGHTING(vict))==vict)
stop_fighting(FIGHTING(vict));
stop_fighting(vict);
}
}
}
<< Pager [by Murmix] | Reply | View as text | Threaded | Percentage loads for objs and mobs [by Johan Dustler] >> |
|
Related Links |
|
|
|
CircleMUD Snippets |
|
|
Note: Not all of these snippets will work perfectly with
your version of code, so be prepared to fix one
or two bugs that may arise, and please let me know
what you needed to do to fix it. Sending a corrected
version is always welcome.
|
Finally, if you wish to use any of the snippets from this
page, you are more than welcome, just mention the
authors in your credits. If you wish to release any
of these snippets to the public on another site,
contact me FIRST.
|
|
|
|
|
|
|