Thread: [PI] Help with adding prayer book swapping

Results 1 to 3 of 3
  1. #1 [PI] Help with adding prayer book swapping 
    Registered Member
    Join Date
    Mar 2008
    Posts
    47
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    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.
    Member of Rune-Server since March '08
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    You need to add the variable and getter,
    Code:
    public int altarPrayed;
    In class Player
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2008
    Posts
    47
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Thank you so much 2012!
    Member of Rune-Server since March '08
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 4
    Last Post: 10-10-2010, 05:00 AM
  2. Replies: 11
    Last Post: 08-18-2010, 03:06 PM
  3. Prayer Book
    By Janizary in forum Snippets
    Replies: 20
    Last Post: 10-15-2009, 10:58 PM
  4. Help with prayer book
    By .Chris in forum Help
    Replies: 0
    Last Post: 05-24-2009, 08:53 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •