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
  • Try asking for help in the chatbox
  • Detect if a mod is nearby


    Chochu
     Share

    Recommended Posts

    Currently i have using function that scan local player is check their name against a premade list of known mod. Is there a better way of doing this?

     

    		for(int c = 0; c < modlist.size(); c++){
    			if(getPlayers().closest(modlist.get(c)) != null)
    				return true;
    		}
    		return false;
    

     

    Link to comment
    Share on other sites

    Idk maybe
    if(!getPlayers().all(f -> f != null && f.getName().contains("Mod").isEmpty()){}
    

     Hmm,maybe it will work. Now i got to find a mod and test it out. 

    Link to comment
    Share on other sites

     

    Currently i have using function that scan local player is check their name against a premade list of known mod. Is there a better way of doing this?

     

    		for(int c = 0; c < modlist.size(); c++){
    			if(getPlayers().closest(modlist.get(c)) != null)
    				return true;
    		}
    		return false;
    

     

    Not sure if this would work in any way. Mostly when they track bots they are invisible. Could be that their name still exists but i wouldnt be surprised if they have a method to hide their presence completely :P

    Link to comment
    Share on other sites

    Do all mods have the word mod in their names?

     

    Pretty sure they do

     

    Actual JMods do, but the player mods dont, so there would need to be a way, maybe with widgets to try detect the White-Mod-Icon for the player?

    Link to comment
    Share on other sites

    If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that?

    Edited by Lost Fedora
    Link to comment
    Share on other sites

    If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that?

     

    hmm, so i get the player name it should have <icon=2>Against or something. that would work i will test it out and report back

    Edited by Chochu
    Link to comment
    Share on other sites

    Idk maybe
    if(!getPlayers().all(f -> f != null && f.getName().contains("Mod").isEmpty()){}
    

    This only work for Mod, but not player mod.

     

     

    If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that?

    I was able to join a cc with a player mod in it and debug the clan chat. When i get the player name, it contain <img=0>. Havent test it yet, but im sure it should work

    Link to comment
    Share on other sites

    This only work for Mod, but not player mod.

     

     

    I was able to join a cc with a player mod in it and debug the clan chat. When i get the player name, it contain <img=0>. Havent test it yet, but im sure it should work

    Yeah that's what I meant, Just wrote it out of memory, but you get the idea =D

    Link to comment
    Share on other sites

     Share

    ×
    ×
    • 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.