File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
runelite-client/src/main/java/net/runelite/client/plugins/microbot/prayer Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11package net .runelite .client .plugins .microbot .prayer ;
22
3+ import net .runelite .api .GameObject ;
34import net .runelite .api .ObjectID ;
45import net .runelite .api .TileObject ;
56import net .runelite .api .coords .WorldPoint ;
1920import java .util .List ;
2021import java .util .Objects ;
2122import java .util .concurrent .TimeUnit ;
23+ import java .util .stream .Collectors ;
2224
2325public class GildedAltarScript extends Script {
2426
@@ -243,15 +245,14 @@ public void bonesOnAltar() {
243245 return ;
244246 }
245247
246- TileObject altar ;
247248
248- altar = Rs2GameObject .findObjectById (ObjectID .ALTAR_40878 );
249- if (altar == null ) {
250- altar = Rs2GameObject .findObjectById (ObjectID .ALTAR_13197 );
249+ TileObject altar = Rs2GameObject .getGameObject ("Altar" , true );
250+ if (altar != null ) {
251+ Rs2Inventory .useUnNotedItemOnObject ("bones" , altar .getId ());
252+ Rs2Player .waitForAnimation ();
251253 }
252254
253- Rs2Inventory .useUnNotedItemOnObject ("bones" , altar );
254- Rs2Player .waitForAnimation ();
255+
255256
256257 // Use bones on the altar if it's valid
257258 if (altarCoords == null ){
You can’t perform that action at this time.
0 commit comments