1package com.runehive.content;
3import com.runehive.game.world.entity.mob.UpdateFlag;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.PlayerRight;
6import com.runehive.game.world.items.Item;
7import com.runehive.net.packet.out.SendConfig;
8import com.runehive.net.packet.out.SendItemOnInterface;
9import com.runehive.net.packet.out.SendRunEnergy;
10import com.runehive.net.packet.out.SendString;
12import java.util.Arrays;
30 for (
int index = 0,
string = 45004; index < 4; index++,
string += 1) {
31 String desc = index >= kit.getDescription().length ?
"" : kit.getDescription()[index];
38 if (kit.equipment ==
null) {
42 Arrays.stream(kit.getEquipment()).forEach(player.equipment::manualWear);
53 "Play osroyale as a casual player.",
54 "This game mode has no restrictions at all.",
55 "You will be given a pre-made bank containing welfare equipment."
60 "Playing as an ironman will restrict you from trading, picking up drops from other",
61 "player's kills including pvp or if another player has dealt any damage to a npc,",
62 "access to certain shops, access from using the marketplace, and playing certain minigames",
63 "which include duel arena. You will have access to ironman armour and a distinct rank. "
64 },
new Item[]{new Item(12810), new Item(12812), new Item(12811), new Item(1277), new Item(1173), new Item(4119)},
69 new Item(882, 250),
new Item(556, 250),
new Item(558, 250),
70 new Item(555, 250),
new Item(557, 250),
new Item(559, 250)
73 "In addition to all the regular ironman rules the following conditions apply as well:",
74 "The use of banking (they are still able to use noted items on bank booths to unnote them)",
75 "Keep any item on death nor use the Protect Item prayer ",
76 },
new Item[]{new Item(12813), new Item(12814), new Item(12815), new Item(1277), new Item(1173), new Item(4119)},
81 new Item(882, 250),
new Item(556, 250),
new Item(558, 250),
82 new Item(555, 250),
new Item(557, 250),
new Item(559, 250)
85 "Hardcore Ironman players will only have one life, in addition to the standard restrictions",
86 "given to all ironmen. If a hardcore ironman dies, they will be converted to a Ironman",
87 "chat badge standard ironman. Safe deaths, such as those in minigames, will not cause",
88 "the player to become a standard ironman.",
89 },
new Item[]{new Item(20792), new Item(20794), new Item(20796), new Item(1277), new Item(1173), new Item(4119)},
Handles the starter kits.
static void refresh(Player player, StarterKit.KitData kit)
Handles refreshing the starter kit interface.
static void open(Player player)
Handles opening the starter kit interface.
final EnumSet< UpdateFlag > updateFlags
final GenericAttributes attributes
void setRunningToggled(boolean runToggled)
Sets the run toggled flag.
void open(int identification)
Opens an interface for the player.
This class represents a character controlled by a player.
final Equipment equipment
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
The container class that represents an item that can be interacted with.
void clear()
Removes all of the items from this container.
void refresh()
Forces a refresh of Equipment items to the EQUIPMENT_DISPLAY_ID widget.
The OutgoingPacket responsible for changing settings on a client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
public< K, E > void set(K key, E attribute)
Sets a generic attribute.
Holds the starter kit data.
final Item[] equipment
The starter kit equipment items.
KitData(PlayerRight right, String[] description, Item[] equipment, Item... items)
Constructs a new KitData.
final Item[] items
The starter kit items.
final PlayerRight right
The player right of the starter kit.
String[] getDescription()
final String[] description
The starter kit description.
Holds all the player right data.