Thread: Where is adding/removing prayers handled?

Results 1 to 3 of 3
  1. #1 Where is adding/removing prayers handled? 
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    I don't see any way to add or remove prayers with an Interface Editor, or CS2 Editor. Any ideas?

    download.png
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2017
    Posts
    123
    Thanks given
    47
    Thanks received
    63
    Rep Power
    72
    Quote Originally Posted by Skrew View Post
    I don't see any way to add or remove prayers with an Interface Editor, or CS2 Editor. Any ideas?

    download.png
    I found that this script (1237) seems to send the data to the interface (id=271)

    Code:
    void script_1237(Widget widget0) {
        int int1;
        int int2;
        int int3;
        int int4;
        int int5;
        int int6;
        int int7;
        int int8;
        int int9;
        AttrMap attrmap10;
        Sprite sprite11;
        Sprite sprite12;
        int int13;
        int int14;
        string str0;
        widget0.clearChildren();
        int1 = 5;
        int2 = 30;
        int3 = 30;
        int4 = 0;
        int5 = 8;
        int6 = int5;
        int7 = 6;
        int8 = 30 + 7;
        if (VARC[1052] == 1 && VARPBIT[6840] == 0) {
            int5 = 5;
            int6 = int5;
            int8 = 30 + 4;
        }
        int9 = 30 + 6;
        if (VARC[181] == 1) {
            int5 = 8;
            int6 = int5;
            int7 = 30;
            int8 = 30 + 7;
            int9 = 30 + 5;
        }
        attrmap10 = null;
        sprite11 = null;
        sprite12 = null;
        str0 = "";
        int13 = 0;
        int14 = 30;
        if (VARPBIT[6840] == 1) {
            int14 = 20;
        }
        while (int4 < int14) {
            attrmap10 = datamap('i', 'J', (DataMap)2279, int4);
            if (VARPBIT[6840] == 1) {
                attrmap10 = datamap('i', 'J', (DataMap)863, int4);
            }
           //These are taken from structs { 736, 735, 734, 737. --see end }
            sprite12 = getAttributeMapValue(attrmap10, 736); //locked sprite id
             sprite11 = getAttributeMapValue(attrmap10, 735); //unlocked sprite id
            str0 = getAttributeMapValue(attrmap10, 734); //Gets hover-over-component data
            int13 = getAttributeMapValue(attrmap10, 737); //level req
            ACTIVE.createChild(widget0, 5, int4);
            ACTIVE.setSize(int2, int3, 0, 0);
            ACTIVE.setPosition(int6, int7, 0, 0);
            ACTIVE.setSprite(sprite12);
            ACTIVE.bindMouseToSpriteShape(false);
            if (VARC[181] == 0) {
                ACTIVE.setContextMenuOption(1, "Activate" + "<col=ff9040>");
                ACTIVE.setScriptCallOnConfigChange(49, CTX_WIDGET, widget(271, 7), int4, 1395, 1582, "IIiY");
                ACTIVE.setScriptCallOnMouseOver(1160, CTX_WIDGET, CTX_WIDGET_CHILD, widget(271, 49), str0, 25, 190, "IiIsii");
                if (int4 == 0 && VARPBIT[6521] == 10) {
                    ACTIVE.setScriptCallOnGlobalConfigChange(1428, CTX_WIDGET, CTX_WIDGET_CHILD, 1024, "IiY");
                }
            }
            ACTIVE.setScriptCallOnSkillChange(52, int13, sprite12, sprite11, CTX_WIDGET, CTX_WIDGET_CHILD, 5, "iddIiY");
            ACTIVE.setScriptCallOnMouseExit(40, widget(271, 49), "I");
            int4 = int4 + 1;
            if (int4 % int1 == 0) {
                int6 = int5;
                int7 = int7 + int9;
            } else {
                int6 = int6 + int8;
            }
        }
        return;
    }
    Code:
        {
          "id": 663,
          "values": {
            "736": 138,
            "737": 10,
            "738": "You need a Prayer level of at least 10 to use Rock Skin.",
            "734": "Level 10\u003cbr\u003eRock Skin\u003cbr\u003eIncreases your Defence by 10%",
            "735": 118
          }
        }

    However on load, the prayer interface will load script 1236(). Hope this helps.

    [667/CS2] Decompiled Clientscripts
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    Very helpful thank you.
    Reply With Quote  
     

  5. Thankful user:



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: 0
    Last Post: 04-27-2013, 05:15 PM
  2. Where is player appearance handled?
    By Revival in forum Help
    Replies: 5
    Last Post: 05-05-2012, 05:16 AM
  3. [PI] Where is auto retaliate handled?
    By infestor1 in forum Help
    Replies: 0
    Last Post: 08-05-2011, 07:14 PM
  4. Where is auto logout handled?
    By Moronic in forum Help
    Replies: 2
    Last Post: 07-24-2010, 10:25 PM
  5. Where is talking handled in a delta?
    By Moronic in forum Help
    Replies: 5
    Last Post: 06-11-2010, 11:25 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
  •