diff options
Diffstat (limited to 'npc/018-2-2/main.txt')
-rw-r--r-- | npc/018-2-2/main.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |