Thread: prevent certain objects from loading ?

Results 1 to 6 of 6
  1. #1 prevent certain objects from loading ? 
    Donator


    Join Date
    Jul 2009
    Posts
    1,875
    Thanks given
    119
    Thanks received
    233
    Rep Power
    408
    how can i prevent all objects of a specified ID not spawn at all?
    can anyone make a method for me?
    base: riotscape
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    in what ever does teh createObject add somthing like

    private static final int[] BAD_OBJECTS = {6,1,30};

    in the void add somthing like
    Code:
    for(int obj : BAD_OBJECTS) {
           if(obj == objectId)
                         return;
    }

    Offtopic:

    1.5k Posts fire capes woots.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Lool nice..

    This is client side, I believe.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jun 2009
    Posts
    135
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Or I believe a really bad way would be to loop through every coordinate and check if there is an object on it and if the object is of a certain ID (easy to check) replace it/delete it with deletethatobject() or whatever, I would do this for you but I am not going to as it would be complete bullshit, I think you should try a client-side approach.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Quote Originally Posted by Tobias View Post
    Or I believe a really bad way would be to loop through every coordinate and check if there is an object on it and if the object is of a certain ID (easy to check) replace it/delete it with deletethatobject() or whatever, I would do this for you but I am not going to as it would be complete bullshit, I think you should try a client-side approach.
    You'd need an object dump if your doing this server side.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2009
    Posts
    135
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    No you could (very badly) use a for loop going up to 5000 (i think?) for each x and y and use one of the cases such as first click object to be called which returns the id of the object etc... I could make an object dump easy enough though
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •