text
stringlengths
33
161k
package com.rs.game.content.bosses.qbd.npcs; /** * Handles the Queen Black Dragon's melee attack. * * @author Emperor * */ public final class MeleeAttack implements QueenAttack { /** * The default melee animation. */ private static final Animation DEFAULT = new Animation(16717); /** * The east melee a...
package com.rs.game.content.bosses.qbd.npcs; /** * Represents an attack from the Queen Black Dragon. * * @author Emperor * */ public interface QueenAttack { /** * Starts the attack. * * @param npc * The NPC. * @param victim * The victim. * @return The next attack value. */...
package com.rs.game.content.bosses.qbd.npcs; /** * Represents the Queen Black Dragon. * * @author Emperor * */ public final class QueenBlackDragon extends NPC { private static final QueenAttack[] PHASE_1_ATTACKS = { new FireBreathAttack(), new MeleeAttack(), new RangeAttack(), new FireWallAttack() }; private...
package com.rs.game.content.bosses.qbd.npcs; /** * Represents the Queen Black Dragon's states. * * @author Emperor * */ public enum QueenState { /** * The queen is asleep. */ SLEEPING(15509, null), /** * The default, attackable Qeeun Black Dragon. */ DEFAULT(15454, null), /** * The crystal armou...
package com.rs.game.content.bosses.qbd.npcs; /** * Handles the Queen Black Dragon's range attack. * * @author Emperor * */ public final class RangeAttack implements QueenAttack { /** * The animation. */ private static final Animation ANIMATION = new Animation(16718); @Override public int attack(final Q...
package com.rs.game.content.bosses.qbd.npcs; /** * The Queen Black Dragon's soul siphon attack. * * @author Emperor * */ public final class SoulSiphonAttack implements QueenAttack { /** * The siphon graphics. */ private static final SpotAnim SIPHON_GRAPHIC = new SpotAnim(3148); @Override public int at...
package com.rs.game.content.bosses.qbd.npcs; /** * Handles the summoning of the tortured souls. * * @author Emperor * */ public final class SoulSummonAttack implements QueenAttack { /** * The spawn offset locations. */ private static final int[][] SPAWN_LOCATIONS = { { 31, 35 }, { 33, 35 }, { 34, 33 }, {...
package com.rs.game.content.bosses.qbd.npcs; /** * Handles the super dragonfire attack. * * @author Emperor * */ public final class SuperFireAttack implements QueenAttack { /** * The animation. */ private static final Animation ANIMATION = new Animation(16745); /** * The graphics. */ private static...
package com.rs.game.content.bosses.qbd.npcs; /** * Handles the Queen Black Dragon's time stop attack. * * @author Emperor * */ public final class TimeStopAttack implements QueenAttack { /** * The messages the soul says. */ private static final ForceTalk[] MESSAGES = { new ForceTalk("Kill me, mortal... qui...
package com.rs.game.content.bosses.qbd.npcs; /** * Represents a Tortured soul. * * @author Emperor * */ public final class TorturedSoul extends NPC { /** * The messages the NPC can say. */ private static final ForceTalk[] FORCE_MESSAGES = { new ForceTalk("NO MORE! RELEASE ME, MY QUEEN! I BEG YOU!"), new F...
package com.rs.game.content.bosses.tormenteddemon; @PluginEventHandler public final class TormentedDemon extends NPC { private int shieldTimer; private int prayer; private int combatStyleTimer; private int[] damageTaken = new int[3]; private int combatStyle; public TormentedDemon(int id, Tile tile, boolean sp...
package com.rs.game.content.bosses.tormenteddemon; public class TormentedDemonCombat extends CombatScript { @Override public Object[] getKeys() { return new Object[] { "Tormented demon" }; } @Override public int attack(NPC npc, Entity target) { TormentedDemon torm = null; if (npc instanceof TormentedDemo...
package com.rs.game.content.clans; @PluginEventHandler public class ClansManager { private static final Map<String, Clan> CACHED_CLANS = new ConcurrentHashMap<>(); public static Clan getClan(String name) { if (name == null) return null; if (CACHED_CLANS.get(name) == null) { try { LobbyCommunicato...
package com.rs.game.content.clans; @PluginEventHandler public class ClanVexillum extends OwnedNPC { private static final Map<String, ClanVexillum> CLAN_VEXES = new ConcurrentHashMap<>(); private final Clan clan; private int hint = -1; /* * anim skeleton 3606 = clan teleports */ private ClanVexillum(P...
package com.rs.game.content.clans.clan_camp.npcs; @PluginEventHandler public class Avalani extends Conversation { private static final int npcId = 13827; public static NPCClickHandler Avalani = new NPCClickHandler(new Object[] { npcId }, e -> { if (e.getOption().equalsIgnoreCase("chat")) { ...
package com.rs.game.content.clans.clan_camp.npcs; @PluginEventHandler public class AvalaniChickens extends NPC { public AvalaniChickens(int id, Tile tile) { super(id, tile); } @Override public void processNPC() { super.processNPC(); if (Utils.random(100) == 0) { setNextAnimation(new Animation(3831)); ...
package com.rs.game.content.clans.clan_camp.npcs; @PluginEventHandler public class CaptainOfTheGuard extends Conversation { private static final int npcId = 13633; private boolean hasClan; private final String title = player.getAppearance().isMale() ? "sir" : "ma'am"; public static NPCClickHandler...
package com.rs.game.content.clans.clan_camp.npcs; @PluginEventHandler public class Scribe extends Conversation { private static final int npcId = 5915; private boolean hasClan; private final int Vexilum = 20709; private final String title = player.getAppearance().isMale() ? "sir" : "ma'am"; ...
package com.rs.game.content.clans.clan_camp.npcs; @PluginEventHandler public class SergeantAtArms extends Conversation { private static final int npcId = 5914; private boolean hasClan; public static NPCClickHandler SergeantAtArms = new NPCClickHandler(new Object[] { npcId }, e -> { if (e.getOpt...
package com.rs.game.content.combat enum class AmmoType( private val itemIds: IntArray, private val projAnim: Int, private val drawbackSpotAnim: Int = -1, private val doubleDrawbackSpotAnim: Int = -1 ) { ICE_ARROWS(intArrayOf(78), 16, 25, 1110), BRONZE_ARROW(intArrayOf(882, 883, 5616, 5622, 223...
package com.rs.game.content.combat @ServerStartupEvent fun mapNpcAttackOptions() { onNpcClick(options = arrayOf("Attack"), checkDistance = false) { e -> e.player.stopAll(true) e.player.interactionManager.setInteraction(PlayerCombatInteraction(e.player, e.npc)) } onNpcClick(2440, 2443, 244...
package com.rs.game.content.combat class AttackStyle(@JvmField val index: Int, @JvmField val name: String, @JvmField val xpType: XPType, @JvmField val attackType: AttackType) { companion object { private val UNARMED: Map<Int, AttackStyle> = mapOf( 0 to AttackStyle(0, "Punch", XPType.ACCURATE, ...
package com.rs.game.content.combat enum class AttackType(private val attBonus: Bonus, private val defBonus: Bonus) { STAB(Bonus.STAB_ATT, Bonus.STAB_DEF), SLASH(Bonus.SLASH_ATT, Bonus.SLASH_DEF), CRUSH(Bonus.CRUSH_ATT, Bonus.CRUSH_DEF), ACCURATE(Bonus.RANGE_ATT, Bonus.RANGE_DEF), RAPID(Bonus.RANG...
package com.rs.game.content.combat class CombatDefinitions { enum class Spellbook(@JvmField val interfaceId: Int) { MODERN(192), ANCIENT(193), LUNAR(430), DUNGEONEERING(950) } @Transient private var player: Player? = null @Transient var isUsingSpecialAttack: B...
package com.rs.game.content.combat enum class CombatSpell( val req: Int, @JvmField val splashXp: Double, protected val baseDamage: Int, protected val castAnim: Animation, protected val castSpotAnim: SpotAnim?, protected val projAnim: Int, @JvmField val hitSpotAnim: SpotAnim, protected ...
package com.rs.game.content.combat class PlayerCombat(@JvmField val target: Entity) : PlayerAction() { override fun start(player: Player): Boolean { player.actionManager.forceStop() player.setNextFaceEntity(target) if (!player.controllerManager.canAttack(target)) return false if (t...
package com.rs.game.content.combat @ServerStartupEvent fun mapPolypore() { onItemClick(22494, 22496, 22497, options = arrayOf("Check", "Clean")) { e -> when (e.option) { "Check" -> { val charges = e.item.getMetaDataI("polyporeCasts") if (charges == -1) e.player....
package com.rs.game.content.combat enum class RangedWeapon { CROSSBOW(intArrayOf(767, 837, 11165, 11167), AmmoType.BRONZE_BOLTS), BRONZE_CROSSBOW(intArrayOf(9174), AmmoType.BRONZE_BOLTS), BLURITE_CROSSBOW(intArrayOf(9176), AmmoType.BRONZE_BOLTS, AmmoType.BLURITE_BOLTS), IRON_CROSSBOW( intArray...
package com.rs.game.content.combat enum class XPType { ACCURATE, AGGRESSIVE, DEFENSIVE, CONTROLLED, RANGED, RANGED_DEFENSIVE, MAGIC, PRAYER }
package com.rs.game.content.combat.special_attacks @ServerStartupEvent fun handleDFSSpec() { onItemClick("Dragonfire shield", options = arrayOf("Inspect", "Activate", "Empty")) { e -> when (e.option) { "Inspect" -> { if (e.item.id == 11284) e.player.sendMessage("The shield is e...
package com.rs.game.content.combat.special_attacks class SpecialAttack(val energyCost: Int, val type: Type? = null, val execute: BiFunction<Player, Entity, Int>? = null, val instant: Consumer<Player>? = null) { enum class Type { MELEE, RANGE, MAGIC } constructor(type: Type?, energ...
package com.rs.game.content.combat.special_attacks private val specialAttacks: MutableMap<Int, SpecialAttack> = HashMap() @ServerStartupEvent fun mapSpecials() { fun Entity.isValidCombatTarget(player: Player): Boolean { return isAtMultiArea || player.isAtMultiArea || player.attackedBy !== this && player....
package com.rs.game.content.commands.admin; @PluginEventHandler public class MiscTest { private static final int[] UNIDENTIFIED_ANIMS = { 2057, 12549, 15461, 3024, 2202, 2205, 2200, 2212, 2207, 2211, 2208, 2197, 2195, 15719, 3145, 4122, 3874, 587, 10707, 1107, 2938, 2435, 2438, 2434, 2552, 2449, 2447, 14165, 2976,...
package com.rs.game.content.commands.admin; @PluginEventHandler public class PlayerModifiers { @ServerStartupEvent public static void load() { Commands.add(Rights.OWNER, "setdeveloper,givedeveloper [player name]", "Will set a player to developer status.", (p, args) -> { Player target = World.getPlayerByDispla...
package com.rs.game.content.commands.debug; @PluginEventHandler public class Debug { private static boolean musicMoveOn = false; public static EnterChunkHandler visChunks = new EnterChunkHandler(e -> { if (!Settings.getConfig().isDebug()) return; if(musicMoveOn && e.getPlayer() != null && e.getPlayer().has...
package com.rs.game.content.commands.mod; @PluginEventHandler public class PlayerModifiers { @ServerStartupEvent public static void loadCommands() { Commands.add(Rights.MOD, "checkbank [player name]", "Displays the contents of another player's bank.", (p, args) -> { if (args.length == 0) { p.getBank().ope...
package com.rs.game.content.commands.normal; @PluginEventHandler public class Normal { @ServerStartupEvent public static void loadCommands() { Commands.add(Rights.PLAYER, "commandlist,commands", "Displays all the commands the player has permission to use.", (p, args) -> { p.getPackets()....
package com.rs.game.content.death; public class DeathOfficeController extends InstancedController { public enum Hub { LUMBRIDGE(Tile.of(3222, 3219, 0)), VARROCK(Tile.of(3212, 3422, 0)), EDGEVILLE(Tile.of(3094, 3502, 0)), FALADOR(Tile.of(2965, 3386, 0)), SEERS_VILLAGE(Tile.of(2725, 3491, 0)), ARDOUGNE(...
package com.rs.game.content.death; public class GraveStone extends NPC {// 652 - gravestone selection interface private static final int GRAVE_STONE_INTERFACE = 266; private static final Map<String, GraveStone> GRAVESTONES = new HashMap<>(); public static GraveStone getGraveStoneByUsername(String username) { ...
package com.rs.game.content.dnds.eviltree const val NURTURES_PER_STAGE = 25 const val CHOPS_PER_STAGE = 250 const val STAGE_NEW = 0 const val STAGE_NURTURED_LARGER = 3 const val STAGE_LAST_NURTURE = 4 const val STAGE_FULLY_GROWN = 5 const val STAGE_CHOPPED_UP_1 = 6 const val STAGE_CHOPPED_UP_2 = 7 const val STAGE_DE...
package com.rs.game.content.dnds.shootingstar; @PluginEventHandler public class ShootingStars { public enum Location { AL_KHARID(Tile.of(3286, 3197, 0), "Al Kharid"), LUMBRIDGE_SWAMP(Tile.of(3217, 3189, 0), "Lumbridge Swamp"), DRAYNOR(Tile.of(3076, 3278, 0), "Draynor Village"), R...
package com.rs.game.content.dnds.shootingstar; public class Star extends GameObject { public NPC sprite; public final long landingTime; public final ShootingStars.Location location; public boolean discovered = false; public int life = 0; public boolean minedThisTick = false; public Star(i...
package com.rs.game.content.holidayevents.christmas; @PluginEventHandler public class ChristmasCracker { private static final DropSet PARTY_HATS = new WeightedSet( new WeightedTable(32, new Drop(1038)), new WeightedTable(28, new Drop(1040)), new WeightedTable(23, new Drop(1048)), new WeightedTable(20, ne...
package com.rs.game.content.holidayevents.christmas; @PluginEventHandler public class LandOfSnow { private static final boolean ACTIVE = false; @ServerStartupEvent public static void initObjects() { if (!ACTIVE) return; Tile center = Tile.of(3212, 3428, 3); for (int x = -10; x < 10; x++) for (int ...
package com.rs.game.content.holidayevents.christmas; @PluginEventHandler public class SnowballInteraction extends PlayerEntityInteraction { public static ItemEquipHandler handleSnowballWield = new ItemEquipHandler(11951, e -> e.getPlayer().setPlayerOption(e.equip() ? "Pelt" : "null", 8, true)); public static Playe...
package com.rs.game.content.holidayevents.christmas; @PluginEventHandler public class Snowglobe { public static ItemClickHandler handle = new ItemClickHandler(new Object[] { 11949 }, e -> { e.getPlayer().setNextAnimation(new Animation(2926)); e.getPlayer().startConversation(new Dialogue().addNext(new Dialogue((...
package com.rs.game.content.holidayevents.christmas.christ19; @PluginEventHandler public class Christmas2019 { public static final String STAGE_KEY = "christ2025"; private static final boolean ACTIVE = false; public enum Imp { WINE(9372, 6928, Location.VARROCK_CASTLE, Location.CAMELOT_CASTLE, Location.ARDOUG...
package com.rs.game.content.holidayevents.christmas.christ19; @PluginEventHandler public class PartygoerD extends Conversation { public static NPCClickHandler handle = new NPCClickHandler(new Object[] { 9386, 9389, 9392 }, e -> e.getPlayer().startConversation(new PartygoerD(e.getPlayer(), e.getNPC()))); public Pa...
package com.rs.game.content.holidayevents.christmas.christ19; @PluginEventHandler public class ResourceImpD extends Conversation { private static final int IMP_HEAD = 9364; public static NPCClickHandler handleSnowImpTalk = new NPCClickHandler(new Object[] { 9372, 9373, 9374, 9375 }, e -> { String noun = ""; i...
package com.rs.game.content.holidayevents.christmas.christ19; @PluginEventHandler public class Santa2019D extends Conversation { private static final int SNOW_QUEEN = 8539, SANTA = 8540; public static NPCClickHandler handleSantaTalk = new NPCClickHandler(new Object[] { SNOW_QUEEN, SANTA }, e -> e.getPlayer().star...
package com.rs.game.content.holidayevents.christmas.christ19; @PluginEventHandler public class SnowImpD extends Conversation { private static final int IMP = 8536, IMP_HEAD = 9364; public static NPCClickHandler handleSnowImpTalk = new NPCClickHandler(new Object[] { IMP }, e -> { if (e.getPlayer().getPet() == e....
package com.rs.game.content.holidayevents.christmas.christ20; @PluginEventHandler public class Christmas2020 { public static final String STAGE_KEY = "christ2023"; private static final boolean ACTIVE = false; @ServerStartupEvent(Priority.FILE_IO) public static void load() { if (!ACTIVE) return; NPCSpawn...
package com.rs.game.content.holidayevents.christmas.christ20; @PluginEventHandler public class Santa2020D extends Conversation { private static final int SNOW_QUEEN = 9398, SANTA = 9400; public static NPCClickHandler handleSantaTalk = new NPCClickHandler(new Object[] { SNOW_QUEEN, SANTA }, e -> e.getPlayer().star...
package com.rs.game.content.holidayevents.easter const val ENABLED = true private var eggsPerChunk = 2 private var regionsToSpawn = IntSet.of(12850, 11828, 12084, 12853, 12597, 12342, 10806, 10547, 13105) @ServerStartupEvent(ServerStartupEvent.Priority.POST_PROCESS) fun startTasks() { if (!ENABLED) return C...
package com.rs.game.content.holidayevents.easter.easter21 private const val STAGE_KEY = "easter2024" private const val ENABLED = true private const val COG = 14719 private const val PISTON = 14720 private const val CHIMNEY = 14718 private const val CHARLIE = 9686 private const val EASTER_BUNNY = 9687 private const ...
package com.rs.game.content.holidayevents.easter.easter22; @PluginEventHandler public class Easter2022 { //Event configs public static String STAGE_KEY = "easter2022"; public static Boolean ENABLED = false; //Rewards public static final int PERMANENT_EGGSTERMINATOR = 24146; public static fi...
package com.rs.game.content.holidayevents.easter.easter22; @PluginEventHandler public class EggHunt { public enum Spawns { BURTHORPE_LODESTONE(new EventEasterEgg(Easter2022.RUBBLE,ObjectType.SCENERY_INTERACT,0,2906,3549,0), "near Burthorpe Lodestone/South of the Burthorpe castle."), BURTHORPE_AG...
package com.rs.game.content.holidayevents.easter.easter22; @PluginEventHandler public class EggsterminatorInteraction extends PlayerEntityInteraction { public EggsterminatorInteraction(Entity target) { super(target, 7); } @Override public void interact(Player player) { player.lock();...
package com.rs.game.content.holidayevents.easter.easter22; @PluginEventHandler public class EventEasterEgg extends GameObject { private boolean found = false; private String hint; public EventEasterEgg(int id, ObjectType type, int rotation, int x, int y, int plane) { super(id, type, rotation, x, y, plane); }...
package com.rs.game.content.holidayevents.easter.easter22.npcs; @PluginEventHandler public class ChocatriceD extends Conversation { public ChocatriceD(Player player) { super(player); if (player.getNSV().getB("talkedWithEvilChicken") && !player.getNSV().getB("talkedWithChocatrice")) { ...
package com.rs.game.content.holidayevents.easter.easter22.npcs; @PluginEventHandler public class EasterChick extends OwnedNPC { public int varbit; public EasterChick(Player player, int id, Tile tile, int varbit) { super(player, id, tile, true); this.varbit = varbit; setRandomWalk(tru...
package com.rs.game.content.holidayevents.easter.easter22.npcs; @PluginEventHandler public class EvilChickenD extends Conversation { public EvilChickenD(Player player) { super(player); if (!player.getNSV().getB("talkedWithEvilChicken") && player.getNSV().getB("talkedWithChocatrice")) { ...
package com.rs.game.content.holidayevents.halloween; @PluginEventHandler public class PumpkinSpawning { static IntSet regionsToSpawn = IntSet.of(12850, 11828, 12084, 12853, 12597, 12342, 10806, 10547, 13105); static int pumpkinCount = 0; static int pumpkinsPerChunk = 2; @ServerStartupEvent(Priority.POST_PROCES...
package com.rs.game.content.holidayevents.halloween.hw07; @PluginEventHandler public class GrimReaper2007D extends Conversation { private static final int[] HWEEN_MASKS = { 1053, 1055, 1057 }; public static NPCClickHandler handleGrimTalk = new NPCClickHandler(new Object[] { 6390 }, e -> { e.getNPC().resetDirect...
package com.rs.game.content.holidayevents.halloween.hw07; public class GrimsDiary extends Book { public GrimsDiary() { super("WitchsDiary of Death", new BookPage( new String[] { "My WitchsDiary", " by Grim", "", "<col=FF0000>~~~~~~~~~~~~~~~~~~~~</col>", "<col=F...
package com.rs.game.content.holidayevents.halloween.hw07; @PluginEventHandler public class Halloween2007 { public static String STAGE_KEY = "hw2024"; public static boolean ENABLED = false; public static Tile START_LOCATION = Tile.of(1697, 4814, 0); public static final int GRIM_DIARY = 11780; public static fi...
package com.rs.game.content.holidayevents.halloween.hw07; public class Halloween2007Controller extends Controller { private static final int[] DEAD_END_WEBS = { 27955946, 28005096, 27661029, 27775726, 27726573, 27628265 }; private int[] webPath; private Set<Integer> returnedItems = new HashSet<>(); private boo...
package com.rs.game.content.holidayevents.halloween.hw07; @PluginEventHandler public class Muncher07D extends Conversation { private static final Animation FLINCH = new Animation(6563); private static final Animation BITE = new Animation(6565); public Muncher07D(Player player, NPC muncher) { super(player); a...
package com.rs.game.content.holidayevents.halloween.hw09; @PluginEventHandler public class BathtubSpiderD extends Conversation { public static NPCClickHandler handleSpiderTalk = new NPCClickHandler(new Object[] { 8978 }, e -> { e.getNPC().resetDirection(); e.getPlayer().startConversation(new BathtubSpiderD(e.ge...
package com.rs.game.content.holidayevents.halloween.hw09; @PluginEventHandler public class GrimReaper2009D extends Conversation { public static NPCClickHandler handleGrimTalk = new NPCClickHandler(new Object[] { 8977 }, e -> { e.getNPC().resetDirection(); e.getPlayer().startConversation(new GrimReaper2009D(e.ge...
package com.rs.game.content.holidayevents.halloween.hw09; @PluginEventHandler public class Halloween2009 { public static String STAGE_KEY = "hw2023"; public static final boolean ENABLED = false; static Tile WEB_RESET_LOC = Tile.of(3936, 5125, 2); public static Tile START_LOCATION = Tile.of(3808, 5135, 0); p...
package com.rs.game.content.holidayevents.halloween.hw09; public class Halloween2009Controller extends Controller { private final Set<Integer> path; private final Set<Integer> webbedUp; public Halloween2009Controller() { path = Halloween2009.getRandomPath(); webbedUp = new HashSet<>(); } @Override p...
package com.rs.game.content.holidayevents.halloween.hw09; @PluginEventHandler public class SpiderHeraldD extends Conversation { public static NPCClickHandler handleSpiderTalk = new NPCClickHandler(new Object[] { 8976 }, e -> { e.getNPC().resetDirection(); e.getPlayer().startConversation(new SpiderHeraldD(e.getP...
package com.rs.game.content.holidayevents.halloween.hw09; @PluginEventHandler public class SpiderQueenD extends Conversation { public static NPCClickHandler handleSpiderTalk = new NPCClickHandler(new Object[] { 8975 }, e -> { e.getNPC().resetDirection(); e.getPlayer().startConversation(new SpiderQueenD(e.getPla...
package com.rs.game.content.holidayevents.halloween.hw09; public class SpiderStatement implements Statement { private final String[] texts; public SpiderStatement(String... texts) { this.texts = texts; } @Override public void send(Player player) { StringBuilder builder = new StringBuilder(); for (String...
package com.rs.game.content.interfacehandlers; @PluginEventHandler public class GameFrame { public static ButtonClickHandler handlePrayerOrb = new ButtonClickHandler(749, e -> { if (e.getComponentId() == 4) if (e.getPacket() == ClientPacket.IF_OP1) // activate e.getPlayer().getPrayer().switchQuickPrayers(...
package com.rs.game.content.interfacehandlers; @PluginEventHandler public class ItemsKeptOnDeath { public static ButtonClickHandler handleSwapWildy = new ButtonClickHandler(17, e -> { if (e.getComponentId() == 28) sendItemsKeptOnDeath(e.getPlayer(), !e.getPlayer().getTempAttribs().getB("wildy")); }); public...
package com.rs.game.content.interfacehandlers; @PluginEventHandler public class Logout { public static ButtonClickHandler handle = new ButtonClickHandler(182, e -> { if (e.getPlayer().getInterfaceManager().containsInventoryInter()) return; if (e.getComponentId() == 6 || e.getComponentId() == 13) if (!e.ge...
package com.rs.game.content.interfacehandlers; @PluginEventHandler public class TransformationRing { public static ItemClickHandler handleItemOption = new ItemClickHandler(new Object[] { "Ring of stone", "Easter ring", "Bone brooch" }, new String[] { "Wear" }, e -> { if (e.getPlayer().inCombat(10000) || e.getPlay...
package com.rs.game.content.items; @PluginEventHandler public class DwarvenRockCakes { public static ItemClickHandler handleRockCakeClick = new ItemClickHandler(new Object[] { 7509, 7510 }, new String[] { "Eat" }, e -> { if (e.getItem().getId() == 7509 && e.getPlayer().getHitpoints() > 20) { Hit h = new Hit(20...
package com.rs.game.content.items; @PluginEventHandler public enum ItemPack { VIAL_OF_WATER(15363, new Item(228, 50)), SHARDS(15262, new Item(12183, 5000)), BAKRIMNEL_BOLTS(24133, new Item(24127, 50)), BASKEET(15366, new Item(5377, 50)), SACK(15367, new Item(5419, 50)), EYE_OF_NEWT(15364, new Item(222, 50)), ...
package com.rs.game.content.items; public class Lamp { private final int slot; private final int id; private final int req; private int selectedSkill; private double xp; public Lamp(int id, int slot, int req) { this.slot = slot; this.id = id; this.req = req; } public int getSlot() { return slot; } ...
package com.rs.game.content.items; @PluginEventHandler public class Lamps { public static final int LAMP_SMALL = 0; public static final int LAMP_MEDIUM = 1; public static final int LAMP_BIG = 2; public static final int LAMP_HUGE = 3; public static final int[] SELECTABLE_XP_LAMPS = { 23713, 23714, 23715, 23716,...
package com.rs.game.content.items; @PluginEventHandler public class LootInterface { public static ButtonClickHandler handleLootInterfaceButtons = new ButtonClickHandler(1284, e -> { ItemsContainer<Item> container = e.getPlayer().getTempAttribs().getO("lootInterfaceContainer"); if (container == nul...
package com.rs.game.content.items; @PluginEventHandler public class Mindspike { public static ItemClickHandler changeElement = new ItemClickHandler(new Object[] { 23044, 23045, 23046, 23047 }, new String[] { "Change element" }, e -> { Dialogue selectElement = new Dialogue(new Statement() { @Override public...
package com.rs.game.content.items; @PluginEventHandler public class PharaohSceptre { private static final int[] PHARAOHS_SCEPTRE = new int[] {9050, 9048, 9046, 9044}; private static final Tile JALSAVRAH = Tile.of(1968,4428,2); private static final Tile JALEUSTROPHOS = Tile.of(3340, 2828, 0); private s...
package com.rs.game.content.items; @PluginEventHandler public class PVPRewards { public static ItemClickHandler handleBrags = new ItemClickHandler(new Object[] { 20795, 20796, 20797, 20798, 20799, 20800, 20801, 20802, 20803, 20804, 20805, 20806, }, new String[] { "Brag" }, e -> { switch (e.getItem().getId()) { ...
package com.rs.game.content.items; public class ResourceLocators { /** * interface: 844 */ }
package com.rs.game.content.items; @PluginEventHandler public class RoyalCrossbow { public static ItemClickHandler handleRCB = new ItemClickHandler(new Object[] { 24337, 24338, 24339 }, new String[] { "Split", "Brandish" }, e -> { Player player = e.getPlayer(); switch (e.getOption()) { case "Split" -> { ...
package com.rs.game.content.items; @PluginEventHandler public class Spade { public static ItemClickHandler digSpade = new ItemClickHandler(new Object[] { 952 }, new String[] { "Dig" }, e -> dig(e.getPlayer())); public static void dig(final Player player) { player.resetWalkSteps(); player.setNextAnimation(new...
package com.rs.game.content.items; @PluginEventHandler public class StaffPotato { private enum Command { GOD("Toggle God", p -> { p.setNextAnimation(new Animation(361)); p.setNextSpotAnim(new SpotAnim(122)); p.getNSV().setB("godMode", !p.getNSV().getB("godMode")); p.sendMessage("GODMODE: " + p.getNS...
package com.rs.game.content.items; @PluginEventHandler public class ToadLegs { public static ItemClickHandler pullLegs = new ItemClickHandler(new Object[] { 2150 }, e -> { e.getPlayer().getInventory().deleteItem(2150, 1); e.getPlayer().getInventory().addItem(2152, 1); e.getPlayer().sendMessage("You pull the ...
package com.rs.game.content.items.combinations; @PluginEventHandler public class CombinationItems { private enum Combineable { CAP_AND_GOGGLES(9472, 9945, 9946), AMULET_OF_FURY_OR(6585, 19333, 19335), DRAGON_FULL_HELM_OR(11335, 19346, 19336), DRAGON_PLATEBODY_OR(14479, 19350, 1933...
package com.rs.game.content.items.liquid_containers; @PluginEventHandler public class ClayWetting { private static final int CLAY = 434; private static final int SOFT_CLAY = 1761; private static final int JUG = 1937; private static final int BOWL = 1921; private static final int BUCKET = 1929; public static I...
package com.rs.game.content.items.liquid_containers; @PluginEventHandler public class Empty { public static ItemClickHandler handleGenericEmpty = new ItemClickHandler(new String[] { "Empty" }, e -> { Filler fillable = Filler.forFull(e.getItem().getId()); if (fillable == null) return; ...
package com.rs.game.content.items.liquid_containers; @PluginEventHandler public class FillAction extends PlayerAction { private int amount; private final Animation FILLING = new Animation(883); private final Filler fill; public static ItemOnObjectHandler handleFilling = new ItemOnObjectHandler(new Object[] { "...
package com.rs.game.content.items.liquid_containers; @PluginEventHandler public class NettleTea { private static final int nettleTea = 4239; private static final int emptyPorcelainCup = 4244; private static final int cupOfNettleTea = 4245; private static final int emptyBowl = 1923; private static...
package com.rs.game.content.minigames val MINIGAME_SUPPLIES = arrayOf(12850, 12851, 4049, 4050, 18715, 18716, 18717, 18718, 22373, 22374, 22375, 22376, 22379, 22380) fun giveFoodAndPotions(player: Player) { checkAndDeleteFoodAndPotions(player) player.inventory.addItem(12850, 10000) player.inventory.addIt...
package com.rs.game.content.minigames.agilityarena; public final class BrimhavenAgilityController extends Controller { private static final List<Player> players = new ArrayList<>(); private static PlayingGame currentGame; private static BladesManager bladesManager; private static void removePlayer(Player playe...
package com.rs.game.content.minigames.barrows; public final class BarrowsController extends Controller { private transient BarrowsBrother target; private transient BarrowsPuzzle puzzle; private boolean solvedPuzzle; public int removeDarkness; public int[] varBits = new int[20]; private static enum Hills { ...