Back to index

freedink-data  1.08.20080920
Functions
ITEM-P1.c File Reference

Go to the source code of this file.

Functions

void use (void)
void disarm (void)
void arm (void)
void pickup (void)
void drop (void)

Function Documentation

void arm ( void  )

Definition at line 40 of file ITEM-P1.c.

{
Debug("Preloading fireball");

int &basehit;
int &mholdx;
int &mholdy;
int &junk;
int &mshadow;
int &mydir;
&magic_cost = 200;
}
void disarm ( void  )

Definition at line 34 of file ITEM-P1.c.

{
&magic_cost = 0;
kill_this_task();
}
void drop ( void  )

Definition at line 59 of file ITEM-P1.c.

{
Debug("Item dropped.");
kill_this_task();
}
void pickup ( void  )

Definition at line 53 of file ITEM-P1.c.

{
Debug("Player now owns this item.");
kill_this_task();
}
void use ( void  )

Definition at line 3 of file ITEM-P1.c.

{
freeze(1);

say_stop("Vas Neeko Matrid Osana", 1);

 if (&player_map == 366)
   {
    preload_seq(167);
playsound(24, 22052, 0, 0, 0);

    int &dcrap = create_sprite(300, 90, 12, 167, 1);
    sp_seq(&dcrap, 167);
    sp_brain_parm(&dcrap, 400);
    wait(500);
playsound(24, 22052, 0, 0, 0);

    int &dcrap = create_sprite(350, 30, 12, 167, 1);
    sp_seq(&dcrap, 167);
    sp_brain_parm(&dcrap, 400);
    wait(1000);
    playsound(43, 22050,0,0,0);
    &temp1hold = 1;
   }

 unfreeze(1);
 &magic_level = 0;
 draw_status();

}

Here is the call graph for this function: