Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. if(rsInterface.type == 2)
  2. {
  3. rsInterface.inv = new int[rsInterface.width * rsInterface.height];
  4. rsInterface.invStackSizes = new int[rsInterface.width * rsInterface.height];
  5. rsInterface.aBoolean259 = stream.readUnsignedByte() == 1;
  6. rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1;
  7. rsInterface.usableItemInterface = stream.readUnsignedByte() == 1;
  8. rsInterface.aBoolean235 = stream.readUnsignedByte() == 1;
  9. rsInterface.invSpritePadX = stream.readUnsignedByte();
  10. rsInterface.invSpritePadY = stream.readUnsignedByte();
  11. rsInterface.spritesX = new int[20];
  12. rsInterface.spritesY = new int[20];
  13. rsInterface.sprites = new Sprite[20];
  14. for(int j2 = 0; j2 < 20; j2++)
  15. {
  16. int k3 = stream.readUnsignedByte();
  17. if(k3 == 1)
  18. {
  19. rsInterface.spritesX[j2] = stream.readSignedWord();
  20. rsInterface.spritesY[j2] = stream.readSignedWord();
  21. String s1 = stream.readString();
  22. if(streamLoader_1 != null && s1.length() > 0)
  23. {
  24. int i5 = s1.lastIndexOf(",");
  25. rsInterface.sprites[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamLoader_1, s1.substring(0, i5));
  26. }
  27. }
  28. }
  29.  
  30. rsInterface.actions = new String[5];
  31. for(int l3 = 0; l3 < 5; l3++)
  32. {
  33. rsInterface.actions[l3] = stream.readString();
  34. if (rsInterface.id == 3214)
  35. rsInterface.actions[3] = "Buy 100";
  36. if(rsInterface.actions[l3].length() == 0)
  37. rsInterface.actions[l3] = null;
  38. }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement