Back to index

freedink-data  1.08.20080920
S3-BOWL.c
Go to the documentation of this file.
00001 //bow lore man
00002 
00003 void main( void )
00004 {
00005  if (&bowlore > 0)
00006  {
00007   sp_active(&current_sprite, 0);
00008   return;
00009 }
00010  preload_seq(381);
00011  preload_seq(383);
00012  preload_seq(385);
00013  preload_seq(387);
00014  preload_seq(389);
00015  sp_base_walk(&current_sprite, 380);
00016  sp_hitpoints(&current_sprite, 5);
00017  sp_brain(&current_sprite, 16);
00018  sp_speed(&current_sprite, 1);
00019  sp_timing(&current_sprite, 33);
00020 }
00021 
00022 void talk( void )
00023 {
00024  freeze(1);
00025  freeze(&current_sprite);
00026  choice_start();
00027         set_y 240
00028         set_title_color 4
00029         title_start();
00030 "Hello, friend.  I will teach you bow lore for $1500 gold."
00031         title_end();
00032 (&bowlore == 0) "Learn bow lore"
00033 "Leave"
00034  choice_end();
00035 
00036   if (&result == 1)
00037     {
00038      if (&gold < 1500)
00039        {
00040         say("I don't have enough money!", 1);
00041        }
00042        else
00043        {
00044         say("`4* YOU LEARN BOW LORE *", 1);
00045          playsound(43, 22050,0,0,0);
00046          &bowlore = 1;
00047          &gold -= 1500;
00048        }
00049     }
00050 
00051 unfreeze(1);
00052 unfreeze(&current_sprite);
00053 
00054 
00055 }
00056