ok I wrote a specproc and it works fun except that if a player is switched
into a mob or is in the zone the mud crashes, any ideas why, here is the
nuke part of it.
int nuke_room; /* the center of the explosion */
static bool nstart = FALSE;
static bool nestart = FALSE;
static bool nuse = FALSE;
static bool phase2 = FALSE;
int j, indi, ind, iphase2; /* j*5 is the number of seconds till
the explosion */
int radius[210]; /* rooms where damage took place */
int inds[12]; /* indexes for different
radiuses */
void die(struct char_data * ch);
void nuke_die(struct char_data * vch)
{
sprintf(buf, "You are hit by a Nuclear Strike...sucks to be you\r\n");
send_to_char(buf, vch);
sprintf(buf,"You are dead! Haha...\r\n");
send_to_char(buf, vch);
sprintf(buf, "%s was wiped off the earth by a nuclear strike.",
GET_NAME(vch)
);
mudlog(buf, BRF, LVL_IMMORT, TRUE);
GET_HIT(vch) = -10;
die(vch);
}
--------------------------------------------------------------------------
|Matt Roach - owner of OnyxMUD | "I dont have bugs... just |
|And Coder/Builder of Quaratine | randomly created features!" |
|matt@shiva.ml.org quinn@mud.comsys.net| |
|quinn@match.org | |
--------------------------------------------------------------------------
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST