blob: 125420575da7b0a61dc312a6bd8ebbaecbd3292e (
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
|
// TMW2 Script
// Authors:
// Jesusalva
// Description:
// Dungeon utilities
- script #DungeonCore NPC_HIDDEN,{
end;
// Main initialization
OnInit:
setarray .heatmap$, "007-2";
end;
// Heartbeat for Heat effects
OnHeat:
// Did you left?
.@i=array_find(.heatmap$, getmap());
if (.@i < 0) {
@heat$="";
end;
}
// First time seeing this
if (@heat$ != getmap()) {
@heat$=getmap();
dispbottom l("This is a hot map, you're suffering damage over time.");
}
// You are in a HEATMAP$, so suffer damage from heat
if (@coolio > gettimetick(2))
percentheal -1, 0;
else
percentheal -5, 0;
// New tick (dies in 140~180 seconds)
addtimer2 rand2(7000, 9000), .name$+"::OnHeat";
end;
}
|