main(void)1 void main( void )
2 {
3 sp_hitpoints(&current_sprite, 30);
4 
5 }
6 
7 
8 
talk(void)9 void talk( void )
10 {
11 
12 int &mcrap = count_item("item-bt");
13 
14  freeze(1);
15  freeze(&current_sprite);
16  choice_start();
17         set_y 240
18         set_title_color 5
19         title_start();
20 "I'm a cobbler/pharmacist.  I make
21 special herb boots.  When the herb
22 touches your skin, you'll want to
23 dance and be hyper."
24         title_end();
25 (&mcrap == 0) "Buy his boots ($500)"
26 (&mcrap == 0) "Complain about the price"
27 (&mcrap != 0) "Complain about the price"
28 "Leave"
29  choice_end();
30 
31 if (&result == 2)
32   {
33   wait(300);
34   say_stop("You know, I bought the ones I'm wearing for only 1 piece of gold.", 1);
35   wait(300);
36   say_stop("`5You get what you pay for.", &current_sprite);
37   wait(300);
38   say_stop("Do you sell a lot of these?", 1);
39   wait(300);
40   say_stop("`5I've never sold one.", &current_sprite);
41   wait(300);
42   say_stop("Nice.", 1);
43   }
44 
45 if (&result == 3)
46   {
47   wait(300);
48   say_stop("You know, the price is too much, could you please lower it?", 1);
49   wait(300);
50   say_stop("`5Sure, how about 2 gold?", &current_sprite);
51   wait(300);
52   say_stop("Great!  I'll take.. hey!", 1);
53   wait(300);
54   say_stop("I already bought them at the rip off price!", 1);
55   wait(300);
56   say_stop("`5What a pity.", &current_sprite);
57   wait(300);
58   say_stop("I would like to make a return.", 1);
59   wait(300);
60   say_stop("`5And I would like to ask you to leave.", &current_sprite);
61   }
62 
63 
64   if (&result == 1)
65     {
66      if (&gold < 500)
67        {
68         say("I don't have enough money!", 1);
69        }
70        else
71        {
72 
73 int &junk = free_items();
74 
75 
76 if (&junk < 1)
77  {
78          choice_start()
79         set_y 240
80         title_start();
81 You are carrying too much.
82         title_end();
83          "Ok"
84          choice_end()
85 unfreeze(1);
86 unfreeze(&current_sprite);
87 
88  return;
89  }
90 
91 
92 
93         say("`0* HYPER BOOTS BOUGHT *", 1);
94          playsound(43, 22050,0,0,0);
95          &gold -= 500;
96  add_item("item-bt",438, 22);
97 
98        }
99     }
100 
101 unfreeze(1);
102 unfreeze(&current_sprite);
103 
104 
105 }
106 
hit(void)107 void hit( void )
108 {
109 say("`5Help!!! Murderer!", &current_sprite);
110 
111 }
112