diff options
Diffstat (limited to 'npc/001-14/ctrl.txt')
-rw-r--r-- | npc/001-14/ctrl.txt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/npc/001-14/ctrl.txt b/npc/001-14/ctrl.txt index ab7c035e7..5f1ae2481 100644 --- a/npc/001-14/ctrl.txt +++ b/npc/001-14/ctrl.txt @@ -78,16 +78,26 @@ OnClick: if (gettimetick(2) > @moly_tick) end; @moly_score+=1; .@m=areamonster(@map$, 108, 43, 118, 48, "Target", YellowSpark, 1, "Hocus#MOLY0100::OnClick"); - setunitdata(.@m, UDT_HP, 1); - setunitdata(.@m, UDT_MAXHP, 1); + .@hp=rand2(50, 100); + setunitdata(.@m, UDT_MAXHP, .@hp); + setunitdata(.@m, UDT_HP, .@hp); setunitdata(.@m, UDT_LEVEL, 1); setunitdata(.@m, UDT_SPEED, 60); + setunitdata(.@m, UDT_MODE, MD_CANMOVE); + setunitdata(.@m, UDT_DEF, 32760); + setunitdata(.@m, UDT_MDEF, 0); + setunitdata(.@m, UDT_LUK, 32760); end; OnCheck: if (gettimetick(2) > @moly_tick) end; .@wp = getequipid(EQI_HAND_R); - if (.@wp < 1) addtimer(2000, instance_npcname("Hocus#MOLY0100")+"::OnCheck"); + // Disarmed + if (.@wp < 1) { + addtimer(2000, instance_npcname("Hocus#MOLY0100")+"::OnCheck"); + end; + } + // Illegal weapon if (.@wp != Judgement && .@wp != DarkPulsar && .@wp != Lightbringer && |