1 | #! perl |
1 | #! perl |
2 | |
2 | |
3 | # /var/crossfire/unique-items/world@world_105_115.v00 |
3 | # archetype nekosan |
4 | |
|
|
5 | # arch neko |
|
|
6 | # face neko.115 |
|
|
7 | # friendly 1 |
|
|
8 | # unaggressive 1 |
|
|
9 | # level 200 |
|
|
10 | # hp 10000 |
|
|
11 | # exp 1 |
|
|
12 | # wc -120 |
|
|
13 | # ac -120 |
|
|
14 | # wis 100 |
|
|
15 | # str 100 |
|
|
16 | # dex 100 |
|
|
17 | # con 100 |
|
|
18 | # int 100 |
|
|
19 | # pow 100 |
|
|
20 | # cha 100 |
|
|
21 | # hitback 0 |
|
|
22 | # reflect_missile 1 |
|
|
23 | # reflect_spells 1 |
|
|
24 | # resist_death 100 |
|
|
25 | # resist_physical 100 |
|
|
26 | # resist_magic 100 |
|
|
27 | # resist_fire 100 |
|
|
28 | # resist_electricity 100 |
|
|
29 | # resist_cold 100 |
|
|
30 | # resist_confusion 100 |
|
|
31 | # resist_acid 100 |
|
|
32 | # resist_drain 100 |
|
|
33 | # resist_weaponmagic 100 |
|
|
34 | # resist_ghosthit 100 |
|
|
35 | # resist_poison 100 |
|
|
36 | # resist_slow 100 |
|
|
37 | # resist_paralyze 100 |
|
|
38 | # resist_fear 100 |
|
|
39 | # resist_deplete 100 |
|
|
40 | # resist_turn_undead 100 |
|
|
41 | # resist_death 100 |
|
|
42 | # resist_chaos 100 |
|
|
43 | # resist_blind 100 |
|
|
44 | # resist_holyword 100 |
|
|
45 | # resist_godpower 100 |
|
|
46 | # x 4 |
|
|
47 | # y 37 |
|
|
48 | # speed_left -0.699994 |
|
|
49 | # direction 5 |
|
|
50 | # unique 1 |
|
|
51 | # sleep 0 |
|
|
52 | # arch event_say |
|
|
53 | # title perl |
|
|
54 | # slaying schmorp-neko |
|
|
55 | # end |
|
|
56 | # arch event_attack |
|
|
57 | # title perl |
|
|
58 | # slaying schmorp-neko |
|
|
59 | # end |
|
|
60 | # arch event_move |
|
|
61 | # title perl |
|
|
62 | # slaying schmorp-neko |
|
|
63 | # end |
|
|
64 | # end |
|
|
65 | |
4 | |
66 | use Data::Dumper; |
5 | use Data::Dumper; |
67 | |
6 | |
68 | sub teleport { |
7 | sub teleport { |
69 | my ($pl, $map, $x, $y) = @_; |
8 | my ($pl, $map, $x, $y) = @_; |
… | |
… | |
91 | } |
30 | } |
92 | |
31 | |
93 | sub on_attack { |
32 | sub on_attack { |
94 | my ($data) = @_; |
33 | my ($data) = @_; |
95 | |
34 | |
|
|
35 | $data->{activator}{neko_attack}++ |
96 | cf::LOG cf::llevDebug, sprintf "QBERT Neko-san was attacked by %s!", $data->{activator}->name; |
36 | or cf::LOG cf::llevDebug, sprintf "QBERT Neko-san was attacked by %s!", $data->{activator}->name; |
97 | |
37 | |
98 | $data->{activator}->message ("Neko-san is suddenly gone!"); |
38 | $data->{activator}->message ("Meoow! (You are hurting me)") |
99 | teleport $data->{activator}, "/scorn/misc/scorn_illusions", 15, 7; |
39 | if !($data->{activator}{neko_attack} & 15); |
100 | $data->{activator}->message ("You hear strange noises all around you..."); |
|
|
101 | $data->{activator}->message ("You feel dumb."); |
|
|
102 | |
40 | |
|
|
41 | if ($data->{activator}{neko_attack} > 256) { |
|
|
42 | $data->{activator}->message ("Neko-san is suddenly gone!"); |
|
|
43 | teleport $data->{activator}, "/scorn/misc/scorn_illusions", 15, 7; |
|
|
44 | $data->{activator}->message ("You hear strange noises all around you..."); |
|
|
45 | $data->{activator}->message ("You feel dumb."); |
103 | 0 |
46 | } |
|
|
47 | |
|
|
48 | 1 |
104 | } |
49 | } |
105 | |
50 | |
106 | sub on_say { |
51 | sub on_say { |
107 | my ($data) = @_; |
52 | my ($data) = @_; |
108 | |
53 | |