summaryrefslogtreecommitdiff
path: root/npc/001-2-23/ratto.txt
blob: 5f42a80273a1973f4921035d6e6bb4625350786d (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
// Evol scripts.
// Authors:
//    Ablu
//    Alastrim
//    Reid
// Description:
//    Ratto killer.

// $@ARTIS_RAT1_CONTROL array explanation:
// [1] = Shows status of ratto number 1 (1 is dead and 0 is alive).
// [2] = Shows status of ratto number 2 (1 is dead and 0 is alive).
// [3] = Shows status of ratto number 3 (1 is dead and 0 is alive).
// [4] = Shows status of ratto number 4 (1 is dead and 0 is alive).
// [5] = Shows how many seconds passed since ratto number 1 died.
// [6] = Shows how many seconds passed since ratto number 2 died.
// [7] = Shows how many seconds passed since ratto number 3 died.
// [8] = Shows how many seconds passed since ratto number 4 died.
// [9] = Shows how many seconds passed since the player started the quest.

001-2-23,47,30,0	script	RattosControl	32767,{

OnSpawn:
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto1Death";
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto2Death";
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto3Death";
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto4Death";
    close;

OnRatto1Respawn:
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto1Death";
    $@ARTIS_RAT1_CONTROL[1] = 0;
    $@ARTIS_RAT1_CONTROL[5] = 0;
    end;

OnRatto2Respawn:
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto2Death";
    $@ARTIS_RAT1_CONTROL[2] = 0;
    $@ARTIS_RAT1_CONTROL[6] = 0;
    end;

OnRatto3Respawn:
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto3Death";
    $@ARTIS_RAT1_CONTROL[3] = 0;
    $@ARTIS_RAT1_CONTROL[7] = 0;
    end;

OnRatto4Respawn:
    areamonster "001-2-23.gat", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl::OnRatto4Death";
    $@ARTIS_RAT1_CONTROL[4] = 0;
    $@ARTIS_RAT1_CONTROL[8] = 0;
    end;

OnRatto1Death:
    $@ARTIS_RAT1_CONTROL[1] = 1;
    end;

OnRatto2Death:
    $@ARTIS_RAT1_CONTROL[2] = 1;
    end;

OnRatto3Death:
    $@ARTIS_RAT1_CONTROL[3] = 1;
    end;

OnRatto4Death:
    $@ARTIS_RAT1_CONTROL[4] = 1;
    end;
}