summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/018-2-1/warps.txt2
-rw-r--r--npc/018-2-2/main.txt12
2 files changed, 12 insertions, 2 deletions
diff --git a/npc/018-2-1/warps.txt b/npc/018-2-1/warps.txt
index a023803be..25cdc3e6a 100644
--- a/npc/018-2-1/warps.txt
+++ b/npc/018-2-1/warps.txt
@@ -70,8 +70,6 @@ OnTouch:
closedialog;
break;
case 6:
- mesc l("Work in Progress."), 1;
- close;
@HH_LEVEL=HH_MASTER;
@HH_TIMER=0;
warp "018-2-3", 132, 92;
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt
index d504b072f..1fd22c882 100644
--- a/npc/018-2-2/main.txt
+++ b/npc/018-2-2/main.txt
@@ -17,6 +17,10 @@ OnPlayerCycle:
end;
}
// TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter)
+ if (rand(0,1000) <= @HH_LEVEL) {
+ dispbottom l("You step on a trap!");
+ heal -(@HH_LEVEL*rand(2,5)), 0;
+ }
// Continue the execution
addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
@@ -271,6 +275,14 @@ OnInstanceInit:
}
freeloop(false);
}
+ // HH_MASTER
+ freeloop(true);
+ for (.@i=0;.@i<getarraysize(.Master_Mobs);.@i++) {
+ areamonster "018-2-3", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[.@i]), .Master_Mobs[.@i], .Master_Ammo[.@i], "#HH_CONTROLLER01::OnMaster"+.@i;
+ }
+ freeloop(false);
+
+ // TODO: We still need the main logic for this. I mean, what is the objective on each floor of Master Dungeon?
end;
}