Thread: Client with particles

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
  1. #21  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Zakawer2 View Post
    Thanks, I fixed it by myself.
    I ripped it completely from this client, no errors, but no particles either?
    This is the completionist cape definition:
    Code:
    case 20073:
     itemDef.modelid = 65270;
     itemDef.name = "Completionist Cape";
     itemDef.description = "For the masters of ZeRix";
     itemDef.modelZoom = 1385;
     itemDef.modelOffset1 = 0;
     itemDef.modelOffset2 = 24;
     itemDef.modelRotationY = 279;
     itemDef.modelRotationX = 948;
     itemDef.anInt165 = 65297;
     itemDef.anInt200 = 65297;
     itemDef.groundActions = new String[5];
     itemDef.groundActions[2] = "Take";
     itemDef.itemActions = new String[5];
     itemDef.itemActions[1] = "Wear";
     break;
    and this is what I have in my particle attachment:
    Code:
    package client;
    
    import java.util.HashMap;
    import java.util.Map;
    
    public class ParticleAttachment {
        private static final Map<Integer, int[][]> attachments = new HashMap<>();
        public static int[][] getAttachments(int model) {
            return attachments.get(model);
        }
        static {
            /* TokHaar Kal */
            attachments.put(62575, new int[][] {{ 0, 1 }, { 1, 1 }, { 3, 1 }, { 131, 1 }, { 132, 1 }, { 133, 1 }, { 134, 1 }, { 135, 1 }, { 136, 1 }, { 137, 1 }, { 138, 1 }, { 139, 1 }, { 140, 1 }, { 141, 1 }, { 142, 1 }, { 145, 1 },});
            /* Completionist Cape */
            attachments.put(65297, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            attachments.put(65328, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            /*rd cape */
            attachments.put(40122, new int[][] {{235, 0}, {229 , 0}, {241 , 0}, {238 , 0}, {232 , 0},});
            /*master dungeoneering cape*/
            attachments.put(59885, new int[][] {{387, 2}, {385 , 2}, {376 , 2}, {382 , 2}, {379 , 2},});
            
            attachments.put(63604, new int[][] {{799, 4}, {800 , 4}, {802 , 4}, {804 , 4}, {804 , 4}, {807 , 4}, {752 , 4}, {792 , 4}, {791 , 4}, {790 , 4}, {789 , 4}, {787 , 4},{786 , 4},{785 , 4},{784 , 4},{793 , 4},{794 , 4},{796 , 4}, 
                                                {750, 4}, {751 , 4}, {507 , 4}, {753 , 4}, {805 , 4}, {803 , 4}, {801 , 4}, {797 , 4}, {795 , 4}, {783 , 4}, {744 , 4}, {745 , 4}, {746 , 4}, {788 , 4},{749 , 4},{793 , 4},{794 , 4},{796 , 4},
                                                {747, 4}, {748 , 4}, {488 , 4}, {504 , 4}, {505 , 4}, {506 , 4}, {491 , 4}, {508 , 4}, {754 , 4}, {1117 , 4}, {755 , 4}, {1118 , 4}, {1093 , 4}, {1094 , 4},{1095 , 4},{901 , 4},{902 , 4},{473 , 4},
                                                {474, 4}, {743 , 4}, {475 , 4}, {744 , 4}, {476 , 4},});
            
        }
    }
    Attached image
    Reply With Quote  
     

  2. #22  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    Quote Originally Posted by RememberM3 View Post
    I ripped it completely from this client, no errors, but no particles either?
    This is the completionist cape definition:
    Code:
    case 20073:
     itemDef.modelid = 65270;
     itemDef.name = "Completionist Cape";
     itemDef.description = "For the masters of ZeRix";
     itemDef.modelZoom = 1385;
     itemDef.modelOffset1 = 0;
     itemDef.modelOffset2 = 24;
     itemDef.modelRotationY = 279;
     itemDef.modelRotationX = 948;
     itemDef.anInt165 = 65297;
     itemDef.anInt200 = 65297;
     itemDef.groundActions = new String[5];
     itemDef.groundActions[2] = "Take";
     itemDef.itemActions = new String[5];
     itemDef.itemActions[1] = "Wear";
     break;
    and this is what I have in my particle attachment:
    Code:
    package client;
    
    import java.util.HashMap;
    import java.util.Map;
    
    public class ParticleAttachment {
        private static final Map<Integer, int[][]> attachments = new HashMap<>();
        public static int[][] getAttachments(int model) {
            return attachments.get(model);
        }
        static {
            /* TokHaar Kal */
            attachments.put(62575, new int[][] {{ 0, 1 }, { 1, 1 }, { 3, 1 }, { 131, 1 }, { 132, 1 }, { 133, 1 }, { 134, 1 }, { 135, 1 }, { 136, 1 }, { 137, 1 }, { 138, 1 }, { 139, 1 }, { 140, 1 }, { 141, 1 }, { 142, 1 }, { 145, 1 },});
            /* Completionist Cape */
            attachments.put(65297, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            attachments.put(65328, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            /*rd cape */
            attachments.put(40122, new int[][] {{235, 0}, {229 , 0}, {241 , 0}, {238 , 0}, {232 , 0},});
            /*master dungeoneering cape*/
            attachments.put(59885, new int[][] {{387, 2}, {385 , 2}, {376 , 2}, {382 , 2}, {379 , 2},});
            
            attachments.put(63604, new int[][] {{799, 4}, {800 , 4}, {802 , 4}, {804 , 4}, {804 , 4}, {807 , 4}, {752 , 4}, {792 , 4}, {791 , 4}, {790 , 4}, {789 , 4}, {787 , 4},{786 , 4},{785 , 4},{784 , 4},{793 , 4},{794 , 4},{796 , 4}, 
                                                {750, 4}, {751 , 4}, {507 , 4}, {753 , 4}, {805 , 4}, {803 , 4}, {801 , 4}, {797 , 4}, {795 , 4}, {783 , 4}, {744 , 4}, {745 , 4}, {746 , 4}, {788 , 4},{749 , 4},{793 , 4},{794 , 4},{796 , 4},
                                                {747, 4}, {748 , 4}, {488 , 4}, {504 , 4}, {505 , 4}, {506 , 4}, {491 , 4}, {508 , 4}, {754 , 4}, {1117 , 4}, {755 , 4}, {1118 , 4}, {1093 , 4}, {1094 , 4},{1095 , 4},{901 , 4},{902 , 4},{473 , 4},
                                                {474, 4}, {743 , 4}, {475 , 4}, {744 , 4}, {476 , 4},});
            
        }
    }
    You most likely dont have depthbuffering, change all Rasterizer.depthBuffer to Rasterizer.pixels in method146 they will show through walls and through the player though
    Reply With Quote  
     

  3. #23  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Quote Originally Posted by RememberM3 View Post
    I ripped it completely from this client, no errors, but no particles either?
    This is the completionist cape definition:
    Code:
    case 20073:
     itemDef.modelid = 65270;
     itemDef.name = "Completionist Cape";
     itemDef.description = "For the masters of ZeRix";
     itemDef.modelZoom = 1385;
     itemDef.modelOffset1 = 0;
     itemDef.modelOffset2 = 24;
     itemDef.modelRotationY = 279;
     itemDef.modelRotationX = 948;
     itemDef.anInt165 = 65297;
     itemDef.anInt200 = 65297;
     itemDef.groundActions = new String[5];
     itemDef.groundActions[2] = "Take";
     itemDef.itemActions = new String[5];
     itemDef.itemActions[1] = "Wear";
     break;
    and this is what I have in my particle attachment:
    Code:
    package client;
    
    import java.util.HashMap;
    import java.util.Map;
    
    public class ParticleAttachment {
        private static final Map<Integer, int[][]> attachments = new HashMap<>();
        public static int[][] getAttachments(int model) {
            return attachments.get(model);
        }
        static {
            /* TokHaar Kal */
            attachments.put(62575, new int[][] {{ 0, 1 }, { 1, 1 }, { 3, 1 }, { 131, 1 }, { 132, 1 }, { 133, 1 }, { 134, 1 }, { 135, 1 }, { 136, 1 }, { 137, 1 }, { 138, 1 }, { 139, 1 }, { 140, 1 }, { 141, 1 }, { 142, 1 }, { 145, 1 },});
            /* Completionist Cape */
            attachments.put(65297, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            attachments.put(65328, new int[][] {{494, 3}, {488 , 3}, {485 , 3}, {476 , 3}, {482 , 3}, {479 , 3}, {491 , 3},});
            /*rd cape */
            attachments.put(40122, new int[][] {{235, 0}, {229 , 0}, {241 , 0}, {238 , 0}, {232 , 0},});
            /*master dungeoneering cape*/
            attachments.put(59885, new int[][] {{387, 2}, {385 , 2}, {376 , 2}, {382 , 2}, {379 , 2},});
            
            attachments.put(63604, new int[][] {{799, 4}, {800 , 4}, {802 , 4}, {804 , 4}, {804 , 4}, {807 , 4}, {752 , 4}, {792 , 4}, {791 , 4}, {790 , 4}, {789 , 4}, {787 , 4},{786 , 4},{785 , 4},{784 , 4},{793 , 4},{794 , 4},{796 , 4}, 
                                                {750, 4}, {751 , 4}, {507 , 4}, {753 , 4}, {805 , 4}, {803 , 4}, {801 , 4}, {797 , 4}, {795 , 4}, {783 , 4}, {744 , 4}, {745 , 4}, {746 , 4}, {788 , 4},{749 , 4},{793 , 4},{794 , 4},{796 , 4},
                                                {747, 4}, {748 , 4}, {488 , 4}, {504 , 4}, {505 , 4}, {506 , 4}, {491 , 4}, {508 , 4}, {754 , 4}, {1117 , 4}, {755 , 4}, {1118 , 4}, {1093 , 4}, {1094 , 4},{1095 , 4},{901 , 4},{902 , 4},{473 , 4},
                                                {474, 4}, {743 , 4}, {475 , 4}, {744 , 4}, {476 , 4},});
            
        }
    }
    It could be me but I'm fairly sure you need to have ''65270'', the model of your completionist cape in your particledefinitions.
    Reply With Quote  
     

  4. #24  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Stevenhax View Post
    It could be me but I'm fairly sure you need to have ''65270'', the model of your completionist cape in your particledefinitions.
    65270 is the model id of my inventory model, I guess I need to use my wield model?
    Attached image
    Reply With Quote  
     

  5. #25  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by sluggy View Post
    You most likely dont have depthbuffering, change all Rasterizer.depthBuffer to Rasterizer.pixels in method146 they will show through walls and through the player though
    How would I know I have depth buffering, because I ripped fog and I hope depthbuffering from proselythe
    Attached image
    Reply With Quote  
     

  6. #26  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Quote Originally Posted by RememberM3 View Post
    65270 is the model id of my inventory model, I guess I need to use my wield model?
    You're right fuck me I'm blind af, sorry.
    Reply With Quote  
     

  7. #27  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Stevenhax View Post
    You're right fuck me I'm blind af, sorry.
    No problem, you're trying to help, which I appreciate a lot!
    Reply With Quote  
     

  8. #28  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Quote Originally Posted by RememberM3 View Post
    No problem, you're trying to help, which I appreciate a lot!
    Got mine working a moment ago, where I went wrong was at RenderAtPoint in model.java where the parameters on his copy didn't match mine so I was
    setting offX Y Z wrong. Thought I'd mention it in case you overlooked that as well.
    Reply With Quote  
     

  9. Thankful user:


  10. #29  
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    1,191
    Thanks given
    212
    Thanks received
    285
    Rep Power
    148
    Fun fact. This doesn't support resizing particles with clients that handle zooming in and out. It also doesn't support repositioning the particles while changing between screen modes (E.G: Fixed, Resize, and Fullscreen) though it is a super easy fix if you look hard enough.

    Worked with zion on a cheaphax fix for the resizing while zooming in and out too, but still gotta modify it.

    Also, the origin point of the particles on the vertex doesn't stick right to the models right while on hills. Something else to look into.
    Reply With Quote  
     

  11. Thankful user:


  12. #30  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Stevenhax View Post
    Got mine working a moment ago, where I went wrong was at RenderAtPoint in model.java where the parameters on his copy didn't match mine so I was
    setting offX Y Z wrong. Thought I'd mention it in case you overlooked that as well.
    Oh, lemme try it

    Quote Originally Posted by RiiPiiNFtW View Post
    Fun fact. This doesn't support resizing particles with clients that handle zooming in and out. It also doesn't support repositioning the particles while changing between screen modes (E.G: Fixed, Resize, and Fullscreen) though it is a super easy fix if you look hard enough.

    Worked with zion on a cheaphax fix for the resizing while zooming in and out too, but still gotta modify it.

    Also, the origin point of the particles on the vertex doesn't stick right to the models right while on hills. Something else to look into.
    Oh that's because the particles aren't attached to the cape but rather to a place on the screen or am I very wrong?
    Attached image
    Reply With Quote  
     

Page 3 of 4 FirstFirst 1234 LastLast

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: 45
    Last Post: 09-23-2007, 01:37 PM
  2. need help with making a client with new stuff
    By yahoo112 in forum RS2 Client
    Replies: 1
    Last Post: 09-19-2007, 08:06 PM
  3. Newest client with full chicken and 1 new npc
    By Zachyboo in forum Downloads
    Replies: 39
    Last Post: 09-17-2007, 09:46 PM
  4. Project Scape v3.5 Client with custom items/377
    By blackfirexx in forum RS2 Client
    Replies: 11
    Last Post: 09-07-2007, 12:48 PM
  5. New fire cape client with moving fire cape ^^
    By YeahSon in forum Downloads
    Replies: 4
    Last Post: 07-04-2007, 10:53 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
  •