Back to index

freedink-data  1.08.20080920
ITEM-P1.c
Go to the documentation of this file.
00001 //item fireball
00002 
00003 void use( void )
00004 {
00005 freeze(1);
00006 
00007 say_stop("Vas Neeko Matrid Osana", 1);
00008 
00009  if (&player_map == 366)
00010    {
00011     preload_seq(167);
00012 playsound(24, 22052, 0, 0, 0);
00013 
00014     int &dcrap = create_sprite(300, 90, 12, 167, 1);
00015     sp_seq(&dcrap, 167);
00016     sp_brain_parm(&dcrap, 400);
00017     wait(500);
00018 playsound(24, 22052, 0, 0, 0);
00019 
00020     int &dcrap = create_sprite(350, 30, 12, 167, 1);
00021     sp_seq(&dcrap, 167);
00022     sp_brain_parm(&dcrap, 400);
00023     wait(1000);
00024     playsound(43, 22050,0,0,0);
00025     &temp1hold = 1;
00026    }
00027 
00028  unfreeze(1);
00029  &magic_level = 0;
00030  draw_status();
00031 
00032 }
00033 
00034 void disarm(void)
00035 {
00036 &magic_cost = 0;
00037 kill_this_task();
00038 }
00039 
00040 void arm(void)
00041 {
00042 Debug("Preloading fireball");
00043 
00044 int &basehit;
00045 int &mholdx;
00046 int &mholdy;
00047 int &junk;
00048 int &mshadow;
00049 int &mydir;
00050 &magic_cost = 200;
00051 }
00052 
00053 void pickup(void)
00054 {
00055 Debug("Player now owns this item.");
00056 kill_this_task();
00057 }
00058 
00059 void drop(void)
00060 {
00061 Debug("Item dropped.");
00062 kill_this_task();
00063 }
00064 
00065