-
Notifications
You must be signed in to change notification settings - Fork 2
/
barb_lure.bcs
89 lines (71 loc) · 2.75 KB
/
barb_lure.bcs
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
SCRIPT_NAME="barb_lure";
SCRIPT_DESC = "Reports lure messages to party report channel.";
SCRIPT_OFF = false;
/* Converted from Hair's script
* http://flaprider.dyndns.org/~hair/batmud/barbarian/index.html
*/
Color lure_hit = new Color(0, 127, 0);
Color lure_fail = new Color(127, 0, 0);
extra_round = 0;
void lured(){
rounds = Integer.parseInt(argument);
if (rounds == 5) {
extra_round = 1;
} else if (rounds == 4 && extra_round == 1) {
report(5);
extra_round = 0;
} else {
report(rounds);
}
}
void report(int rounds){
clientGUI.doCommand("party report "+rounds+" round lure");
}
void lure_fail(){
clientGUI.doCommand("party report Lure failed!");
}
void lure_break(){
clientGUI.doCommand("party report Damn, monster maneuvered lure!");
}
void lure_ignore(){
clientGUI.doCommand("party report Lure ignored!");
}
void bootup(){
triggerManager.newTrigger("lure_01_stun",
"^You have trouble but manage to",
"$"+SCRIPT_NAME+".lured 1",
false, true, false, new Color[]{lure_hit}, Font.PLAIN);
triggerManager.newTrigger("lure_02_stun",
"^You valiantly strike back at",
"$"+SCRIPT_NAME+".lured 2",
false, true, false, new Color[]{lure_hit}, Font.PLAIN);
triggerManager.newTrigger("lure_03_stun",
"^You see opportunity and butt the shaft",
"$"+SCRIPT_NAME+".lured 3",
false, true, false, new Color[]{lure_hit}, Font.PLAIN);
triggerManager.newTrigger("lure_04_stun",
/* no ^ in front */
"You go 'GOTCHA!' and strike your weapon into (its|his|her) skull putting (its|his|her) central nerve system out of order.$",
"$"+SCRIPT_NAME+".lured 4",
false, true, false, new Color[]{lure_hit}, Font.PLAIN);
triggerManager.newTrigger("lure_05_stun",
"^..And brutally shove your weapon down (its|his|her) throat.$",
"$"+SCRIPT_NAME+".lured 5",
false, true, false, new Color[]{lure_hit}, Font.PLAIN);
triggerManager.newTrigger("lure_break",
"^But ([A-Za-z-]*)'s extreme knowledge in stunned maneuvers",
"$"+SCRIPT_NAME+".lure_break",
false, true, false, new Color[]{lure_fail}, Font.PLAIN);
triggerManager.newTrigger("lure_fail",
"^You fail to make any use of your opportunity!$",
"$"+SCRIPT_NAME+".lure_fail",
false, true, false, new Color[]{lure_fail}, Font.PLAIN);
triggerManager.newTrigger("lure_fail2",
"^...but you fail to outwit your enemy, which ([A-Za-z-]*) notices!$",
"$"+SCRIPT_NAME+".lure_fail",
false, true, false, new Color[]{lure_fail}, Font.PLAIN);
triggerManager.newTrigger("lure_ignore",
"^([A-Za-z-]*) ignores your lure.$",
"$"+SCRIPT_NAME+".lure_ignore",
false, true, false, new Color[]{lure_fail}, Font.PLAIN);
}