Re: [CODE][Dunno What the hell is wrong] SpecProc Crashing

From: Jon Nielsen (nikolai@MONTANA.COM)
Date: 06/10/98


Quinn ShadowStalker wrote:

> 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 */
I am assuming that you did SOMETHING with the variables that you
declared up there..
Although it doesn't look like it. What file is this in?

> 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);
> }
When is this function being called? Ever? Is this all the code that you
wrote or did
you leave out some of it?


---
Jon Nielsen
nikolai@montana.com


     +------------------------------------------------------------+
     | 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