Hello guys,
I have a bug in my duel arena that I can't attack with melee but with mage I can and if auto retaliate is on then u can fight but u can't right click & attack..
When I added this
Code:
if (inDuelArena()) {
getPA().walkableInterface(201);
if(duelStatus == 5) {
getPA().showOption(3, 0, "Attack", 1);
} else {
getPA().showOption(3, 0, "Challenge", 1);
}
if (inPcGame()) {
getPA().walkableInterface(21100);
}
}
Below the
Code:
if (inFunPk()) {
wildLevel = 99;
headIconPk = 2;
getPA().walkableInterface(197);
getPA().sendFrame126("@blu@FunPk!", 199);
getPA().showOption(3, 0, "Attack", 1);
}
Then the right click attack button dissapeared in funpk and u could also mage + auto retaliate..
But then I replaced the inDuelArena()) { like u can see in the whole code below, funPk attack came back but I still can't manage to fix the duelArena.
Code:
if (inWild() && !isInArd() && !safeZone() && !BountyHunter.inBH(this) && !BountyHunter.safeArea(this)) {
int modY = absY > 6400 ? absY - 6400 : absY;
wildLevel = (((modY - 3520) / 8) + 1);
getPA().walkableInterface(197);
if (Config.SINGLE_AND_MULTI_ZONES) {
if (inMulti()) {
getPA().sendFrame126("@yel@Level: " + wildLevel, 199);
} else {
getPA().sendFrame126("@yel@Level: " + wildLevel, 199);
}
} else {
getPA().multiWay(-1);
getPA().sendFrame126("@yel@Level: " + wildLevel, 199);
}
getPA().showOption(3, 0, "Attack", 1);
}
if (inIsland()) {
int modY = absY > 6400 ? absY - 6400 : absY;
wildLevel = 99;
headIconPk = 2;
getPA().walkableInterface(197);
getPA().showOption(3, 0, "Attack", 1);
getPA().sendFrame126("@red@Madness!", 199);
}
if (BountyHunter.inBH(this)) {
wildLevel = 138;
if (playerTarget > 0) {
getPA().sendFrame126(targetName, 25350);
} else {
getPA().sendFrame126("None", 25350);
}
if (cantLeavePenalty > 0 || pickupPenalty > 0) {
getPA().sendFrame126("" + BountyHunter.getTime(this) + " Sec", 25352);
} else {
getPA().sendFrame126("", 25352);
}
getPA().showOption(3, 0, "Attack", 1);
getPA().walkableInterface(25347);
getPA().sendFrame126(""+ (cantLeavePenalty > 0 ? ("Can't leave for:") : pickupPenalty > 0 ? ("Pickup penalty:") : ("")) + "", 25351);
headIconPk = BountyHunter.getPlayerSkull(this);
getPA().requestUpdates();
}
if (inFunPk()) {
wildLevel = 99;
headIconPk = 2;
getPA().walkableInterface(197);
getPA().sendFrame126("@blu@FunPk!", 199);
getPA().showOption(3, 0, "Attack", 1);
}
/*if (FreeForAllArea()) {
getPA().sendFrame126("Free For All", 6570);
getPA().sendFrame126("Competitors. : " + FreeForAll.playerCount, 6572);
getPA().sendFrame126("", 6664);
getPA().walkableInterface(6673);
getPA().showOption(3, 0, "Attack", 1);
}*/
if (inPcBoat()) {
getPA().walkableInterface(21119);
}
if (inDuelArena()) {
getPA().walkableInterface(201);
if(duelStatus == 5) {
getPA().showOption(3, 0, "Attack", 1);
} else {
getPA().showOption(3, 0, "Challenge", 1);
}
if (inPcGame()) {
getPA().walkableInterface(21100);
}
}
if(!inFunPk() && !inDuelArena() && !inWild() && !inIsland() && !inPcBoat() && !inPcGame() && DoingTut == false && GettingReward == false){
getPA().walkableInterface(-1);
getPA().showOption(3, 0, "null", 1);
}
if (!hasMultiSign && inMulti()) {
hasMultiSign = true;
getPA().multiWay(1);
}
I really need a fix for this, please somebody, I will thank/rep