Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void npcInteraction(String actionType, int type) {
- Class4_Sub2_Sub1_Sub3_Sub1 npc = null;
- int npcId = 0;
- for (int i = 0; i < aClass4_Sub2_Sub1_Sub3_Sub1Array869.length; i++) {
- Class4_Sub2_Sub1_Sub3_Sub1 testnpc = aClass4_Sub2_Sub1_Sub3_Sub1Array869[i];
- if (testnpc != null) {
- if (testnpc.aClass15_1301.aLong186 == type) {
- npc = aClass4_Sub2_Sub1_Sub3_Sub1Array869[i];
- npcId = i;
- break;
- }
- }
- }
- if (npc != null) {
- doWalkTo(false, false, npc.smallY[0], myPlayer.smallY[0], 1, 1, 2, 0, npc.smallX[0], 0, 0, (myPlayer.smallX[0]));
- anInt788 = anInt29;
- anInt789 = anInt30;
- anInt791 = 2;
- anInt790 = 0;
- if (actionType.equalsIgnoreCase("first click")) {
- aClass16_749.method238((byte) 4, 112);
- aClass16_749.method269(0, npcId);
- } else if (actionType.equalsIgnoreCase("second click")) {
- aClass16_749.method238((byte) 4, 13);
- aClass16_749.method271(3, npcId);
- } else if (actionType.equalsIgnoreCase("attack")) {
- aClass16_749.method238((byte) 4, 67);
- aClass16_749.method270(npcId, 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement