main(void)1 void main( void )
2 {
3  int ⊥
4  &bot = random(7,1);
5  if (&bot == 1)
6 
7  {
8   say_stop("Smells damp in here.", 1);
9  }
10  if (&bot == 2)
11 
12  {
13   say_stop("I don't like this one bit...", 1);
14  }
15 
16 if (&wizard_see > 2)
17 {
18 set_callback_random("noise", 5000, 10000);
19 }
20 }
21 
noise(void)22 void noise( void )
23 {
24 if (&wizard_see > 2)
25   {
26   //killed monster already, why would it roar?
27   return;
28   }
29 
30 playsound(32, 11000, 4000, 0, 0);
31 wait(4000);
32 &bot = random(4,1);
33 if (&bot == 1)
34 say_stop("Can we leave now? <shiver>", 1);
35 if (&bot == 2)
36 say_stop("I'm scared.", 1);
37 if (&bot == 3)
38 say_stop("Why, that's a funny noise.", 1);
39 
40 if (&bot == 4)
41 say_stop("This cave sucks, let's leave...", 1);
42 
43 }
44