Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  1.                 new AryanLineTwoWayObject(ECTOFUNGUS_PRISON_PETE, BRAINDEATH_ISLAND_PRISON_PETE, new int[] {
  2.                         2825, -20, 20, -20, 20, 0, 120, 1, 1, 0
  3.                 }, new int[] {
  4.                         2826, -20, 20, -20, 20, 0, 120, 1, 1, 0
  5.                 }, "Talk", "Prison pete") {
  6.  
  7.                     @Override
  8.                     public boolean secondaryTimeActionAToB(ColorSkeltonScriptable cs) throws InterruptedException, AryanWebReCalc,
  9.                             AryanWebChanged {
  10.                         NPCChat chat = cs.theNPCChatFinder.getNPCChat(0);
  11.                         if (chat != null && (chat.selectContains("click here") || chat.selectContains("okay") || chat.selectContains("braindeath"))) {
  12.                             cs.waitTillNPCChatChangesFrom(chat);
  13.                             return true;
  14.                         }
  15.                         return super.secondaryTimeActionAToB(cs);
  16.                     }
  17.  
  18.                     @Override
  19.                     public boolean secondaryTimeActionBToA(ColorSkeltonScriptable cs) throws InterruptedException, AryanWebReCalc,
  20.                             AryanWebChanged {
  21.                         NPCChat chat = cs.theNPCChatFinder.getNPCChat(0);
  22.                         if (chat != null && (chat.selectContains("click here") || chat.selectContains("okay"))) {
  23.                             cs.waitTillNPCChatChangesFrom(chat);
  24.                             return true;
  25.                         }
  26.                         return super.secondaryTimeActionBToB(cs);
  27.                     }
  28.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement