Alright, So I have been trying to disable prayer in a certain area, I have gotten regular prayer to disable just fine, and it worked. Now I am having issues with Ancient Curses, this is how I have done it.
Code:
if (c.inNomad()) {
for(int p = 0; p < c.CURSE.length; p++) { // reset prayer glows
c.curseActive[p] = false;
c.getPA().sendFrame36(c.CURSE_GLOW[p], 0);
}
c.sendMessage("You cannot use prayer in here!- Cheater");
return;
}
I also have added this code, for the area
Code:
public boolean inNomad()
{
return absX >= 1753 && absX <= 1765 && absY >= 5179 && absY <= 5196;
}
This is exactly how I did it for normal prayers minus all the curse stuff, and it still doesn't work, anyone can help me please. or give me a tip of some kind. I am not really asking anyone to spoon feed me I just need some hint at what is being done wrong.
Thank you very much.