- Joined
- May 24, 2016
- Messages
- 1,113
- Thread Author
- #1
RuneMate version: 2.51.1
Affected games: RS3
Code used:
Output:
Bot does not activate the prayer, but does open the prayer book. If I manually turn on the prayer, it prints that it's already activated as shown in the code. I've also tried just manually doing "Powers.Prayer.PROTECT_FROM_MAGIC.activate();" to test if bot.getPrayer was the cause, but the same thing happens. Perhaps the InterfaceComponents are broken since the recent quick-prayer update?
Affected games: RS3
Code used:
Code:
String getPrayer = bot.getPrayer();
if (getPrayer != null && !getPrayer.isEmpty()) {
Powers.Prayer prayer = Powers.Prayer.valueOf(getPrayer);
if (!prayer.isActivated()) {
bot.setStatus("Activating " + prayer);
prayer.activate();
} else {
bot.setStatus("Prayer is already activated");
}
}
Output:
Code:
00:00:22 INFO Activating Prayer{name='Protect From Magic'}
Bot does not activate the prayer, but does open the prayer book. If I manually turn on the prayer, it prints that it's already activated as shown in the code. I've also tried just manually doing "Powers.Prayer.PROTECT_FROM_MAGIC.activate();" to test if bot.getPrayer was the cause, but the same thing happens. Perhaps the InterfaceComponents are broken since the recent quick-prayer update?