summaryrefslogtreecommitdiff
path: root/npc/027-1_Graveyard/_mobs.txt
blob: bd05622aa7d5a3101c17d5f3d0376c655a3252e6 (plain) (blame)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// 027-1 Graveyard mobs

027-1.gat,81,91,95,27	monster	Poltergeist	1047,4,900000,60000,Mob027-1::On1047
027-1.gat,81,91,97,25	monster	Spectre	1042,4,900000,60000,Mob027-1::On1042
027-1.gat,81,91,99,23	monster	Wisp	1040,4,900000,60000,Mob027-1::On1040
027-1.gat,54,53,66,46	monster	FireSkull	1023,2,60000,20000,Mob027-1::On1023
027-1.gat,54,53,66,46	monster	PoisonSkull	1024,1,60000,20000,Mob027-1::On1024
027-1.gat,54,53,66,46	monster	Skeleton	1043,2,60000,8000,Mob027-1::On1043
027-1.gat,54,53,66,46	monster	LadySkeleton	1044,2,60000,8000,Mob027-1::On1044
027-1.gat,71,41,31,22	monster	Zombie	1036,2,300000,120000,Mob027-1::On1036
027-1.gat,71,41,31,22	monster	Skeleton	1043,2,175000,20000,Mob027-1::On1043
027-1.gat,71,41,31,22	monster	LadySkeleton	1044,2,175000,20000,Mob027-1::On1044
027-1.gat,37,41,33,22	monster	FireSkull	1023,2,200000,10000,Mob027-1::On1023
027-1.gat,37,41,33,22	monster	PoisonSkull	1024,2,200000,10000,Mob027-1::On1024
027-1.gat,37,41,33,22	monster	Zombie	1036,2,200000,10000,Mob027-1::On1036
027-1.gat,37,41,33,22	monster	Skeleton	1043,4,180000,20000,Mob027-1::On1043
027-1.gat,37,41,33,22	monster	LadySkeleton	1044,4,180000,20000,Mob027-1::On1044
027-1.gat,105,40,32,21	monster	Fire skull	1023,1,28000,25000,Mob027-1::On1023
027-1.gat,105,40,32,21	monster	Poison skull	1024,1,30000,20000,Mob027-1::On1024
027-1.gat,105,40,32,21	monster	Skeleton	1043,2,35000,20000,Mob027-1::On1043
027-1.gat,105,40,32,21	monster	LadySkeleton	1044,3,33000,25000,Mob027-1::On1044
027-1.gat,37,65,33,22	monster	Zombie	1036,3,140000,30000,Mob027-1::On1036
027-1.gat,37,65,33,22	monster	Fallen	1045,3,120000,30000,Mob027-1::On1045
027-1.gat,28,67,2,1	monster	Jack O	1022,1,265000,200000,Mob027-1::On1022


027-1.gat,0,0,0	script	Mob027-1	-1,{
On1022:
	set @mobID, 1022;
	callfunc "MobPoints";
	break;

On1023:
	set @mobID, 1023;
	callfunc "MobPoints";
	break;

On1024:
	set @mobID, 1024;
	callfunc "MobPoints";
	break;

On1036:
	set @mobID, 1036;
	callsub _MOBCOUNT_ZOMBIES;
	callfunc "MobPoints";
	break;

On1040:
	set @mobID, 1040;
	callfunc "MobPoints";
	break;

On1042:
	set @mobID, 1042;
	callfunc "MobPoints";
	break;

On1043:
	set @mobID, 1043;
	callfunc "MobPoints";
	break;

On1044:
	set @mobID, 1044;
	callfunc "MobPoints";
	break;

On1045:
	set @mobID, 1045;
	callsub _MOBCOUNT_FALLENS;
	callfunc "MobPoints";
	break;

On1047:
	set @mobID, 1047;
	callfunc "MobPoints";
	break;

_MOBCOUNT_ZOMBIES:

	set @Graveyard_Inn_MASK, NIBBLE_2_MASK;
	set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT;

	set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
	
	if (@state != 1) return;
// You have to kill 50?(or more?) zombies OR 50?(or more?) fallens. If you close the client, the @zombies count go back to zero.
	set @zombies, @zombies + 1;
// TODO: set 1 to 50
	if (@zombies < 1) return;
	message strcharinfo(0), "You found a strange bracelet hidden in the zombie's rotten rags. Maybe this is what the Crying child was looking for...";
	set @state, 2;
	callsub S_Update_Mask;
	return;

_MOBCOUNT_FALLENS:

	set @Graveyard_Inn_MASK, NIBBLE_2_MASK;
	set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT;

	set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
	
	if (@state != 1) return;
// You have to kill 50?(or more?) fallens OR 50?(or more?) zombies. If you close the client, the @fallens count go back to zero.
	set @fallens, @fallens + 1;
// TODO: set 1 to 50
	if (@fallens < 1) return;
	message strcharinfo(0), "You found a strange bracelet inside the fallen's broken helmet. Maybe this is what the Crying child was looking for...";
	set @state, 2;
	callsub S_Update_Mask;
	return;
	
S_Update_Mask:
        set QUEST_Graveyard_Inn,
        	(QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK))
                | (@state << @Graveyard_Inn_SHIFT);
        return;

	end;
}