diff options
Diffstat (limited to 'npc/005-3/barrel.txt')
-rw-r--r-- | npc/005-3/barrel.txt | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt index f1b0588e1..235dcbd2c 100644 --- a/npc/005-3/barrel.txt +++ b/npc/005-3/barrel.txt @@ -26,13 +26,14 @@ function script CheckBarrel { L_BarrelTally: areamonster "005-3", 24, 34, 45, 42, "House Maggot", 1084, 1, "Trainer::OnKillHouseMaggot"; - if (@barrel_count == 8) - { + if (@barrel_count == 8) { message strcharinfo(0), "You found the bug bomb."; specialeffect(14); - specialeffect(51); + specialeffect(FX_GRENADE); killmonster("005-3", "Trainer::OnKillHouseMaggot"); setq CandorQuest_Barrel, 3; + } else { + specialeffect(FX_ITEM, SELF); } switch (rand2(5)) { case 0: @@ -66,9 +67,7 @@ L_Empty: @barrel = 1; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: // Remember: array start at zero, but barrels count start at 1. "Fixing" may break barrel 8! @@ -82,9 +81,7 @@ OnInit: @barrel = 2; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -96,9 +93,7 @@ OnInit: @barrel = 3; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -109,9 +104,7 @@ OnInit: @barrel = 4; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -122,9 +115,7 @@ OnInit: @barrel = 5; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -135,9 +126,7 @@ OnInit: @barrel = 6; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -148,9 +137,7 @@ OnInit: @barrel = 7; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; @@ -161,9 +148,7 @@ OnInit: @barrel = 8; .@q = getq(CandorQuest_Barrel); if (.@q == 2) - { CheckBarrel(); - } end; OnInit: .sex = G_OTHER; |