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
  • Detect if a mod is nearby


    Chochu

    Recommended Posts

    Posted

    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;
    

     

    Posted
    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. 

    Posted

     

    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

    Posted

    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?

    Posted

    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?

    Posted

    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

    Posted
    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

    Posted

    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

    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.