Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (p.privateChat == 0) {
- for (int i = 0; i < c.friends.length; i++) {
- if (c.friends[i] != 0) {
- if (l == c.friends[i]) {
- loadPM(l, world);
- return;
- }
- }
- }
- } else if (p.privateChat == 1) {
- for (int i = 0; i < c.friends.length; i++) {
- if (c.friends[i] != 0) {
- if (l == c.friends[i]) {
- if (o.getPA().isInPM(Misc.playerNameToInt64(c.playerName))) {
- loadPM(l, world);
- return;
- } else {
- loadPM(l, 0);
- return;
- }
- }
- }
- }
- } else if (p.privateChat == 2) {
- for (int i = 0; i < c.friends.length; i++) {
- if (c.friends[i] != 0) {
- if (l == c.friends[i] && c.playerRights < 2) {
- loadPM(l, 0);
- return;
- }
- }
- }
- }
- }
- public boolean isInPM(long l) {
- for (int i = 0; i < c.friends.length; i++) {
- if (c.friends[i] != 0) {
- if (l == c.friends[i]) {
- return true;
- }
- }
- }
- return false;
- }
- boolean canRun = getRunningEnergy() > 0;
- if (c.isRunning) {
- if (canRun)
- dir2 = getNextWalkingDirection();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement