SHARE
TWEET

Untitled

Rootware Jan 17th, 2020 (edited) 77 in 138 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @Override
  2.     public String onTimer(String name, Npc npc, Player player)
  3.     {
  4.         if (name.equalsIgnoreCase("1"))
  5.         {
  6.             npc.getAI().setIntention(IntentionType.MOVE_TO, PAGE_LOCS[0]);
  7.             startQuestTimer("2", npc, player, 5000);
  8.         }
  9.         else if (name.equalsIgnoreCase("2"))
  10.         {
  11.             npc.getAI().setIntention(IntentionType.MOVE_TO, PAGE_LOCS[1]);
  12.             startQuestTimer("3", npc, player, 12000);
  13.         }
  14.         else if (name.equalsIgnoreCase("3"))
  15.         {
  16.             npc.getAI().setIntention(IntentionType.MOVE_TO, PAGE_LOCS[2]);
  17.             startQuestTimer("4", npc, player, 18000);
  18.         }
  19.         else if (name.equalsIgnoreCase("4"))
  20.         {
  21.             QuestState st = player.getQuestState(getName());
  22.             if (st != null)
  23.                 st.set("end_walk", "1");
  24.            
  25.             npc.broadcastNpcSay(new NpcSay(npc, MessageType.ALL, NpcStringId.PLEASE_CHECK_THIS_BOOKCASE_S1).addStringParameter(player.getName()));
  26.         }
  27.        
  28.         return null;
  29.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top