Back to index

freedink-data  1.08.20080920
Functions
GET-FB.c File Reference

Go to the source code of this file.

Functions

void main (void)
void hit (void)
void talk (void)
void touch (void)

Function Documentation

void hit ( void  )

Definition at line 8 of file GET-FB.c.

{
Say("I hate you, scroll of fire!", 1);
}
void main ( void  )

Definition at line 3 of file GET-FB.c.

{
sp_touch_damage(&current_sprite, -1);
}
void talk ( void  )

Definition at line 13 of file GET-FB.c.

{
Say("A lovely scroll.", 1);
}
void touch ( void  )

Definition at line 19 of file GET-FB.c.

{
//dink touched this sprite
Playsound(10,22050,0,0,0);
sp_brain_parm(&current_sprite, 10);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);
add_magic("item-fb",422, 7);
say("I now have the hellfire magic!", 1);
  //kill this item so it doesn't show up again for this player
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 1); 

}

Here is the call graph for this function: