Nuclear Nezz 2040 Author Share Posted February 11, 2019 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.