Back to index

freedink-data  1.08.20080920
S2-MDOOR.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 }
00004 
00005 void touch( void )
00006 {
00007 
00008  freeze(1);
00009  move_stop(1, 6, 300,1 );
00010  sp_dir(1,4);
00011  if (&caveguy == 2)
00012  {
00013  say_stop("This looks like the place, but it's locked.", 1);
00014  say_stop("Maybe I should try knocking..", 1);
00015  unfreeze(1);
00016 
00017  return;
00018  }
00019 
00020  if (&caveguy == 3)
00021  {
00022  say_stop("I hope that damn old man gives me that spell.", 1);
00023  unfreeze(1);
00024  return;
00025  }
00026 
00027  say("It's locked.", 1);
00028  unfreeze(1);
00029 }
00030 
00031 void hit( void )
00032 {
00033  goto knocked;
00034 }
00035 
00036 void talk( void )
00037 {
00038  knocked:
00039 
00040  if (&caveguy == 2)
00041  {
00042  int &me;
00043  &me = &current_sprite;
00044  script_attach(1000);
00045  freeze(1);
00046  wait(500);
00047   playsound(45, 12000, 0,0,0);
00048  wait(500);
00049  say_stop("Hello, anyone in there?", 1);
00050  wait(500);
00051  say_stop("Hello?!?", 1);
00052  wait(300);
00053  say_stop("`0Who wants to know?", &me);
00054  wait(300);
00055  say_stop("I .. I'm Dink Smallwood, I'm trying to help...", 1);
00056  wait(200);
00057  say_stop("a poor guy who is imprisoned in the dungeon south of here.", 1);
00058  wait(300);
00059  say_stop("`0Young Maulwood, people get trapped in places they shouldn't go all the time.", &me);
00060  wait(200);
00061  say_stop("`0Why should I care what happens to this man?", &me);
00062  wait(500);
00063  sp_dir(1, 2);
00064  wait(500);
00065  sp_dir(1, 4);
00066  wait(500);
00067  say_stop("It's Smallwood sir, and he says...", 1);
00068  wait(200);
00069  say_stop("he was imprisoned by agents of the Cast and that the lock can only be broken with magic!", 1);
00070  wait(300);
00071  say_stop("`0Are you high?", &me);
00072  wait(300);
00073  say_stop("No.", 1);
00074  say_stop("`0Oh.", &me);
00075  wait(200);
00076  say_stop("`0Well, if those Cast members are involved I'd best help.", &me);
00077  wait(200);
00078  say_stop("`0Come in.", &me);
00079  fade_down();
00080  fill_screen(0);
00081  //move Dink
00082  &player_map = 38;
00083  sp_x(1, 261);
00084  sp_y(1, 350);
00085  load_screen();
00086  draw_screen();
00087  draw_status();
00088  fade_up();
00089  kill_this_task();
00090  return;
00091  }
00092  if (&caveguy == 3)
00093  {
00094  int &me;
00095  &me = &current_sprite;
00096  script_attach(1000);
00097  freeze(1);
00098   playsound(45, 12000, 0,0,0);
00099   wait(700);
00100  say_stop("Hey, I'm back!", 1);
00101  wait(300);
00102  say_stop("`0Ah, yes Smallwand, come in ..", &me);
00103  fade_down();
00104  fill_screen(0);
00105  //move Dink
00106  &player_map = 38;
00107  sp_x(1, 261);
00108  sp_y(1, 350);
00109  load_screen();
00110  draw_screen();
00111  draw_status();
00112  fade_up();
00113  kill_this_task();
00114   return;
00115  }
00116 
00117  freeze(1);
00118  wait(500);
00119   playsound(45, 12000, 0,0,0);
00120  wait(500);
00121  say_stop("Hello, anyone home?", 1);
00122   unfreeze(1);
00123 
00124 }