Package instances

Examples of instances.MemoryOfDisaster


          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(INSTANCE_ID))
      {
        ReflectionUtils.enterReflection(player, new MemoryOfDisaster(player), INSTANCE_ID);
      }
      else
      {
        showChatWindow(player, "default/33477-no.htm");
      }
View Full Code Here


          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(MEMORY_OF_DISASTER_ID))
      {
        ReflectionUtils.enterReflection(player, new MemoryOfDisaster(player), MEMORY_OF_DISASTER_ID);
      }
      htmltext = null;
    }
    if (npc == null)
    {
View Full Code Here

    final Reflection r = getActor().getReflection();
    if (!(r instanceof MemoryOfDisaster))
    {
      return;
    }
    final MemoryOfDisaster ad = (MemoryOfDisaster) r;
    switch (timerId)
    {
      case 1:
        Functions.npcSayInRange(getActor(), 1500, NpcString.MM_IM_SEE);
        final List<NpcInstance> list = r.getAllByNpcId(TOROCCO_ID, true);
        if (list.size() > 0)
        {
          final NpcInstance torocco = list.get(0);
          torocco.getAI().notifyEvent(CtrlEvent.EVT_SCRIPT_EVENT, "TOROCCO_1");
        }
        break;
      case 2:
        Functions.npcSayInRange(getActor(), 1500, NpcString.THANK_YOU_FOR_THE_REPORT_ROGIN);
        addTimer(3, 1600);
        break;
      case 3:
        Functions.npcSayInRange(getActor(), 1500, NpcString.SOLDIERS_WERE_FIGHTING_A_BATTLE_THAT_CANT_BE_WON);
        addTimer(4, 1600);
        break;
      case 4:
        Functions.npcSayInRange(getActor(), 1500, NpcString.BUT_WE_HAVE_TO_DEFEND_OUR_VILLAGE_SO_WERE_FIGHTING);
        addTimer(5, 1600);
        break;
      case 5:
        Functions.npcSayInRange(getActor(), 1500, NpcString.FOR_THE_FINE_WINES_AND_TREASURES_OF_ADEN);
        addTimer(6, 1600);
        break;
      case 6:
        Functions.npcSayInRange(getActor(), 1500, NpcString.IM_PROUD_OF_EVERY_ONE_OF);
        addTimer(7, 1600);
        addTimer(7, 2400);
        addTimer(7, 3600);
        addTimer(8, 2000);
        break;
      case 7:
        broadCastScriptEvent("SHOUT_ALL_1", 500);
        break;
      case 8:
        ad.spawnTentacles();
        addTimer(9, 8000);
        break;
      case 9:
        Functions.npcSayInRange(getActor(), 1500, NpcString.UGH_IFI_SEE_YOU_IN_THE_SPIRIT_WORLD_FIRST_ROUND_IS_ON_ME);
        addTimer(11, 1000);
View Full Code Here

    super.onEvtTimer(timerId, arg1, arg2);

    Reflection r = getActor().getReflection();
    if(!(r instanceof MemoryOfDisaster))
      return;
    MemoryOfDisaster ad = (MemoryOfDisaster) r;

    switch(timerId)
    {
      case 1:
        Functions.npcSayInRange(getActor(), 1500, NpcString.MM_IM_SEE);
        List<NpcInstance> list = r.getAllByNpcId(TOROCCO_ID, true);
        if(list.size() > 0)
        {
          NpcInstance torocco = list.get(0);
          torocco.getAI().notifyEvent(CtrlEvent.EVT_SCRIPT_EVENT, "TOROCCO_1");
        }
        break;
      case 2:
        Functions.npcSayInRange(getActor(), 1500, NpcString.THANK_YOU_FOR_THE_REPORT_ROGIN);
        addTimer(3, 1600);
        break;
      case 3:
        Functions.npcSayInRange(getActor(), 1500, NpcString.SOLDIERS_WERE_FIGHTING_A_BATTLE_THAT_CANT_BE_WON);
        addTimer(4, 1600);
        break;
      case 4:
        Functions.npcSayInRange(getActor(), 1500, NpcString.BUT_WE_HAVE_TO_DEFEND_OUR_VILLAGE_SO_WERE_FIGHTING);
        addTimer(5, 1600);
        break;
      case 5:
        Functions.npcSayInRange(getActor(), 1500, NpcString.FOR_THE_FINE_WINES_AND_TREASURES_OF_ADEN);
        addTimer(6, 1600);
        break;
      case 6:
        Functions.npcSayInRange(getActor(), 1500, NpcString.IM_PROUD_OF_EVERY_ONE_OF);
        addTimer(7, 1600);
        addTimer(7, 2400);
        addTimer(7, 3600);

        addTimer(8, 2000);
        break;
      case 7:
        broadCastScriptEvent("SHOUT_ALL_1", 500);
        break;
      case 8:
        ad.spawnTentacles();
        addTimer(9, 8000);
        break;
      case 9:
        Functions.npcSayInRange(getActor(), 1500, NpcString.UGH_IFI_SEE_YOU_IN_THE_SPIRIT_WORLD_FIRST_ROUND_IS_ON_ME);
        addTimer(11, 1000);
View Full Code Here

TOP

Related Classes of instances.MemoryOfDisaster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.