Advertisement
Guest User

Untitled

a guest
Jan 10th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. if(lastActiveInvInterface == anInt1084 && mouseInvInterfaceIndex != anInt1085)
  2. {
  3. RSInterface class9 = RSInterface.interfaceCache[anInt1084];
  4. int j1 = 0;
  5. if(anInt913 == 1 && class9.contentType == 206)
  6. j1 = 1;
  7. if(class9.inv[mouseInvInterfaceIndex] <= 0)
  8. j1 = 0;
  9. if(class9.aBoolean235)
  10. {
  11. int l2 = anInt1085;
  12. int l3 = mouseInvInterfaceIndex;
  13. class9.inv[l3] = class9.inv[l2];
  14. class9.invStackSizes[l3] = class9.invStackSizes[l2];
  15. class9.inv[l2] = -1;
  16. class9.invStackSizes[l2] = 0;
  17. } else
  18. if(j1 == 1)
  19. {
  20. int i3 = anInt1085;
  21. for(int i4 = mouseInvInterfaceIndex; i3 != i4;)
  22. if(i3 > i4)
  23. {
  24. class9.swapInventoryItems(i3, i3 - 1);
  25. i3--;
  26. } else
  27. if(i3 < i4)
  28. {
  29. class9.swapInventoryItems(i3, i3 + 1);
  30. i3++;
  31. }
  32.  
  33. } else
  34. {
  35. class9.swapInventoryItems(anInt1085, mouseInvInterfaceIndex);
  36. }
  37. stream.createFrame(214);
  38. stream.method433(anInt1084);
  39. stream.method424(j1);
  40. stream.method433(anInt1085);
  41. stream.method431(mouseInvInterfaceIndex);
  42. }
  43. } else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement