1package com.runehive.content.skill.guides;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.items.Item;
5import com.runehive.net.packet.out.SendInterface;
6import com.runehive.net.packet.out.SendItemOnInterface;
7import com.runehive.net.packet.out.SendScrollbar;
8import com.runehive.net.packet.out.SendString;
9import com.runehive.util.Utility;
31 for(
int index = 0; index < menuLength; index++)
36 for(
int i = 0; i < length; i++)
41 System.out.println(
"id: " +
id);
42 System.out.println(
"level: " + level);
43 System.out.println(
"data.menus[optionId].option[i].name: " + data.
menus[optionId].
option[i].
name);
53 if(length == 58) scrollMax = ((length + 3) * 33) + 1;
54 else if(length >= 7) scrollMax = (length * 33) + 1;
57 player.menuOpened = skillId;
58 player.optionOpened = optionId;
67 for(
int index = menuLength; index < 14; index++) {
75 for (
int index = 0,
id =
TEXT_LAYER_START + (2 * start); index < 7; index++,
id += 2) {
static void openInterface(Player player, int skillId, int optionId, boolean update)
static final int SCROLL_LAYER
static final int INTERFACE_ID
static final int ITEMS_ID
static final int CATEGORY_ID
static final int TEXT_LAYER_START
static final int TITLE_ID
static void cleanInterface(Player player, int menuLength, int start)
static final int RIGHT_OPTIONS_START
This class represents a character controlled by a player.
void send(OutgoingPacket encoder)
The container class that represents an item that can be interacted with.
The OutgoingPacket that opens an itemcontainer for Player.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String capitalizeSentence(final String string)
Capitalize each letter after .