|
Alright, Rune-server
I recently add wildy everywhere.
So I made banks a SafeZone by doing this in Player.java:
Client.java(process)Code:public boolean inWild() { if (inSafeZone()) { return false; } return true; }
Now I want to add an interface when you are in the safe zone. But for some reason it will never give me the interface.Code:if (this.inWild()) { //final int modY = this.absY > 6400 ? this.absY - 6400 : this.absY; //this.getPA().showOption(3, 0, "Attack", 1); //this.wildLevel = (modY - 3520) / 8 + 1; if (Config.SINGLE_AND_MULTI_ZONES) { if (inMulti()) { getPA().walkableInterface(197); getPA().sendFrame126("@yel@Multi-PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } else if (inSafeZone()) { getPA().walkableInterface(53000); } else { getPA().walkableInterface(197); getPA().sendFrame126("@red@PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } } else { getPA().multiWay(-1); getPA().walkableInterface(197); getPA().sendFrame126("@red@PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } } else if (this.isInBarrows()) { this.getPA().sendFrame126("Kill Count: " + this.barrowsKillCount, 4536); this.getPA().walkableInterface(4535); this.getPA().showOption(3, 0, "null", 1); this.getPA().showOption(2, 0, "null", 1); } else if (inSafeZone()) { getPA().walkableInterface(53000); } else if (inPcBoat()) { getPA().sendFrame126( "Next Departure: " + PestControl.waitTimer + "", 21120); getPA().sendFrame126( "Players Ready: " + PestControl.playersInBoat() + "", 21121); getPA().sendFrame126("(1-25 Players to Start)", 21122); getPA().sendFrame126("Pest Points: " + pcPoints + "", 21123); getPA().walkableInterface(21119); } else if (inPcGame() && PestControl.gameTimer < 0) { getPA().movePlayer(3086, 3493, 0); sendMessage("Sorry for moving you, but you logged into a forbidden area."); } else if (inPcGame()) { for (j = 0; j < NPCHandler.npcs.length; j++) { if (NPCHandler.npcs[j] != null) { if (NPCHandler.npcs[j].npcType == 6142) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21111); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21111); } if (NPCHandler.npcs[j].npcType == 6143) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21112); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21112); } if (NPCHandler.npcs[j].npcType == 6144) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21113); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21113); } if (NPCHandler.npcs[j].npcType == 6145) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21114); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21114); } } } getPA().sendFrame126("0", 21115); if (pcDamage < 15) { getPA().sendFrame126("@red@" + pcDamage + "", 21116); } else { getPA().sendFrame126("@gre@" + pcDamage + "", 21116); } getPA().sendFrame126( "Time remaining: " + PestControl.gameTimer + "", 21117); getPA().walkableInterface(21100); if (inCage()) { getPA().sendFrame126( "Next Departure: " + SheepShave.waitTimer + " Seconds", 21120); getPA().sendFrame126( "Players Ready: " + SheepShave.InSheepShaveWaitingCount() + "", 21121); getPA().sendFrame126("(Need 1 player)", 21122); getPA().sendFrame126("Wool: " + wlPoints + "", 21123); getPA().walkableInterface(21119); } else if (inSheepGame()) { FixingXLog(this); getPA().sendFrame126( "Time remaining: " + SheepShave.gameTimer + " Seconds", 21120); getPA().sendFrame126( "Players In-Game: " + SheepShave.InSheepShaveGameCount() + "", 21121); getPA().sendFrame126("(Need 1 player)", 21122); getPA().sendFrame126("Wool Points: " + wlPoints + "", 21123); getPA().walkableInterface(21119); } } else if (inDuelArena()) { getPA().walkableInterface(201); if (duelStatus == 5) { getPA().showOption(3, 0, "Attack", 1); } else { getPA().showOption(3, 0, "Challenge", 1); } } else if (inCwGame || inPits) { getPA().showOption(3, 0, "Attack", 1); } else if (getPA().inPitsWait()) { getPA().showOption(3, 0, "Null", 1); } else if (!inCwWait) { getPA().sendFrame99(0); getPA().walkableInterface(-1); getPA().showOption(3, 0, "Null", 1); } else if (inPits) { getPA().showOption(3, 0, "Attack", 1); } else if (getPA().inPitsWait()) { getPA().showOption(3, 0, "Null", 1); }
Is it because "return false" is in "public Boolean inwildy"? If I delete the SafeZone from the boolean, it freezes my screen..
How can I fix this? Thanks
Client.java under process:
Code:if (this.inWild()) { //final int modY = this.absY > 6400 ? this.absY - 6400 : this.absY; //this.getPA().showOption(3, 0, "Attack", 1); //this.wildLevel = (modY - 3520) / 8 + 1; if (Config.SINGLE_AND_MULTI_ZONES) { if (inMulti()) { getPA().walkableInterface(197); getPA().sendFrame126("@yel@Multi-PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } else if (inSafeZone()) { getPA().walkableInterface(53000); } else { getPA().walkableInterface(197); getPA().sendFrame126("@red@PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } } else { getPA().multiWay(-1); getPA().walkableInterface(197); getPA().sendFrame126("@red@PvP", 199); this.getPA().showOption(3, 0, "Attack", 1); } } else if (this.isInBarrows()) { this.getPA().sendFrame126("Kill Count: " + this.barrowsKillCount, 4536); this.getPA().walkableInterface(4535); this.getPA().showOption(3, 0, "null", 1); this.getPA().showOption(2, 0, "null", 1); } else if (inSafeZone()) { getPA().walkableInterface(53000); } else if (inPcBoat()) { getPA().sendFrame126( "Next Departure: " + PestControl.waitTimer + "", 21120); getPA().sendFrame126( "Players Ready: " + PestControl.playersInBoat() + "", 21121); getPA().sendFrame126("(1-25 Players to Start)", 21122); getPA().sendFrame126("Pest Points: " + pcPoints + "", 21123); getPA().walkableInterface(21119); } else if (inPcGame() && PestControl.gameTimer < 0) { getPA().movePlayer(3086, 3493, 0); sendMessage("Sorry for moving you, but you logged into a forbidden area."); } else if (inPcGame()) { for (j = 0; j < NPCHandler.npcs.length; j++) { if (NPCHandler.npcs[j] != null) { if (NPCHandler.npcs[j].npcType == 6142) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21111); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21111); } if (NPCHandler.npcs[j].npcType == 6143) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21112); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21112); } if (NPCHandler.npcs[j].npcType == 6144) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21113); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21113); } if (NPCHandler.npcs[j].npcType == 6145) { if (NPCHandler.npcs[j].isDead) { getPA().sendFrame126("Dead", 21114); } else getPA().sendFrame126( "" + NPCHandler.npcs[j].HP + "", 21114); } } } getPA().sendFrame126("0", 21115); if (pcDamage < 15) { getPA().sendFrame126("@red@" + pcDamage + "", 21116); } else { getPA().sendFrame126("@gre@" + pcDamage + "", 21116); } getPA().sendFrame126( "Time remaining: " + PestControl.gameTimer + "", 21117); getPA().walkableInterface(21100); if (inCage()) { getPA().sendFrame126( "Next Departure: " + SheepShave.waitTimer + " Seconds", 21120); getPA().sendFrame126( "Players Ready: " + SheepShave.InSheepShaveWaitingCount() + "", 21121); getPA().sendFrame126("(Need 1 player)", 21122); getPA().sendFrame126("Wool: " + wlPoints + "", 21123); getPA().walkableInterface(21119); } else if (inSheepGame()) { FixingXLog(this); getPA().sendFrame126( "Time remaining: " + SheepShave.gameTimer + " Seconds", 21120); getPA().sendFrame126( "Players In-Game: " + SheepShave.InSheepShaveGameCount() + "", 21121); getPA().sendFrame126("(Need 1 player)", 21122); getPA().sendFrame126("Wool Points: " + wlPoints + "", 21123); getPA().walkableInterface(21119); } } else if (inDuelArena()) { getPA().walkableInterface(201); if (duelStatus == 5) { getPA().showOption(3, 0, "Attack", 1); } else { getPA().showOption(3, 0, "Challenge", 1); } } else if (inCwGame || inPits) { getPA().showOption(3, 0, "Attack", 1); } else if (getPA().inPitsWait()) { getPA().showOption(3, 0, "Null", 1); } else if (!inCwWait) { getPA().sendFrame99(0); getPA().walkableInterface(-1); getPA().showOption(3, 0, "Null", 1); } else if (inPits) { getPA().showOption(3, 0, "Attack", 1); } else if (getPA().inPitsWait()) { getPA().showOption(3, 0, "Null", 1); }
inSafeZone X and Y must be correct. otherwise it will not showup.
Debug the inSafeZone method
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |