in Client.java search:
You should see it there, if you can't figure it out post it here.Code:public void logout() {
|
Everytime a player logs out, it resets the prayer book back to normal. While this is good if your own normal prayers, if your on curse prayers, you'll have to go all the way back to the chaos altar and have it "Functionally" turned to curse prayers even though its sidebar interface is already there.
I haven't messed with prayer much on my server because players like it, but this is one problem they don't like and I don't seem to know where to find this at. I've looked around and really found nothing helpful. Can someone help me with this?
in Client.java search:
You should see it there, if you can't figure it out post it here.Code:public void logout() {
Add your prayerbook variable to your playersave.
Code:if(c.altarPrayed == 1) { for(int p = 0; p < c.PRAYER.length; p++) { // reset prayer glows c.prayerActive[p] = false; c.getPA().sendFrame36(c.PRAYER_GLOW[p], 0); } c.sendMessage("You cannot use these prayers! Reset them!!"); return; }
It says it resets prayer glows. But if you were on the curse book before it'll give you that message. I tried to call the method that resets it to the curses but it kept giving me a not found error no matter what I did. I can just as easily make it work by making a variable for the player save like he said above but I want to know before I do. Is there any way I can change this so that it resets the curse prayers instead?
Bump
Search for your playersave, then add your prayer (and curses if I use) variables.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |