Jump to content

Welcome to DreamBot

VIP Enhancement

Want to upgrade your DreamBot experience? Consider signing up for VIP!
VIP allows you to run as many accounts as you want, view the forums ad-free, receive 10% off all script purchases, and so much more!
Visit the store to learn about all of these great features!

Upgrade to VIP Now
News Ticker
  • New Forum Theme!
  • New Forum Chatbox (on the way)
  • Chatbox Mods Soon Needed
  • Suggest Forum Rank Colors
  • Forum Updates

DreamBot is the only Deadman Mode supported bot on the market!

Download the DreamBot client today!





Nuclear Nezz

Client Release 2.9.8.4

Recommended Posts

3 hours ago, Nuclear Nezz said:

What?

Hiding entities would probably require injection, which we're not. The rest I'm not sure what you're talking about.

]

  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);
  }
  }

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×