508 Lumbridge castle flag pole Animation ids

Java:
            case 37335:
                if (!FLAG_IN_USE) {
                    FLAG_IN_USE = true;
                GameWorld.getPulser().submit(new Pulse(1, player) {
                        int counter = 0;

                        @Override
                        public boolean pulse() {
                            switch (counter++) {
                                case 0:
                                    player.lock();
                                    player.sendMessage("You start cranking the lever.");
                                    player.getPacketDispatch().sendSceneryAnimation(((Scenery) node), new Animation(9979));
                                    player.animate(new Animation(9977));
                                    break;
                                case 8:
                                    player.sendMessage("The flag reaches the top...");
                                    player.animate(new Animation(9978));
                                    break;
                                case 9:
                                    player.sendChat("All Hail the Duke!");
                                case 12:
                                    player.sendMessage("...and slowly descends.");
                                    player.unlock();
                                    player.getAchievementDiaryManager().finishTask(player, DiaryType.LUMBRIDGE, 0, 1);
                                    break;
                            }
                            return counter >= 20;
                        }

                        @Override
                        public void stop() {
                            super.stop();
                            FLAG_IN_USE = false;
                        }
                    });
                }
                break;
Credit: 2009Scape
 
  • Like
Reactions: empo

Users who are viewing this thread (total: 1, members: 0, guests: 1)