Tom Posted November 16, 2015 Share Posted November 16, 2015 (edited) private final int[] DEADMAN_WORLDS = {317, 319, 321, 345, 352, 357, 360, 374}; private boolean isDeadman(){ for(int i : DEADMAN_WORLDS){ if(getBot().getWorld() == i){ return true; } } return false; } Pretty simple, probs forgetting a world or new worlds will be added. Change the modifiers if necessary. Edited November 16, 2015 by Tom 2 Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted November 16, 2015 Share Posted November 16, 2015 To determine DMM worlds dynamically you could use for(XWorld w : client.accessor.getWorldArray()) { if( (w.getType() & 0x20000000) != 0) // this is a DMM world, parse world ID from w.getDomain() } 2 Quote Link to comment Share on other sites More sharing options...
empathy Posted November 23, 2015 Share Posted November 23, 2015 private final int[] DEADMAN_WORLDS = {317, 319, 321, 345, 352, 357, 360, 374}; private boolean isDeadman(){ for(int i : DEADMAN_WORLDS){ if(getBot().getWorld() == i){ return true; } } return false; } Pretty simple, probs forgetting a world or new worlds will be added. Change the modifiers if necessary. Nice convention naming private final int[] deadmanWorlds Quote Link to comment Share on other sites More sharing options...
Tom Posted November 24, 2015 Author Share Posted November 24, 2015 (edited) Nice convention naming private final int[] deadmanWorlds Yeah just following convention, i personally prefer camelCase Edited November 24, 2015 by Tom Quote Link to comment Share on other sites More sharing options...