Thread: adding/removing objects client sided.[non]

Results 1 to 6 of 6
  1. #1 adding/removing objects client sided.[non] 
    Registered Member
    Join Date
    Nov 2009
    Posts
    3,056
    Thanks given
    113
    Thanks received
    838
    Rep Power
    740
    In a delta source, when you walk around about every 20 seconds u get much lagg and lots of errors on walking bcuz the area loading packet also places objects everywhere in the worldmap. mostly for no reason, this will get rid of it:

    first in client.java add these method:

    for adding an object
    usage:
    makeGlobalObject(absX, absY, objectId, face, type, height);
    Code:
                public void makeGlobalObject(int i, int j, int k, int l, int i1, int j1)
                {
                    int k1 = mapX - 6;
                    int l1 = mapY - 6;
                    int i2 = i - k1 * 8;
                    int j2 = j - l1 * 8;
                    byte byte0 = 10;
                    int k2 = anIntArray1177[byte0];
                    if(j2 > 0 && j2 < 103 && i2 > 0 && i2 < 103)
                                method130(404, -1, k, l, k2, j2, i1, j1, i2, 0);
                }
    and for deleting one:
    usage:
    deletethatobject(absX, absY);
    Code:
                public void deletethatobject(int i, int j)
                {
                    int k1 = mapX - 6;
                    int l1 = mapY - 6;
                    int i2 = i - k1 * 8;
                    int j2 = j - l1 * 8;
                    byte byte0 = 10;
                    int k2 = anIntArray1177[byte0];
                    if(j2 > 0 && j2 < 103 && i2 > 0 && i2 < 103)
                                method130(404, -1, 6951, -1, k2, j2, 10, 0, i2, 0);
                }
    then add this method:
    Code:
    public void loadNewObjects() {
    }
    and within it, add all your makeglobalobject, and deleteobject stuff.[/B]

    now in method22 add:
    Code:
    loadNewObjects();
    declare these:
    Code:
        public static int MapX;
        public static int MapY;
        public static int mapX;
        public static int mapY;
    now look for:
    Code:
                    if(anInt1008 == 73)
                    {
                        l2 = aClass30_Sub2_Sub2_1083.method435(true);
                        i11  = aClass30_Sub2_Sub2_1083.method410();
    
                        aBoolean1159 = false;
                    }
    and replace it with:
    Code:
                    if(anInt1008 == 73)
                    {
                        l2 = mapX = MapX = aClass30_Sub2_Sub2_1083.method435(true);
                        i11 = mapY = MapY = aClass30_Sub2_Sub2_1083.method410();
    
                        aBoolean1159 = false;
                    }
    All done
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    dude could you repost i never saw?
    Reply With Quote  
     

  3. #3  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,468
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    .........not kool


    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    Quote Originally Posted by King J Scape View Post
    .........not kool
    here man i found it [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2009
    Posts
    3,056
    Thanks given
    113
    Thanks received
    838
    Rep Power
    740
    placed it back.
    Reply With Quote  
     

  6. Thankful user:

    Rob

  7. #6  
    Rob
    Rob is offline
    Why are you looking here?


    Join Date
    Jul 2012
    Age
    27
    Posts
    3,221
    Thanks given
    831
    Thanks received
    357
    Rep Power
    559
    Thanks for this,will check it out and probably use it
    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. Hyperion adding/removing objects
    By the323909 in forum Help
    Replies: 1
    Last Post: 07-31-2010, 06:02 PM
  2. Adding client sided objects?
    By i r me in forum Help
    Replies: 1
    Last Post: 07-31-2009, 04:21 AM
  3. Remove all global objects (client-sided)
    By Zahhak in forum Configuration
    Replies: 5
    Last Post: 07-26-2009, 03:18 AM
  4. {renamed}Swats deleting objects client sided
    By MistaahSells in forum Snippets
    Replies: 9
    Last Post: 06-12-2009, 11:05 AM
  5. [Tut] Adding/Moving/Removing Global Objects
    By XxMixTheMusicxX in forum Tutorials
    Replies: 17
    Last Post: 09-07-2007, 08:44 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
  •