Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rs.game.player.content.holidayevents.christmas;
- import com.rs.game.Animation;
- import com.rs.game.SpotAnim;
- import com.rs.game.player.content.dialogue.Dialogue;
- import com.rs.plugin.annotations.ItemClickHandler;
- import com.rs.plugin.annotations.PluginEventHandler;
- import com.rs.plugin.events.ItemClickEvent;
- @PluginEventHandler
- public class Snowglobe {
- @ItemClickHandler(ids = { 11949 })
- public static void handleSnowGlobe(ItemClickEvent e) {
- e.getPlayer().setNextAnimation(new Animation(2926));
- e.getPlayer().startConversation(new Dialogue().addNext(new Dialogue(p -> {
- p.getInterfaceManager().sendInterface(659);
- p.setCloseInterfacesEvent(() -> {
- e.getPlayer().setNextAnimation(new Animation(7538));
- });
- })).addNext(new Dialogue(p -> {
- p.closeInterfaces();
- p.setNextAnimation(new Animation(7528));
- p.setNextSpotAnim(new SpotAnim(1284));
- p.getInventory().addItem(11951, e.getPlayer().getInventory().getFreeSlots());
- })));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement