Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. public void npcInteraction(String actionType, int type) {
  2. Class4_Sub2_Sub1_Sub3_Sub1 npc = null;
  3. int npcId = 0;
  4. for (int i = 0; i < aClass4_Sub2_Sub1_Sub3_Sub1Array869.length; i++) {
  5. Class4_Sub2_Sub1_Sub3_Sub1 testnpc = aClass4_Sub2_Sub1_Sub3_Sub1Array869[i];
  6. if (testnpc != null) {
  7. if (testnpc.aClass15_1301.aLong186 == type) {
  8. npc = aClass4_Sub2_Sub1_Sub3_Sub1Array869[i];
  9. npcId = i;
  10. break;
  11. }
  12. }
  13. }
  14. if (npc != null) {
  15. doWalkTo(false, false, npc.smallY[0], myPlayer.smallY[0], 1, 1, 2, 0, npc.smallX[0], 0, 0, (myPlayer.smallX[0]));
  16. anInt788 = anInt29;
  17. anInt789 = anInt30;
  18. anInt791 = 2;
  19. anInt790 = 0;
  20. if (actionType.equalsIgnoreCase("first click")) {
  21. aClass16_749.method238((byte) 4, 112);
  22. aClass16_749.method269(0, npcId);
  23. } else if (actionType.equalsIgnoreCase("second click")) {
  24. aClass16_749.method238((byte) 4, 13);
  25. aClass16_749.method271(3, npcId);
  26. } else if (actionType.equalsIgnoreCase("attack")) {
  27. aClass16_749.method238((byte) 4, 67);
  28. aClass16_749.method270(npcId, 0);
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement