main(void)1 void main( void )
2 {
3 freeze(1);
4 freeze(¤t_sprite);
5
6 say_stop("`0Welcome young BallWood.", ¤t_sprite);
7 wait(250);
8 say_stop("It's Smallwood sir.", 1);
9 say_stop("`0Yes, now what did you want?", ¤t_sprite);
10 unfreeze(1);
11 unfreeze(¤t_sprite);
12 }
13
talk(void)14 void talk( void )
15 {
16 if (&caveguy == 2)
17 {
18 freeze(1);
19 freeze(¤t_sprite);
20 say_stop("Please. Teach me some incredibly strong sorcerous enchantment!", 1);
21 wait(250);
22 say_stop("Er, to help the man trapped in the dungeon I mean.", 1);
23 wait(250);
24 if (&magic > 4)
25 {
26 say_stop("`0I sense you are powerful enough now Tallwood.", ¤t_sprite);
27 wait(250);
28 say_stop("`0You will now understand the Acid Rain magic.", ¤t_sprite);
29 wait(250);
30 say_stop("Rain? Rain is the big magic you will teach?", 1);
31 wait(250);
32 say_stop("`0Scoff not child or you shall burn and kill yourself with it!", ¤t_sprite);
33 //Give magic here
34 add_magic("item-ice",437, 5);
35
36 //SETH!!!
37 //Give magic here
38 //This magic will allow Dink to free the guy in the cave ..
39 //Even though the guy only walks a few feet to be killed again anyway...
40 //Ooops
41 playsound(22,22050,0,0,0);
42 &caveguy = 4;
43 say_stop("I now have Rain Magic. Yay.", 1);
44 unfreeze(1);
45 unfreeze(¤t_sprite);
46 return;
47 }
48 say_stop("`0I'm sorry Smallweed, but your magic is not powerful enough yet.", ¤t_sprite);
49 wait(250);
50 say_stop("`0You must have at least 5 magic for the new spell.", ¤t_sprite);
51 &caveguy = 3;
52 unfreeze(1);
53 unfreeze(¤t_sprite);
54 return;
55 }
56 if (&caveguy == 3)
57 {
58 freeze(¤t_sprite);
59 freeze(1);
60 //First check him
61 if (&magic > 4)
62 {
63 say_stop("`0I sense you are powerful enough now Tallwood.", ¤t_sprite);
64 wait(250);
65 say_stop("`0You will now understand the Acid Rain magic.", ¤t_sprite);
66 wait(250);
67 say_stop("Rain? Rain is the big magic you will teach?", 1);
68 wait(250);
69 say_stop("`0Scoff not child or you shall burn and kill yourself with it!", ¤t_sprite);
70 //Give magic here
71 add_magic("item-ice",437, 5);
72 playsound(10,22050,0,0,0);
73 &caveguy = 4;
74 say_stop("I now have Rain Magic. Yay.", 1);
75
76 unfreeze(1);
77 unfreeze(¤t_sprite);
78 return;
79 }
80 //Otherwise
81 say_stop("`0You are still not powerful enough Brickwood.", ¤t_sprite);
82 wait(250);
83 say_stop("Smallwood sir.", 1);
84 wait(250);
85 say_stop("`0You need 5 magic for this spell.", ¤t_sprite);
86 wait(500);
87 sp_dir(1, 2);
88 wait(500);
89 say_stop("Aww man.", 1);
90 unfreeze(1);
91 unfreeze(¤t_sprite);
92 return;
93 }
94 freeze(1);
95 freeze(¤t_sprite);
96 say_stop("Hey Mister, you know anymore magic you can teach me?", 1);
97 wait(250);
98 say_stop("`0No Smallwood, I'm too old and tired anyway.", ¤t_sprite);
99 wait(250);
100 say_stop("Ok, no problem... and my name isn't.. oh.", 1);
101
102 unfreeze(1);
103 unfreeze(¤t_sprite);
104 }
105