1 //item fireball
2 
use(void)3 void use( void )
4 {
5 freeze(1);
6 
7 say_stop("Vas Neeko Matrid Osana", 1);
8 
9  if (&player_map == 366)
10    {
11     preload_seq(167);
12 playsound(24, 22052, 0, 0, 0);
13 
14     int &dcrap = create_sprite(300, 90, 12, 167, 1);
15     sp_seq(&dcrap, 167);
16     sp_brain_parm(&dcrap, 400);
17     wait(500);
18 playsound(24, 22052, 0, 0, 0);
19 
20     int &dcrap = create_sprite(350, 30, 12, 167, 1);
21     sp_seq(&dcrap, 167);
22     sp_brain_parm(&dcrap, 400);
23     wait(1000);
24     playsound(43, 22050,0,0,0);
25     &temp1hold = 1;
26    }
27 
28  unfreeze(1);
29  &magic_level = 0;
30  draw_status();
31 
32 }
33 
disarm(void)34 void disarm(void)
35 {
36 &magic_cost = 0;
37 kill_this_task();
38 }
39 
arm(void)40 void arm(void)
41 {
42 Debug("Preloading fireball");
43 
44 int &basehit;
45 int &mholdx;
46 int &mholdy;
47 int &junk;
48 int &mshadow;
49 int &mydir;
50 &magic_cost = 200;
51 }
52 
pickup(void)53 void pickup(void)
54 {
55 Debug("Player now owns this item.");
56 kill_this_task();
57 }
58 
drop(void)59 void drop(void)
60 {
61 Debug("Item dropped.");
62 kill_this_task();
63 }
64 
65 
66