Automatic User is banned. Joined Mar 19, 2011 Posts 5,304 Reacts 0 Reputation 0 Credits 0 Apr 10, 2011 #1 Why isn't this code working? What I'd think it should do is log the info of what every player (if they are) is interacting E.G. if zezima is following bob, when the script gets around to "zezima" it'd log "bob"... Code: import com.rsbuddy.script.ActiveScript; import com.rsbuddy.script.Manifest; import com.rsbuddy.script.methods.Players; import com.rsbuddy.script.wrappers.Player; @Manifest( authors = {"Automatic Coding"}, name = "Test", description = "test,", keywords = "test", version = 0.01 ) public class playerChecker extends ActiveScript { Player allPlayers[]; int i = 0; @Override public int loop() { allPlayers = Players.getLoaded(); for(i = 0; i < allPlayers.length; i++) { if(allPlayers[i].getInteracting() != null) { log(allPlayers[i].getInteracting()); } } return 0; } } but all it logs is the shitty things NPCs can do. Code: [INFO] Sun Apr 10 15:47:33 BST 2011: Test: NPC[Banker],actions=[Talk-to,null,Bank,Collect,null][anim=-1,msg=null,interact=null] @Mods, this is about botting so I choose it to be here.
Why isn't this code working? What I'd think it should do is log the info of what every player (if they are) is interacting E.G. if zezima is following bob, when the script gets around to "zezima" it'd log "bob"... Code: import com.rsbuddy.script.ActiveScript; import com.rsbuddy.script.Manifest; import com.rsbuddy.script.methods.Players; import com.rsbuddy.script.wrappers.Player; @Manifest( authors = {"Automatic Coding"}, name = "Test", description = "test,", keywords = "test", version = 0.01 ) public class playerChecker extends ActiveScript { Player allPlayers[]; int i = 0; @Override public int loop() { allPlayers = Players.getLoaded(); for(i = 0; i < allPlayers.length; i++) { if(allPlayers[i].getInteracting() != null) { log(allPlayers[i].getInteracting()); } } return 0; } } but all it logs is the shitty things NPCs can do. Code: [INFO] Sun Apr 10 15:47:33 BST 2011: Test: NPC[Banker],actions=[Talk-to,null,Bank,Collect,null][anim=-1,msg=null,interact=null] @Mods, this is about botting so I choose it to be here.