summaryrefslogtreecommitdiff
path: root/npc/029-0/warps.txt
blob: 735ea2b86947a51c35582a14fa76f0901b2469cf (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
122
123
124
125
126
127
128
129
130
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//    Fires of Steam: The Death of Andrei Sakar

//////////////////////////////////////////
// Warp Control

// FiresOfSteam_Warp(ID)
function	script	FiresOfSteam_Warp	{
    if ($FIRESOFSTEAM < getarg(0)) {
        dispbottom l("Monsters remaining: %s", fnum(mobcount(getmap(), "all")));
        end;
    }
    if ($FIRESOFSTEAM > getarg(0))
        return true;
    if ($FIRESOFSTEAM_CD > gettimetick(2)) {
        dispbottom l("Time left until warp can be used: %s", FuzzyTime($FIRESOFSTEAM_CD));
        end;
    }
	return false;
}

//////////////////////////////////////////
029-1,147,153,0	script	#291to292	NPC_HIDDEN,1,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(2)) goto L_Warp;
    // Additional conditions here
    if ($FIRESOFSTEAM[1] > 0 ||
        $FIRESOFSTEAM[2] > 0 ||
        $FIRESOFSTEAM[3] > 0 ||
        $FIRESOFSTEAM[4] > 0 ||
        $FIRESOFSTEAM[5] > 0) {
            dispbottom l("A magic barrier prevents you from enterering. Maybe it is a good idea to shut down the pentagrams first?");
            end;
    }
    // Fallthrough
L_Warp:
    warp "029-2", 35, 70;
    end;
}

029-2,35,38,0	script	#292to293	NPC_HIDDEN,3,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(3)) goto L_Warp;
    // Fallthrough
L_Warp:
    warp "029-3", 25, 68;
    end;
}

029-3,126,99,0	script	#293to294	NPC_HIDDEN,3,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(4)) goto L_Warp;
    // Fallthrough
L_Warp:
    warp "029-4", 125, 18;
    end;
}

029-4,21,98,0	script	#294to295	NPC_HIDDEN,3,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(5)) goto L_Warp;
    // Fallthrough
L_Warp:
    warp "029-5", 125, 18;
    end;
}

029-5,70,25,0	script	#295to296	NPC_HIDDEN,1,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(6)) goto L_Warp;
    // Fallthrough
L_Warp:
    warp "029-6", 134+9, 31;
    end;
}

// 27+9 = 36
029-6,36,90,0	script	Great Tree#296to297	NPC_NO_SPRITE,{
    if (FiresOfSteam_Warp(7)) goto L_Warp;
    // Additional conditions here
    mes l("Apparently, you'll need to use a %s to get this to work!", getitemlink(DruidTreeBranch));
    if (!countitem(DruidTreeBranch)) close;
    next;
    if (askyesno() == ASK_NO) close;
    closeclientdialog;
    delitem DruidTreeBranch, 1;
    // Fallthrough
L_Warp:
    warp "029-7", 96, 121;
    end;

OnInit:
    .distance=3;
    end;
}

029-7,80,49,0	script	Dead Tree#297to298	NPC_NO_SPRITE,{
    if (FiresOfSteam_Warp(8)) goto L_Warp;
    // Additional conditions here (TODO)
    // Fallthrough
L_Warp:
    warp "029-8", 51, 174;
    end;

OnInit:
    .distance=3;
    end;
}

029-8,174,77,0	script	#298to299	NPC_HIDDEN,1,0,{
    end;
OnTouch:
    if (FiresOfSteam_Warp(9)) goto L_Warp;
    // Additional conditions here (TODO)
    // Fallthrough
L_Warp:
    warp "029-9", 96, 48;
    end;
}

029-9	mapflag	zone	SuperMMO