Thread: [Kronos] How to Remove Objects

Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    GameObject.forObj(13994, 3076, 3510, 0, GameObject::remove);

    It doesn't work and I have a lot of errors after I added it:

    > Task :kronos-server:compileJava
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\map\Graphic.jav a:14: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.
    private int id = -1;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\map\Graphic.jav a:18: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.
    private int soundId = -1, soundType = 1, soundDelay;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\map\Graphic.jav a:18: warning: @Builder will ignore the initializing expression entirely. If you want the initializing expression to serve as default, add @Builder.Default. If it is not supposed to be settable during building, make the field final.
    private int soundId = -1, soundType = 1, soundDelay;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\item\Item.java: 30: warning: Not generating getId(): A method with that name already exists
    @Expose @Getter private int id, amount;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\item\Item.java: 30: warning: Not generating getAmount(): A method with that name already exists
    @Expose @Getter private int id, amount;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\item\Item.java: 32: warning: Not generating getSlot(): A method with that name already exists
    @Setter @Getter private int slot = -1;
    ^
    C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\model\entity\player\P layerCounter.java:353: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    this(setAction, getAction, null);
    ^
    cast to Achievement for a varargs call
    cast to Achievement[] for a non-varargs call and to suppress this warning
    Note: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\java\io\ruin\services\discord\impl \commands\BugReport.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    7 warnings
    Quote Originally Posted by Armo View Post
    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.
    If it worked on urs so how I got errors and mine still doesn't working..
    Reply With Quote  
     

  2. #12  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Ilgaz View Post
    GameObject.forObj(13994, 3076, 3510, 0, GameObject::remove);

    It doesn't work and I have a lot of errors after I added it:





    If it worked on urs so how I got errors and mine still doesn't working..

    Those are not errors, they are warnings which won't do anything. As long as you have 0 errors and some warnings it means it saved successfully. Make sure you have the right coords

    It has to be exact, sometimes if the object is bigger it is harder to find out where the object actually is. There is a core to the object location
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    Those are not errors, they are warnings which won't do anything. As long as you have 0 errors and some warnings it means it saved successfully. Make sure you have the right coords

    It has to be exact, sometimes if the object is bigger it is harder to find out where the object actually is. There is a core to the object location
    I tried all the coords and still there, also I am not looking to receive warnings, I want a clean work, but thanks for ur time bro and for ur help I will repp+ But I still need this help. If someone else have any clue of this problem.
    Reply With Quote  
     

  4. #14  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Ilgaz View Post
    I tried all the coords and still there, also I am not looking to receive warnings, I want a clean work, but thanks for ur time bro and for ur help I will repp+ But I still need this help. If someone else have any clue of this problem.
    Remove that line of code at the sendMapPacket() method and go to io.ruin > Server.java

    Under

    Code:
        CentralClient.start();
    Add

    Code:
    GameObject.forObj(13994, 3076, 3509, 0, GameObject::remove);
    Should look like this:

    Code:
           if (!OfflineMode.enabled)
                CentralClient.start();
    
            GameObject.forObj(13994, 3076, 3509, 0, GameObject::remove);
    That will definitely remove the weapon rack.
    Reply With Quote  
     

  5. Thankful user:


  6. #15  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by Armo View Post
    Remove that line of code at the sendMapPacket() method and go to io.ruin > Server.java

    Under

    Code:
        CentralClient.start();
    Add

    Code:
    GameObject.forObj(13994, 3076, 3509, 0, GameObject::remove);
    Should look like this:

    Code:
           if (!OfflineMode.enabled)
                CentralClient.start();
    
            GameObject.forObj(13994, 3076, 3509, 0, GameObject::remove);
    That will definitely remove the weapon rack.

    It worked. But you think it's good to add a huge of deleting objects in server class?

    OT: I received this:

    > Task :kronos-server:compileKotlin
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ event\impl\eventboss\EventBoss.kt: (36, 59): Parameter 'killHit' is never used, could be renamed to _
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ lms\LMSFogSequence.kt: (7, 53): Parameter 'regionIds' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ lms\LastManStandingSession.kt: (257, 57): Parameter 'hit' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ lms\LastManStandingSession.kt: (269, 64): Parameter 'message' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ lms\Lisa.kt: (25, 39): Parameter 'lisa' is never used, could be renamed to _
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ lms\Lisa.kt: (74, 38): Parameter 'lisa' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\Tournament.kt: (93, 13): Parameter 'forceEnd' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\Tournament.kt: (400, 53): Parameter 'message' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\Tournament.kt: (423, 39): Parameter 'killer' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\Tournament.kt: (423, 55): Parameter 'hit' is never used
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\TournamentManager.kt: (97, 48): Comparison of incompatible enums 'TournamentPlaylist' and 'TournamentAttributes?' is always unsuccessful
    w: C:\Users\HOME\Desktop\Kronos\Kronos-master\Kronos-master\kronos-server\src\main\kotlin\io\ruin\content\activities\ tournament\TournamentManager.kt: (191, 26): Unnecessary safe call on a non-null receiver of type MutableList<Player>
    Reply With Quote  
     

  7. #16  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Ilgaz View Post
    It worked. But you think it's good to add a huge of deleting objects in server class?

    OT: I received this:
    I don't see any problem with it as it is only called once when the server boots up, and then its never called again.

    As I said before, those are warnings and not errors, you don't have to worry about them.
    Reply With Quote  
     

  8. #17  
    BoomScape #1
    BoomScape's Avatar
    Join Date
    May 2013
    Posts
    2,201
    Thanks given
    254
    Thanks received
    210
    Discord
    View profile
    Rep Power
    43
    use a map editor
    Reply With Quote  
     

  9. #18  
    Registered Member

    Join Date
    Jun 2016
    Posts
    459
    Thanks given
    190
    Thanks received
    137
    Discord
    View profile
    Rep Power
    231
    ^What BoomScape said instead of going through the hassle of wanting to remove a object via code just use a editor looks better and better to do it that way aswell imo but if you insist on doing it via code on Kronos you can do something like -


    Code:
    obj(13994, x, y, 0, type, direction).remove();
    Inside of ClientObj.java
    Reply With Quote  
     

  10. #19  
    Registered Member
    Join Date
    Apr 2016
    Posts
    14
    Thanks given
    0
    Thanks received
    3
    Discord
    View profile
    Rep Power
    11
    I used RspsI to remove some world object. Some aren't in the code but already integrated in .dat
    Reply With Quote  
     

  11. #20  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    170
    Thanks received
    228
    Rep Power
    326
    Quote Originally Posted by Armo View Post
    You can* use a map editor such as this one to remove it: [Only registered and activated users can see links. ]
    I already suggested that
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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
  •