Back to index

freedink-data  1.08.20080920
GET-SFB.c
Go to the documentation of this file.
00001 //sack of grain
00002 
00003 void main( void )
00004 {
00005 sp_touch_damage(&current_sprite, -1);
00006 }
00007 
00008 void talk(void)
00009 {
00010 Say("A lovely scroll.", 1);
00011 }
00012 
00013 
00014 void touch(void)
00015 {
00016 //dink touched this sprite
00017 Playsound(10,22050,0,0,0);
00018 sp_brain_parm(&current_sprite, 10);
00019 sp_brain(&current_sprite, 12);
00020 sp_touch_damage(&current_sprite, 0);
00021 sp_timing(&current_sprite, 0);
00022 add_magic("item-sfb",437, 2);
00023 say("I now have the hellfire magic!", 1);
00024   //kill this item so it doesn't show up again for this player
00025   int &hold = sp_editor_num(&current_sprite);
00026   if (&hold != 0)
00027   editor_type(&hold, 1); 
00028 
00029 }