Thread: Equipment

Results 1 to 7 of 7
  1. #1 Equipment 
    Registered Member
    Join Date
    Dec 2016
    Posts
    65
    Thanks given
    4
    Thanks received
    3
    Rep Power
    11
    How should my sprites be ? I am trying to get my equipment Screen working but it just pops up with no image as an interface.
    public static void equipmentScreen(RSFont[] TDA) {
    RSInterface Interface = addInterface(19148);
    addSprite(19149, 0, "Interfaces/Equipment/CHAR");
    addHover(19150, 3, 0, 19151, 3, "Interfaces/Equipment/CHAR", 21, 21, "Close");
    addHovered(19151, 2, "Interfaces/Equipment/CHAR", 21, 21, 19152);
    addText(19154, "Equip Your Character...", 0xFF981F, false, true, 52, TDA, 2);
    addText(1673, "Attack bonus", 0xFF981F, false, true, 52, TDA, 2);
    addText(1674, "Defense bonus", 0xFF981F, false, true, 52, TDA, 2);
    addText(1685, "Other bonuses", 0xFF981F, false, true, 52, TDA, 2);
    addText(1675, "Stab:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1676, "Slash:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1677, "Crush:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1678, "Magic:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1679, "Ranged:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1680, "Stab:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1681, "Slash:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1682, "Crush:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1683, "Magic:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1684, "Ranged:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1686, "Strength:", 0xFF981F, false, true, 52, TDA, 1);
    addText(1687, "Prayer:", 0xFF981F, false, true, 52, TDA, 1);
    addText(19155, "0%", 0xFF981F, false, true, 52, TDA, 1);
    addChar(19153);
    int last = 45;
    int frame = 0;
    setChildren(last, Interface);
    setBounds(19149, 1, 5, frame, Interface);frame++;
    setBounds(19150, 372, 10, frame, Interface);frame++;
    setBounds(19151, 372, 10, frame, Interface);frame++;
    setBounds(19153, 20, 90, frame, Interface);frame++;
    setBounds(19154, 23, 29, frame, Interface);frame++;
    setBounds(1673, 265, 71, frame, Interface); frame++;
    setBounds(1674, 265, 163, frame, Interface); frame++;
    setBounds(1675, 272, 85, frame, Interface); frame++;
    setBounds(1676, 272, 99, frame, Interface); frame++;
    setBounds(1677, 272, 113, frame, Interface); frame++;
    setBounds(1678, 272, 127, frame, Interface); frame++;
    setBounds(1679, 272, 141, frame, Interface); frame++;
    setBounds(1680, 272, 177, frame, Interface); frame++;
    setBounds(1681, 272, 191, frame, Interface); frame++;
    setBounds(1682, 272, 205, frame, Interface); frame++;
    setBounds(1683, 272, 219, frame, Interface); frame++;
    setBounds(1684, 272, 233, frame, Interface); frame++;
    setBounds(1685, 265, 253, frame, Interface); frame++;
    setBounds(1686, 272, 267, frame, Interface); frame++;
    setBounds(1687, 272, 281, frame, Interface); frame++;
    setBounds(19155, 94, 286, frame, Interface); frame++;
    setBounds(1645, 83, 106, frame, Interface); frame++;
    setBounds(1646, 83, 135, frame, Interface); frame++;
    setBounds(1647, 83, 172, frame, Interface); frame++;
    setBounds(1648, 83, 213, frame, Interface); frame++;
    setBounds(1649, 27, 185, frame, Interface); frame++;
    setBounds(1650, 27, 221, frame, Interface); frame++;
    setBounds(1651, 139, 185, frame, Interface); frame++;
    setBounds(1652, 139, 221, frame, Interface); frame++;
    setBounds(1653, 53, 148, frame, Interface); frame++;
    setBounds(1654, 112, 148, frame, Interface); frame++;
    setBounds(1655, 63, 109, frame, Interface); frame++;
    setBounds(1656, 117, 108, frame, Interface); frame++;
    setBounds(1657, 83, 71, frame, Interface); frame++;
    setBounds(1658, 42, 110, frame, Interface); frame++;
    setBounds(1659, 83, 110, frame, Interface); frame++;
    setBounds(1660, 124, 110, frame, Interface); frame++;
    setBounds(1661, 27, 149, frame, Interface); frame++;
    setBounds(1662, 83, 149, frame, Interface); frame++;
    setBounds(1663, 139, 149, frame, Interface); frame++;
    setBounds(1664, 83, 189, frame, Interface); frame++;
    setBounds(1665, 83, 229, frame, Interface); frame++;
    setBounds(1666, 27, 229, frame, Interface); frame++;
    setBounds(1667, 139, 229, frame, Interface); frame++;
    setBounds(1688, 29, 111, frame, Interface); frame++;
    }
    It should be Char 0 right?
    Reply With Quote  
     

  2. #2  
    Registered Member omnee's Avatar
    Join Date
    Apr 2011
    Posts
    135
    Thanks given
    30
    Thanks received
    11
    Rep Power
    18
    "Interfaces/Equipment/CHAR 0", that's the background yes. (This will be in "/Sprites/Interfaces/Equipment/" in your cache, not just "/Interfaces/Equipment/")
    And also, it might be case sensitive, so check that...
    Can you take a screenshot of what shows up when you open the interface and post it here?
    Also came to my mind that maybe you're opening the wrong interface ID?
    Try opening through ::interface 19148, if you have the command.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2016
    Posts
    65
    Thanks given
    4
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by omnee View Post
    "Interfaces/Equipment/CHAR 0", that's the background yes. (This will be in "/Sprites/Interfaces/Equipment/" in your cache, not just "/Interfaces/Equipment/")
    And also, it might be case sensitive, so check that...
    Can you take a screenshot of what shows up when you open the interface and post it here?
    Also came to my mind that maybe you're opening the wrong interface ID?
    Try opening through ::interface 19148, if you have the command.
    The same thing happens when i use ::interface 19148, my screen stays the same but I can't click anywhere within my game screen, once I click my minimap to move. my game screen is operational again. All my sprites are in the correct folder and are named correctly.
    Reply With Quote  
     

  4. #4  
    Registered Member omnee's Avatar
    Join Date
    Apr 2011
    Posts
    135
    Thanks given
    30
    Thanks received
    11
    Rep Power
    18
    Quote Originally Posted by frostb1te View Post
    The same thing happens when i use ::interface 19148, my screen stays the same but I can't click anywhere within my game screen, once I click my minimap to move. my game screen is operational again. All my sprites are in the correct folder and are named correctly.
    Pm me your skype, I'll try to help you later today when I get home
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2016
    Posts
    65
    Thanks given
    4
    Thanks received
    3
    Rep Power
    11
    Still having this issue. I tried changing the ID and it comes up partially but messed up.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2016
    Posts
    65
    Thanks given
    4
    Thanks received
    3
    Rep Power
    11
    I dont have my computer in front of me but what if I make a new interface.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2016
    Posts
    65
    Thanks given
    4
    Thanks received
    3
    Rep Power
    11
    I got it working now, I will post my code later. but now the Addchar isnt working
    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. Making it so you can't pot for equips.
    By nearbosh in forum Tutorials
    Replies: 6
    Last Post: 10-31-2007, 09:47 PM
  2. Handling Equips
    By Whitey in forum Tutorials
    Replies: 22
    Last Post: 10-06-2007, 08:39 PM
  3. Equiped Skill Cape IDs
    By Richard in forum Tutorials
    Replies: 13
    Last Post: 09-13-2007, 07:30 AM
  4. Changing Starting Equipment (new coders)
    By hellz chevy in forum Tutorials
    Replies: 8
    Last Post: 08-06-2007, 07:41 PM
  5. Fixing 2h Equips With shield
    By sarah101 in forum Tutorials
    Replies: 10
    Last Post: 06-20-2007, 09:56 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
  •