I'm trying to remove right click options like "follow", and "trade with" in a certain spot
This is the code I'm using
Code:
else if (Boundary.isIn(this, Boundary.())) {
getPA().showOption(4, 0, "null", 3);
getPA().showOption(5, 0, "null", 4);
}
else if (!Boundary.isIn(this, Boundary.())) {
getPA().showOption(4, 0, "Follow", 3);
getPA().showOption(5, 0, "Trade with", 4);
}
It will only remove what ever option it calls first. For example, if i put the (5,0,null,4) above the (4,0,null,3), whenever I'm in the boundary it will only remove the "trade with" option and not the "follow".
Why is it not removing both options?
I've also tried just removing one, and then calling the same boundary again to remove the second one, and it still wont work, I'm stumped.
Edit: Is there a way to just remove the right click option all together? I've looked through the client but cant figure out how to make it remove the option for only a certain boundary.