Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Client Release 2.9.8.4


    Nuclear Nezz

    Recommended Posts

    3 hours ago, Slipup said:

    ]

      package net..client.plugins.entityhider;
       
      import com.google.common.eventbus.Subscribe;
      import com.google.inject.Provides;
      import javax.inject.Inject;   >   original source code,  so couldn't technically use injections via Botting system now.  thanks for suggestion though
      import net..api.Client;
      import net.runelite.api.events.ConfigChanged;
      import net.runelite.client.config.ConfigManager;
      import net.runelite.client.plugins.Plugin;
      import net.runelite.client.plugins.PluginDescriptor;
       
      @PluginDescriptor(
      name = "Entity Hider",
      enabledByDefault = false
      )
      public class EntityHiderPlugin extends Plugin
      {
      @Inject
      private Client client;
       
      @Inject
      private EntityHiderConfig config;
       
      @Provides
      EntityHiderConfig provideConfig(ConfigManager configManager)
      {
      return configManager.getConfig(EntityHiderConfig.class);
      }
       
      @Override
      protected void startUp()
      {
      updateConfig();
      }
       
      @Subscribe
      public void onConfigChanged(ConfigChanged e)
      {
      updateConfig();
      }
       
      private void updateConfig()
      {
      client.setIsHidingEntities(true);
       
      client.setPlayersHidden(config.hidePlayers());
      client.setPlayersHidden2D(config.hidePlayers2D());
       
      client.setFriendsHidden(config.hideFriends());
      client.setClanMatesHidden(config.hideClanMates());
       
      client.setLocalPlayerHidden(config.hideLocalPlayer());
      client.setLocalPlayerHidden2D(config.hideLocalPlayer2D());
       
      client.setNPCsHidden(config.hideNPCs());
      client.setNPCsHidden2D(config.hideNPCs2D());
       
      client.setAttackersHidden(config.hideAttackers());
       
      client.setProjectilesHidden(config.hideProjectiles());
      }
       
      @Override
      protected void shutDown() throws Exception
      {
      client.setIsHidingEntities(false);
       
      client.setPlayersHidden(false);
      client.setPlayersHidden2D(false);
       
      client.setFriendsHidden(false);
      client.setClanMatesHidden(false);
       
      client.setLocalPlayerHidden(false);
      client.setLocalPlayerHidden2D(false);
       
      client.setNPCsHidden(false);
      client.setNPCsHidden2D(false);
       
      client.setAttackersHidden(false);
       
      client.setProjectilesHidden(false);
      }
      }

    Hiding entities is an injection method. Having the method available in their API doesn't mean nothing is injected. They have a fairly large amount of injection in a lot of places, canceling rendering is a method in the gamepack that they inject into, and if you have it set to hide they return from the start of the method, canceling rs's rendering.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.