Pegasus Posted April 26, 2018 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?
FrostBug Posted April 30, 2018 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
Pegasus Posted May 29, 2018 Author Posted May 29, 2018 Thank, I thought all elements in the class were deprecated
Pegasus Posted June 4, 2018 Author 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