Back to index

freedink-data  1.08.20080920
S1-BOOT.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 sp_hitpoints(&current_sprite, 30);
00004 
00005 }
00006 
00007 
00008 
00009 void talk( void )
00010 {
00011 
00012 int &mcrap = count_item("item-bt");
00013 
00014  freeze(1);
00015  freeze(&current_sprite);
00016  choice_start();
00017         set_y 240
00018         set_title_color 5
00019         title_start();
00020 "I'm a cobbler/pharmacist.  I make
00021 special herb boots.  When the herb
00022 touches your skin, you'll want to
00023 dance and be hyper."
00024         title_end();
00025 (&mcrap == 0) "Buy his boots ($500)"
00026 (&mcrap == 0) "Complain about the price"
00027 (&mcrap != 0) "Complain about the price"
00028 "Leave"
00029  choice_end();
00030 
00031 if (&result == 2)
00032   {
00033   wait(300);
00034   say_stop("You know, I bought the ones I'm wearing for only 1 piece of gold.", 1);
00035   wait(300);
00036   say_stop("`5You get what you pay for.", &current_sprite);
00037   wait(300);
00038   say_stop("Do you sell a lot of these?", 1);
00039   wait(300);
00040   say_stop("`5I've never sold one.", &current_sprite);
00041   wait(300);
00042   say_stop("Nice.", 1);
00043   }
00044 
00045 if (&result == 3)
00046   {
00047   wait(300);
00048   say_stop("You know, the price is too much, could you please lower it?", 1);
00049   wait(300);
00050   say_stop("`5Sure, how about 2 gold?", &current_sprite);
00051   wait(300);
00052   say_stop("Great!  I'll take.. hey!", 1);
00053   wait(300);
00054   say_stop("I already bought them at the rip off price!", 1);
00055   wait(300);
00056   say_stop("`5What a pity.", &current_sprite);
00057   wait(300);
00058   say_stop("I would like to make a return.", 1);
00059   wait(300);
00060   say_stop("`5And I would like to ask you to leave.", &current_sprite);
00061   }
00062 
00063 
00064   if (&result == 1)
00065     {
00066      if (&gold < 500)
00067        {
00068         say("I don't have enough money!", 1);
00069        }
00070        else
00071        {
00072 
00073 int &junk = free_items();
00074 
00075 
00076 if (&junk < 1)
00077  {
00078          choice_start()
00079         set_y 240
00080         title_start();
00081 You are carrying too much.
00082         title_end();
00083          "Ok"
00084          choice_end()
00085 unfreeze(1);
00086 unfreeze(&current_sprite);
00087 
00088  return;
00089  }
00090 
00091 
00092 
00093         say("`0* HYPER BOOTS BOUGHT *", 1);
00094          playsound(43, 22050,0,0,0);
00095          &gold -= 500;
00096  add_item("item-bt",438, 22);
00097        
00098        }
00099     }
00100 
00101 unfreeze(1);
00102 unfreeze(&current_sprite);
00103 
00104 
00105 }
00106 
00107 void hit( void )
00108 {
00109 say("`5Help!!! Murderer!", &current_sprite);
00110 
00111 }