Thread: Chaos Altar not working

Results 1 to 7 of 7
  1. #1 Chaos Altar not working 
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Well i've tried to code Chaos altar to go to my prayers with Ss and Turm and others.

    Well i get errors when i try add it.

    I got it from my old source cos the source i currently have didnt have it in.

    ActionHandler.java


    Code:
    							case 411:
    			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;
    Code:
    src\server\model\players\ActionHandler.java:175: error: cannot find symbol
                            if(c.altarPrayed == 0) {
                                ^
      symbol:   variable altarPrayed
      location: variable c of type Client
    src\server\model\players\ActionHandler.java:176: error: cannot find symbol
                                    c.altarPrayed = 1;
                                     ^
      symbol:   variable altarPrayed
      location: variable c of type Client
    src\server\model\players\ActionHandler.java:182: error: cannot find symbol
                                    c.altarPrayed = 0;
                                     ^
      symbol:   variable altarPrayed
      location: variable c of type Client
    src\server\model\players\ActionHandler.java:186: error: cannot find symbol
                                    c.getCurse().resetCurse();
                                     ^
      symbol:   method getCurse()
      location: variable c of type Client
    Note: src\server\world\map\I.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    4 errors
    Press any key to continue . . .


    Attached image

    Attached image
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jun 2012
    Posts
    438
    Thanks given
    13
    Thanks received
    27
    Rep Power
    0
    declare altarprayed variable and do u have curses class?
    Reply With Quote  
     

  3. #3  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    No i dont have anything, But all i know is that the Sprites are in the cache


    Attached image

    Attached image
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Aug 2012
    Posts
    808
    Thanks given
    56
    Thanks received
    98
    Rep Power
    0
    add this in player.java

    public int altarPrayed;
    Reply With Quote  
     

  5. #5  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Quote Originally Posted by Zerlox View Post
    add this in player.java

    public int altarPrayed;
    Done it. Now i have 1 more error.

    src\server\model\players\ActionHandler.java:186: error: cannot find symbol
    c.getCurse().resetCurse();
    ^
    symbol: method getCurse()
    location: variable c of type Client
    Note: src\server\world\map\I.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .


    Attached image

    Attached image
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Aug 2012
    Posts
    808
    Thanks given
    56
    Thanks received
    98
    Rep Power
    0
    you need curses added..
    Reply With Quote  
     

  7. #7  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    Alright i think i've done it, Thanks for the help =)

    Edit: Alright everything works but i have a small thing, My prayers dont work they dont actiavte its like they havent been clicked


    Attached image

    Attached image
    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. [PI] Chaos altar for Donators Only
    By atsiv3 in forum Help
    Replies: 6
    Last Post: 01-31-2011, 12:35 PM
  2. Altar isnt working?
    By owner jacob in forum Help
    Replies: 5
    Last Post: 11-15-2010, 03:57 PM
  3. VAC Chaos MW2
    By Chris in forum PC
    Replies: 13
    Last Post: 07-13-2010, 03:55 PM
  4. Ancient/Modern altar not working??
    By pk3r john in forum Help
    Replies: 0
    Last Post: 12-07-2009, 12:13 AM
  5. Working prayer altar
    By Ishana in forum Requests
    Replies: 2
    Last Post: 10-19-2008, 05:13 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
  •