Thread: Quick Prayer Selection

Results 1 to 2 of 2
  1. #1 Quick Prayer Selection 
    Registered Member
    Ebp90's Avatar
    Join Date
    Apr 2018
    Posts
    238
    Thanks given
    18
    Thanks received
    158
    Rep Power
    878
    Hello, I am starting on a fresh 667 base with a unedited 667 Deob.

    I was writing the prayer book and I've got everything working, except for the quick prayer selection visual part.

    There's nothing wrong with the code I've written for it, as it correctly selects and remember the quick prayers. It's the part where it visually displays what you selected.

    Here's an example of the problem; I disabled the option slots to show it. As you can see in the video, even tho it's not recognizing my clicks server side, the client knows I am clicking it and is sending the checks. But I am not sending anything from the server aside from sending the config 181 value 1 to show the quick prayer selection. Another annoying part is that when I click the chivalry and rapid renewal prayers, it sends the sound for you being out of prayer.



    I searched in the CS2 scripts and I've found which ones are doing what.

    Code:
    int script_2295(int arg0) {
        int ivar1;
        if (isMember() && ((boolean)script_2294(arg0))) {
            return 0;
        }
        if (((boolean)script_5256())) {
            playSoundEffect(2673, 1, 0);
            return 0;
        }
        ivar1 = 2279;
        if (((boolean)bitconfig_6840)) {
            ivar1 = 863;
        }
        if (getSkillActualLvl(5) < getOtherCommonData(cs2method_3408(105, 74, ivar1, arg0), 737)) {
            playSoundEffect(2673, 1, 0);
            return 0;
        }
        if ((arg0 == 25) && ((getSkillActualLvl(1) < 55) || (bitconfig_3909 != 8))) {
            playSoundEffect(2673, 1, 0);
            return 0;
        }
        if ((arg0 == 26) && ((getSkillActualLvl(1) < 70) || (bitconfig_3909 != 8))) {
            playSoundEffect(2673, 1, 0);
            return 0;
        }
        return 1;
    }
    This script is what's making it play those sounds. If you don't have the defence level for each and aren't sending the varbit 3909 value 8 (which I assume is the knight waves training ground), it will send them. I know because I sent it and it stopped. But what I find odd is that the last conditional statement is talking about piety, but it is no longer on that slot post dungeoneering because they added rapid renewal. Also chivarly requires 65 defence not 55? This makes me think I am sending the wrong config to show the quick prayer selection.

    Code:
    void script_1717() {
        if (((boolean)globalint_181)) {
            deleteAllExtraChilds(new WidgetPointer(271,7));
            deleteAllExtraChilds(new WidgetPointer(271,8));
            setWidgetIsHidden(false, new WidgetPointer(271,42));
            setWidgetIsHidden(true, new WidgetPointer(271,0));
            script_1388(17760298);
            script_1237(17760264);
            setWidgetIsHidden(true, new WidgetPointer(271,9));
            deleteAllExtraChilds(new WidgetPointer(271,6));
            cs2method2100(0, 0, new WidgetPointer(271,5));
            setWidgetSize(16384, 16384, 2, 2, new WidgetPointer(271,5));
        } else {
            deleteAllExtraChilds(new WidgetPointer(271,42));
            setWidgetIsHidden(true, new WidgetPointer(271,42));
            setWidgetIsHidden(false, new WidgetPointer(271,0));
            script_1237(17760264);
            script_1293(17760263);
            setWidgetIsHidden(false, new WidgetPointer(271,9));
            setWidgetSize(16384, add(getWidgetActualHeight(new WidgetPointer(271,9)), getWidgetActualHeight(new WidgetPointer(271,0))), 2, 1, new WidgetPointer(271,5));
            script_1704();
        }
        return;
    }
    This other script is what causes the selection component to appear. It seems that the scripts 1388 and 1237 it calls are what make the check boxes appear.

    Anyway I tried to figure this out for hours with no luck. I am thinking I have the wrong config or something. If you know how to fix it I would appreciate the help.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Stimulant's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    1,457
    Thanks given
    248
    Thanks received
    187
    Rep Power
    578
    Bump.
    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. quick prayer interface
    By nick2010 in forum Help
    Replies: 0
    Last Post: 09-14-2010, 08:32 PM
  2. Quick Prayers
    By The xx in forum Help
    Replies: 6
    Last Post: 09-04-2010, 07:59 PM
  3. Prayer selection
    By NICKname in forum Requests
    Replies: 1
    Last Post: 10-25-2009, 07:38 AM
  4. Quick prayers
    By Scu11 in forum RS2 Server
    Replies: 11
    Last Post: 09-01-2009, 06:57 PM
  5. Quick Prayer Glitch Fix
    By Mr Dylan in forum Tutorials
    Replies: 7
    Last Post: 04-30-2008, 11:57 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
  •