Ejemplo n.º 1
0
 @Override
 public void onDropRegistered(Npc npc) {
   Set<DropItem> dropItems =
       DropRegistrationService.getInstance().geCurrentDropMap().get(npc.getObjectId());
   int npcId = npc.getNpcId();
   int itemId = 0;
   Integer object = instance.getSoloPlayerObj();
   switch (npcId) {
     case 832865:
       dropItems.clear();
       switch (Rnd.get(1, 3)) {
         case 1:
           itemId = 188052742;
           break;
         case 2:
           itemId = 188052485;
           break;
         case 3:
           itemId = 188053450;
           break;
       }
       dropItems.add(
           DropRegistrationService.getInstance().regDropItem(1, object, npcId, itemId, 1));
       break;
   }
 }
 @Override
 public void onDropRegistered(Npc npc) {
   Set<DropItem> dropItems =
       DropRegistrationService.getInstance().geCurrentDropMap().get(npc.getObjectId());
   int npcId = npc.getNpcId();
   int itemId = 0;
   Integer object = instance.getSoloPlayerObj();
   switch (npcId) {
     case 702700:
       dropItems.add(
           DropRegistrationService.getInstance().regDropItem(1, object, npcId, 185000224, 1));
       if (Rnd.get(1, 100) < 70) {
         dropItems.add(
             DropRegistrationService.getInstance().regDropItem(1, object, npcId, 186000066, 1));
       }
       break;
     case 219963:
     case 219964:
     case 219965:
     case 219966:
     case 219967:
     case 219968:
       dropItems.clear();
       switch (Rnd.get(1, 3)) {
         case 1:
           itemId = 188052548;
           break;
         case 2:
           itemId = 188053620;
           break;
         case 3:
           itemId = 188053400;
           break;
       }
       dropItems.add(
           DropRegistrationService.getInstance().regDropItem(1, object, npcId, itemId, 3));
       break;
   }
 }