summaryrefslogtreecommitdiff
path: root/npc/functions/mob_points.txt
blob: ede2d4744c3c28db9181baf321cf8d2f1f3cc612 (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
// Mob points

function	script	MobPoints	{
	if (@mobID < 1002) return;

	setarray @points,
		1, // Maggot
		2, // Scorpion		[1003]
		20, // Red Scorpion	[1004]
		10, // Green Slime
		30, // Giant Maggot
		15, // Yellow Slime
		25, // Red Slime
		45, // Black Scorpion	[1009]
		50, // Snake
		4, // Fire Goblin
		55, // Spider
		23, // Evil Mushroom
		35, // Flower
		40, // Santa Slime
		15, // Rudolph Slime
		2, // Bat
		16, // Pinkie
		17, // Shroom
		14, // Fluffy		[1020]
		25, // Cave Snake
		100, // Jack-O
		80, // Fire Skull
		80, // Poison Skull
		20, // Stumpy
		70, // Mountain Snake
		15, // Easter Fluffy
		40, // Mouboo		[1028]
		0, // Mauve Plant
		0, // Gamboge Plant
		0, // Cobalt Plant
		0, // Alizarin Plant
		20, // Sea Slime
		0; // Silk Worm


	if (MPQUEST == 1) set Mobpt, Mobpt + @points[@mobID - 1002];

	if ((@mobID == 1003) || (@mobID == 1004) || (@mobID == 1009))
		goto L_good;


	// Attitude adjustment for the witch (can we refactor this to another function?  Not sure about max. recursion depth)

	set @value, 0;
	if (@mobID == 1028)
		set @value, 4;
	if (@mobID == 1020)
		set @value, 3;

	if (@value == 0)
		goto L_end;

	callfunc "QuestSagathaAnnoy";
	goto L_end;

L_good:
	set @value, 1;
	callfunc "QuestSagathaHappy";
L_end:
        set @value, 0;
}