Thread: prayer switching in krithium

Results 1 to 3 of 3
  1. #1 prayer switching in krithium 
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Alright, so the source has perfect prayer saving etc.. and I tried to follow a guide on making the altar switch your prayers, but it's different for me.

    It's not altar prayed. It's Curses = true

    All I need to do is make it so the altar works with that.

    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();
    //c.protectItem = false;
    }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;

    Original command ^ that came from a guide..

    I tried to add it to suit my stuff.

    case 411:
    {
    if(Curses = false) {
    Curses = true;
    c.setSidebarInterface(5, 22500);
    c.startAnimation(645);
    c.sendMessage("You sense a surge of power flow through your body!");
    c.getCombat().resetPrayers();
    //c.protectItem = false;
    }else {
    Curses = false;
    c.setSidebarInterface(5, 5608);
    c.startAnimation(645);
    c.sendMessage("You sense a surge of purity flow through your body!");
    c.getCurse().resetCurse();
    }
    }
    break;

    So, I either got a compiler command or the altar didn't work.

    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Code:
    case 411:
    if (!c.curses) {
    c.curses = true;
    c.setSidebarInterface(5, 22500);
    c.getCombat().resetPrayers;
    } else {
    c.curses = false;
    c.setSidebarInterface(5, 5608);
    c.getCurse().resetCurse();
    }
    c.sendMessage("You switch you prayers");
    c.startAnimation(645);
    break;
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Quote Originally Posted by Karma_K View Post
    Code:
    case 411:
    if (!c.curses) {
    c.curses = true;
    c.setSidebarInterface(5, 22500);
    c.getCombat().resetPrayers;
    } else {
    c.curses = false;
    c.setSidebarInterface(5, 5608);
    c.getCurse().resetCurse();
    }
    c.sendMessage("You switch you prayers);
    c.startAnimation(645);
    break;
    Thanks man! I had to fix a few things! but never the less thanks! will rep and thanks!

    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. [BASE]Prayer Switching
    By James™ in forum Tutorials
    Replies: 8
    Last Post: 09-22-2008, 05:31 AM
  2. Replies: 21
    Last Post: 08-10-2008, 10:02 PM
  3. Adding Prayer Switching [NOT FULL PRAYER!]
    By AlexMason in forum Configuration
    Replies: 17
    Last Post: 08-04-2008, 02:36 PM
  4. [RS2E] Prayer Switching
    By Encouragin in forum Tutorials
    Replies: 5
    Last Post: 07-16-2008, 09:54 PM
  5. Replies: 11
    Last Post: 02-22-2008, 07:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •