Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. if (p.privateChat == 0) {
  2. for (int i = 0; i < c.friends.length; i++) {
  3. if (c.friends[i] != 0) {
  4. if (l == c.friends[i]) {
  5. loadPM(l, world);
  6. return;
  7. }
  8. }
  9. }
  10. } else if (p.privateChat == 1) {
  11. for (int i = 0; i < c.friends.length; i++) {
  12. if (c.friends[i] != 0) {
  13. if (l == c.friends[i]) {
  14. if (o.getPA().isInPM(Misc.playerNameToInt64(c.playerName))) {
  15. loadPM(l, world);
  16. return;
  17. } else {
  18. loadPM(l, 0);
  19. return;
  20. }
  21. }
  22. }
  23. }
  24. } else if (p.privateChat == 2) {
  25. for (int i = 0; i < c.friends.length; i++) {
  26. if (c.friends[i] != 0) {
  27. if (l == c.friends[i] && c.playerRights < 2) {
  28. loadPM(l, 0);
  29. return;
  30. }
  31. }
  32. }
  33. }
  34. }
  35.  
  36. public boolean isInPM(long l) {
  37. for (int i = 0; i < c.friends.length; i++) {
  38. if (c.friends[i] != 0) {
  39. if (l == c.friends[i]) {
  40. return true;
  41. }
  42. }
  43. }
  44. return false;
  45. }
  46. boolean canRun = getRunningEnergy() > 0;
  47. if (c.isRunning) {
  48. if (canRun)
  49. dir2 = getNextWalkingDirection();
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement