-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathluck.txt
More file actions
35 lines (22 loc) · 828 Bytes
/
luck.txt
File metadata and controls
35 lines (22 loc) · 828 Bytes
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
/*
# Started 01042000 by Vedic <vedic@thevedic.net>
# From Dibrova telnet://thevedic.net:5150 http://thevedic.net/~dibrova
# Share and share alike.
*/
Here's a good use for LUCK, have a mob spare the player from death if he
"lucks" out.
In fight.c
After:
/* stop someone from fighting if they're stunned or worse */
if ((GET_POS(victim) <= POS_STUNNED) && (FIGHTING(victim) != NULL))
stop_fighting(victim);
Add:
if ((GET_HIT(victim) <= 10) && (GET_POS(victim) >= POS_STUNNED) && (FIGHTING(v
ictim) != NULL) && (IS_NPC(ch)) && (GET_LUCK(victim) > number(15, 2000))) {
act("$N walks away. It must be your lucky day!", FALSE, victim, 0, ch, TO_CHAR)
;
act("$N stops fighting and walks away. It must be $n's lucky day!", FALSE, vict
im, 0, ch, TO_NOTVICT);
stop_fighting(victim);
stop_fighting(ch);
}