-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsphere_events_npcs.scp
91 lines (78 loc) · 2.04 KB
/
sphere_events_npcs.scp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//****************************************************************************
//SPHERE by : Menasoft ©1997-2007
//www.sphereserver.net
// All SPHERE script files and formats are copyright Menasoft & Partners.
// This file may be freely edited for personal use, but may not be distributed
// in whole or in part, in any format without express written permission from
// Menasoft & Partners. All donations and contributions
// become the property of Menasoft & Partners.
//****************************************************************************
// FILE LAST UPDATED: Saturday, November 15, 2003
//
VERSION=0.56b
[EVENTS e_Undead]
ON=@EnvironChange
Return 0
// Enter "//" before Return 0, if you want to make script working
// i like the dark
if (<sector.isdark>) || (<flags>& (statf_nightsight|statf_indoors))
if (!<tag0.lightstr>)
return 0
endif
anim 011
bark 4
str=<tag.lightstr> // restore me.
hits=<str>
tag.lightstr=
karma=<tag0.lightkarma>
tag.lightkarma=//just dispose of this.
fame=<tag0.lightfame>
tag.lightfame=
flags ^= statf_conjured // no loot if killed.
return 0
endif
// i can't live in light areas. weaken me ? or destroy me ?
anim 014
bark 4
if (<tag0.lightstr>)
return 0
endif
if ( <flags>&statf_conjured )
remove
return 1
endif
flags |= statf_conjured // no loot if killed.
tag.lightstr=<str>
str=1
hits=1 // very weak.
tag.lightkarma=<karma> // killing it means nothing now.
karma=-2
tag.lightfame=<fame>
fame=10
return 0
on=@spelleffect
if (<argn1>==20) || (<argn1>==39)
consume i_rune_poison
flags &= ~ statf_poisoned
message @03b2,3,0,0 *The poison seems to have no effect*
return 1
endif
on=@gethit
if (<argn2>&dam_poison)
consume i_rune_poison
flags &= ~ statf_poisoned
message @03b2,3,0,0 *The poison seems to have no effect*
return 1
endif
[EVENTS e_Carnivores]
// weak carnivores.
[EVENTS e_Carnivores2]
// normal carnivores.
[EVENTS e_Carnivores3]
// strong carnivores.
[EVENTS e_Terathan]
[EVENTS e_Ophidian]
[EVENTS e_Horses]
[EVENTS e_Notoriety]
[EVENTS e_Ostards]
[EOF]