Pegasus Posted April 26, 2018 Share Posted April 26, 2018 I found public boolean isPvpWorld() in World class , but it seem it is Deprecated. https://osbot.org/api/org/osbot/rs07/api/ui/World.html How to detect current world is pvp world? Quote Link to comment Share on other sites More sharing options...
FrostBug Posted April 30, 2018 Share Posted April 30, 2018 From what I can see, only the Constructor is deprecated, meaning you aren't supposed to create the World instances manually. Have you actually tried, though? Alternatively you can read the activity/world type widgets from the world switcher Quote Link to comment Share on other sites More sharing options...
Pegasus Posted May 29, 2018 Author Share Posted May 29, 2018 Thank, I thought all elements in the class were deprecated Quote Link to comment Share on other sites More sharing options...
Pegasus Posted June 4, 2018 Author Share Posted June 4, 2018 On 4/30/2018 at 5:11 PM, FrostBug said: From what I can see, only the Constructor is deprecated, meaning you aren't supposed to create the World instances manually. Have you actually tried, though? Alternatively you can read the activity/world type widgets from the world switcher But you need to use the constructor to create an instance to use its method. MethodProvider doesn't provide World class Quote Link to comment Share on other sites More sharing options...
Pegasus Posted June 4, 2018 Author Share Posted June 4, 2018 I can just hard code pvp world numbers Quote Link to comment Share on other sites More sharing options...