Пример #1
0
 @Override
 protected void handleSpawned() {
   super.handleSpawned();
   int owner = getOwner().getNpcId();
   switch (owner) {
     case 283913:
       NpcShoutsService.getInstance()
           .sendMsg(getOwner(), 1500679, getOwner().getObjectId(), 0, 2000);
       break;
     case 283914:
       NpcShoutsService.getInstance()
           .sendMsg(getOwner(), 1500680, getOwner().getObjectId(), 0, 2000);
       break;
     case 283915:
       NpcShoutsService.getInstance()
           .sendMsg(getOwner(), 1500681, getOwner().getObjectId(), 0, 2000);
       break;
     case 283916:
       NpcShoutsService.getInstance()
           .sendMsg(getOwner(), 1500682, getOwner().getObjectId(), 0, 2000);
       break;
   }
   despawn();
 }
 @Override
 protected void handleSpawned() {
   super.handleSpawned();
   doorId = getNpcId() == 799661 ? 16 : 54;
 }
Пример #3
0
 @Override
 protected void handleSpawned() {
   super.handleSpawned();
   useskill();
 }