Hey, i'm trying to add pray book switching on my [PI] Server.
This is the code i'm trying to add.
Code:
case 1992:
if(c.altarPrayed == 0) {
c.altarPrayed = 1;
c.setSidebarInterface(5, 22500);
c.startAnimation(645);
c.sendMessage("You sense a surge of power flow through your body!");
c.getCombat().resetPrayers();
} else {
c.altarPrayed = 0;
c.setSidebarInterface(5, 5608);
c.startAnimation(645);
c.sendMessage("You sense a surge of purity flow through your body!");
c.getCurse().resetCurse();
}
break;
And this is the error im getting.
Code:
src\server\model\players\ActionHandler.java:428: cannot find symbol
symbol : variable altarPrayed
location: class server.model.players.Client
if(c.altarPrayed == 0) {
^
src\server\model\players\ActionHandler.java:429: cannot find symbol
symbol : variable altarPrayed
location: class server.model.players.Client
c.altarPrayed = 1;
^
src\server\model\players\ActionHandler.java:435: cannot find symbol
symbol : variable altarPrayed
location: class server.model.players.Client
c.altarPrayed = 0;
^
src\server\model\players\ActionHandler.java:439: cannot find symbol
symbol : method getCurse()
location: class server.model.players.Client
c.getCurse().resetCurse();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Press any key to continue . . .
Has anyone got an idea's on how to fix this?
Thanks.