Enum Class TeleportScroll
- All Implemented Interfaces:
Serializable,Comparable<TeleportScroll>,Constable
Enumeration of teleport scrolls obtainable from clue scrolls and the Master Scroll Book.
TeleportScroll defines all teleport scroll types that can be used either individually or stored in the Master Scroll Book. Each scroll provides a one-time teleport to its destination, unless used from the book which consumes one charge instead.
Available Scrolls
- Desert Region - Nardah, Digsite
- Remote Areas - Feldip Hills, Lunar Isle, Mort'ton
- Special Locations - Pest Control, Piscatoris, Mos Le'Harmless
- Quest-locked - Iorwerth (Regicide), Spider Cave (Priest in Peril)
- Boss Areas - Key Master (Cerberus), Revenant Cave, Zul-andra
- Varlamore - Colossal Wyrm, Chasm of Fire
Master Scroll Book Integration
Scrolls can be stored in the Master Scroll Book. When stored:
- Charges are tracked via varbits
- Teleports are accessed through the book's interface
- Widget interactions replace item interactions
Usage Example
TeleportScroll scroll = TeleportScroll.NARDAH;
if (scroll.canUse()) {
scroll.use();
}
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()Checks if this teleport scroll can be used.booleanuse()Uses this teleport scroll.static TeleportScrollReturns the enum constant of this class with the specified name.static TeleportScroll[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NARDAH
-
DIGSITE
-
FELDIP_HILLS
-
LUNAR_ISLE
-
MORTTON
-
PEST_CONTROL
-
PISCATORIS
-
TAI_BWO_WANNAI
-
IORWERTH
-
MOS_LE_HARMLESS
-
LUMBERYARD
-
ZUL_ANDRA
-
KEY_MASTER
-
REVENANT_CAVE
-
WATSON
-
SPIDER
-
WYRM
-
CHASM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
canUse
public boolean canUse()Checks if this teleport scroll can be used.A scroll can be used if the player has the physical scroll in inventory, or has charges stored in the Master Scroll Book. Some scrolls require quest completion.
- Returns:
- true if the scroll can be used, false otherwise
-
use
public boolean use()Uses this teleport scroll.Attempts to use the scroll in the following order:
- Handle pending confirmation dialogs (Revenant Cave)
- Activate via Master Scroll Book widget if open
- Use physical scroll from inventory
- Open Master Scroll Book if available
- Returns:
- true if an action was taken, false if no scroll/book available
-