1 //sack of grain
2 
main(void)3 void main( void )
4 {
5 sp_touch_damage(&current_sprite, -1);
6 }
7 
talk(void)8 void talk(void)
9 {
10 Say("A lovely scroll.", 1);
11 }
12 
13 
touch(void)14 void touch(void)
15 {
16 //dink touched this sprite
17 Playsound(10,22050,0,0,0);
18 sp_brain_parm(&current_sprite, 10);
19 sp_brain(&current_sprite, 12);
20 sp_touch_damage(&current_sprite, 0);
21 sp_timing(&current_sprite, 0);
22 add_magic("item-sfb",437, 2);
23 say("I now have the hellfire magic!", 1);
24   //kill this item so it doesn't show up again for this player
25   int &hold = sp_editor_num(&current_sprite);
26   if (&hold != 0)
27   editor_type(&hold, 1);
28 
29 }
30