why you're synchronizing this command?
|
i need my bank command to not work in wildy, during a duel, and in fight caves. i can make it not let you bank during them spots but it doesn't work out of them spots either. Here is the command i use
Code:if (playerCommand.startsWith("bank") && c.playerRights >= 1) { c.getPA().sendFrame126("Bank of BloodyRune", 5292); if(c.duelStatus == 5){ c.sendMessage("You can't Bank during a duel!"); if(c.inFightCaves()){ c.sendMessage("You can't Bank during this minigame!"); if(c.inWild() && !c.safeZone()){ c.sendMessage("You can't bank in the wilderness!"); } else if(c.inWild() == false && c.inFightCaves() == false){ c.getPA().openUpBank(); } } } }
Code:src\server\model\players\packets\Commands.java:400: unreachable statement if(c.inFightCaves()) ^ src\server\model\players\packets\Commands.java:403: unreachable statement if(c.inWild() && !c.safeZone()) ^ src\server\model\players\packets\Commands.java:406: unreachable statement c.getPA().sendFr ame126("Bank of BloodyRune", 5292); ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors Press any key to continue . . .
Thank Me please
if (playerCommand.startsWith("bank") && c.playerRights >= 1) {
c.getPA().sendFrame126("Bank of BloodyRune", 5292);
if(c.duelStatus == 5){
c.sendMessage("You can't Bank during a duel!");
}
if(c.inFightCaves()){
c.sendMessage("You can't Bank during this minigame!");
}
if (!c.inWild()) {
c.getPA().openUpBank();
} else {
c.sendMessage("You can't use that in the PvP zone!");
}
}
ok well i have a ::home and i took what kacey did above and added that to my ::home command, it says "You cant Teleport during a duel" then about 2-3 seconds later teleports me home here is my command..
Code:if (playerCommand.equals("home")) { if(c.duelStatus == 5) { c.sendMessage("You can't teleport during a duel!"); } if(c.inFightCaves()) { c.sendMessage("You can't teleport during this minigame!"); } if (!c.inWild()) { c.getPA().movePlayer(3354, 3342, 0); } else { c.sendMessage("You can't use that in the PvP zone!"); } }
Code:if (playerCommand.equals("home")) { if(c.duelStatus == 5) { c.sendMessage("You can't teleport during a duel!"); return; } if(c.inFightCaves()) { c.sendMessage("You can't teleport during this minigame!"); return; } if (!c.inWild()) { c.getPA().movePlayer(3354, 3342, 0); } else { c.sendMessage("You can't use that in the PvP zone!"); } }
Code:if (playerCommand.startsWith("home")) { if(c.duelStatus == 5) { c.sendMessage("You can't teleport during a duel!"); } else { if(c.inFightCaves()) { c.sendMessage("You can't teleport during this minigame!"); } else { if(!c.inWild()) { c.getPA().movePlayer(3354, 3342, 0); } else { c.sendMessage("You can't teleport in the wilderness!"); } } } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |