summaryrefslogtreecommitdiff
path: root/npc/001-10/scripts.txt
blob: 6805b3fd8b03105932b19f86255cdf0fa3362bdd (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    Dusty in a Bottle (aka. Dustynator, Dustman, mr. willbelz)
// Description:
//    Scripts for 001-10: Snipers, Bottles and Warps

001-10,89,43,0	script	#COD_BossRoomCheck	NPC_NO_SPRITE,0,0,{
    end;
OnTouch:
    if (!@COD_CHECKPOINT) {
        dispbottom l("Magic Barrier is active. You must give a whole circle on the desert to break it.");
    } else {
        // warp
        dispbottom l("A dangerous boss room, keep your guard up!");
    }
    end;
}

001-10,132,106,0	script	#COD_Checkpoint106	NPC_NO_SPRITE,0,0,{
    end;
OnTouch:
    @COD_CHECKPOINT=1;
    getmapxy(.@m$, .@x, .@y, 0);
    slide .@x+2, .@y;
    dispbottom l("Checkpoint! Magic Barrier went down!");
    end;
}

001-10,132,107,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint107	NPC_NO_SPRITE
001-10,132,108,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint108	NPC_NO_SPRITE
001-10,132,109,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint109	NPC_NO_SPRITE
001-10,132,110,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint110	NPC_NO_SPRITE
001-10,132,111,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint111	NPC_NO_SPRITE
001-10,132,112,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint112	NPC_NO_SPRITE
001-10,132,113,0	duplicate(#COD_Checkpoint106)	#COD_Checkpoint113	NPC_NO_SPRITE

001-10,0,0,0	script	#CODMASTER	NPC_NO_SPRITE,{
    end;

// Death handlers
OnBatDeath:
    areamonster("001-10", 0, 0, 200, 150, ("Angry Bat"), AngryBat, 1, "#CODMASTER::OnBatDeath");
    end;

OnNDeath:
    areamonster("001-10", 0, 10, 200, 25, ("Sniper"), any(DustRifle, DustGatling, DustRevolver), 1, "#CODMASTER::OnNDeath");
    end;

OnSDeath:
    areamonster("001-10", 0, 129, 200, 150, ("Sniper"), any(DustRifle, DustGatling, DustRevolver), 1, "#CODMASTER::OnSDeath");
    end;

OnDeath:
    areamonster("001-10", 0, 0, 200, 150, ("Sniper"), any(DustRifle, DustGatling, DustRevolver), 1, "#CODMASTER::OnDeath");
    end;

/////////////////////////////////////////////////////////////////////////////////
///              on init block                 ////    on init block      //////
/////////////////////////////////////////////////////////////////////////////////
OnInit:
    areamonster("001-10", 0,   0, 200, 150, ("Angry Bat"), AngryBat, 10, "#CODMASTER::OnBatDeath");

    areamonster("001-10", 0,   0, 200, 150, ("Sniper"), any(DustRifle, DustGatling, DustRevolver), 15, "#CODMASTER::OnDeath");
    areamonster("001-10", 0,  10, 200,  25, ("Sniper"), any(DustRifle, DustGatling, DustRevolver),  3, "#CODMASTER::OnNDeath");
    areamonster("001-10", 0, 129, 200, 150, ("Sniper"), any(DustRifle, DustGatling, DustRevolver),  2, "#CODMASTER::OnSDeath");

    end;
}