Thread: [Kronos] How to Remove Objects

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 [Kronos] How to Remove Objects 
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    How do I remove objects from Kronos server, does anyone know ?

    I will appreciate, I will hit rep++ and thanks for help.
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    I believe this is how

    Code:
    GameObject.forObj(objectId, objectX, objectY, objectHeight, GameObject::remove);
    If you are talking about custom objects added they are located in json files in the data folder (data\objects\spawns)
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    I believe this is how

    Code:
    GameObject.forObj(objectId, objectX, objectY, objectHeight, GameObject::remove);
    If you are talking about custom objects added they are located in json files in the data folder (data\objects\spawns)
    [{ "id": 23311, "x": 3083, "y": 3495, "z": 0, "type": 10 }]

    All the classes looks like that, how exatly I paste what u posted above ?
    Reply With Quote  
     

  5. #4  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Ilgaz View Post
    [{ "id": 23311, "x": 3083, "y": 3495, "z": 0, "type": 10 }]

    All the classes looks like that, how exatly I paste what u posted above ?
    Is it a custom object added or objects normally in the actual OSRS game?
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    Is it a custom object added or objects normally in the actual OSRS game?
    [Only registered and activated users can see links. ]

    I am looking to remove this shit from here, and some other objects in there.
    Reply With Quote  
     

  7. #6  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Ilgaz View Post
    [Only registered and activated users can see links. ]

    I am looking to remove this shit from here, and some other objects in there.
    Well I see you are using the Runelite object developer tool. All you need to do is look for the object id in the json file and remove it.
    Reply With Quote  
     

  8. #7  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    Well I see you are using the Runelite object developer tool. All you need to do is look for the object id in the json file and remove it.
    I tried it shows me the ObjectID class, I opened it and searched the ID of the object, it shows me that:

    public static final int WEAPON_RACK_13994 = 13994;

    I don't think it's added, I just have to write a code in any class to remove it thought.
    Reply With Quote  
     

  9. #8  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    You can* use a map editor such as this one to remove it: [Only registered and activated users can see links. ]

    OR use
    Code:
    GameObject.forObj(objectId, objectX, objectY, objectHeight, GameObject::remove);
    Hold on I'll find out where you can put the line of code.
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    You must use a map editor such as this one to remove it: [Only registered and activated users can see links. ]

    OR use
    Code:
    GameObject.forObj(objectId, objectX, objectY, objectHeight, GameObject::remove);
    Hold on I'll find out where you can put the line of code.
    Yes I hope if u can tell me where I can paste this code in which class
    Reply With Quote  
     

  11. #10  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Most appropriate place I could find:

    io.ruin.network > PacketSender.java

    Right below this line:
    Code:
        private void sendMapPacket(int x, int y, int z, Function<Integer, OutBuffer> write) {
    Add this:

    Code:
    GameObject.forObj(13994, tileX, tileY, tileZ, GameObject::remove);
    You can get the tile coords (x,y,z) from the Runelite developer app "Tile Location" Just hover over the object to get the coords

    I've tested it and it works.
    Reply With Quote  
     

Page 1 of 2 12 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. how to remove objects
    By B r e a d in forum Help
    Replies: 6
    Last Post: 10-30-2013, 12:18 AM
  2. Replies: 20
    Last Post: 05-29-2013, 10:15 PM
  3. How to remove objects 718
    By Sk3wlbus in forum Help
    Replies: 1
    Last Post: 02-18-2013, 07:17 AM
  4. Replies: 3
    Last Post: 12-05-2012, 01:49 AM
  5. How to remove objects?
    By Bladadah in forum Help
    Replies: 6
    Last Post: 10-23-2012, 01:20 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
  •