Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved (Resolved) Powers.Prayer does not activate given prayer

Joined
May 24, 2016
Messages
1,113
RuneMate version: 2.51.1
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?
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
I'm guessing the sprite ids for all the prayers are outdated in that case... fml.
 
resolved
 
Top