public class SeattaScript extends IdleScript
Modifier and Type | Class and Description |
---|---|
static class |
SeattaScript.QuitReason |
Modifier and Type | Field and Description |
---|---|
static int |
bgColor |
static int |
bgTransparency |
static int |
borderColor |
static Controller |
c |
static int |
colorDarkerGray |
static int |
colorDarkGray |
static int |
colorGreen |
static int |
colorPurple |
static int |
colorRed |
static int |
colorWhite |
static int |
colorYellow |
static ScriptInfo |
info |
static java.lang.String |
paintStatus |
static int |
paintW |
static int |
paintX |
static int |
paintY |
static int |
TICK |
paintBuilder, rowBuilder
Constructor and Description |
---|
SeattaScript() |
Modifier and Type | Method and Description |
---|---|
static void |
checkForEmptyInventorySpacesOrQuit(int amount)
Check if the player has a specified number of empty inventory spaces.
|
static void |
checkForEquippedItemOrQuit(ItemId item)
Check if the player has a specified item equipped.
|
static void |
checkForInventoryAmountOrQuit(ItemId item,
int amount)
Check if the player has a specified amount of an item in their inventory.
|
static void |
checkForNotedInventoryAmountOrQuit(ItemId item,
int amount)
Check if the player has a specified noted amount of an item in their inventory.
|
static void |
checkForQuestCompletionOrQuit(QuestId quest)
Check if the player has a specified quest completed.
|
static void |
checkForSkillLevelOrQuit(SkillId skill,
int level)
Check if the player has a specified level for SkillId.
|
static void |
checkForUnnotedInventoryAmountOrQuit(ItemId item,
int amount)
Check if the player has a specified unnoted amount of an item in their inventory.
|
static void |
handleSleepAndIdleMovement()
Sleeps if the player needs to sleep.
|
static boolean |
hasCompletedQuest(int quest)
Returns whether the player has completed the specified quest
|
static boolean |
hasCompletedQuest(QuestId quest)
Returns whether the player has completed the specified quest
|
static boolean |
hasEmptyInventorySpaces(int amount)
Returns whether the player has a specified number of empty inventory spaces.
|
static boolean |
hasEquippedItem(int item)
Returns whether the player has the specified item equipped
|
static boolean |
hasEquippedItem(ItemId item)
Returns whether the player has the specified item equipped
|
static boolean |
hasInventoryAmount(int item,
int amount)
Returns whether the player has at least the specified amount of an item in their inventory.
If you need to differentiate between unnoted and noted items, use hasUnnotedInventoryAmount() and hasNotedInventoryAmount(). |
static boolean |
hasInventoryAmount(ItemId item,
int amount)
Returns whether the player has at least the specified amount of an item in their inventory.
If you need to differentiate between unnoted and noted items, use hasUnnotedInventoryAmount() and hasNotedInventoryAmount(). |
static boolean |
hasItem(int item)
Returns whether the player has the specified item in their inventory or equipped.
|
static boolean |
hasItem(ItemId item)
Returns whether the player has the specified item in their inventory or equipped.
|
static boolean |
hasNotedInventoryAmount(int item,
int amount)
Returns whether the player has a specified noted amount of an item id in their inventory.
|
static boolean |
hasNotedInventoryAmount(ItemId item,
int amount)
Returns whether the player has a specified noted amount of an item id in their inventory.
|
static boolean |
hasNotedItem(int item)
Returns whether the player has the specified item noted in their inventory.
|
static boolean |
hasNotedItem(ItemId item)
Returns whether the player has the specified item noted in their inventory.
|
static boolean |
hasSkillLevel(int skill,
int level)
Return whether the player has the specified level for a skill.
|
static boolean |
hasSkillLevel(SkillId skill,
int level)
Return whether the player has the specified level for a skill.
|
static boolean |
hasUnnotedInventoryAmount(int item,
int amount)
Returns whether the player has a specified unnoted amount of an item id in their inventory.
|
static boolean |
hasUnnotedInventoryAmount(ItemId item,
int amount)
Returns whether the player has a specified unnoted amount of an item id in their inventory.
|
static boolean |
hasUnnotedItem(int item)
Returns whether the player has the specified item unnoted in their inventory or equipped.
|
static boolean |
hasUnnotedItem(ItemId item)
Returns whether the player has the specified item unnoted in their inventory or equipped.
|
static boolean |
isAtCoords(int x,
int y)
Returns whether the player is at a specific coordinate.
|
static boolean |
isAtLocation(Location loc)
Checks whether the player is in a Location's boundary rectangle.
|
static boolean |
isHCIM()
Returns whether the player is a Hardcore Iron Man.
|
static boolean |
isRunningAndLoggedIn()
Returns whether the script is running and the player is logged in.
|
static boolean |
isScriptRunning()
Returns whether the script is running.
|
static boolean |
isUIM()
Returns whether the player is an Ultimate Iron Man.
|
static int |
quit()
Quits the scripts with the default SCRIPT_STOPPED message.
|
static int |
quit(SeattaScript.QuitReason reason)
Quits the script and prints the message corresponding to the QuitReason.
|
static int |
quit(SeattaScript.QuitReason reason,
java.lang.String[] messageArray) |
static int |
quit(java.lang.String message) |
static void |
sleepTicks(int amountOfTicks)
Sleep for a specified number of game ticks.
|
static void |
sleepWhileBatching()
Sleeps while the player is doing a batched action.
|
static void |
walkTowards(int x,
int y)
Uses WebWalker to walk to a set of coordinates.
|
static void |
walkTowards(Location loc)
Uses WebWalker to walk to a location's stand-able tile or if null, to the first corner in its
bounds.
|
static void |
walkTowardsNearestBank()
Uses WebWalker to walk to the nearest bank.
|
chatCommandInterrupt, chatMessageInterrupt, keyPressInterrupt, npcDamagedInterrupt, paintInterrupt, playerDamagedInterrupt, privateMessageReceivedInterrupt, questMessageInterrupt, serverMessageInterrupt, setController, start, tradeMessageInterrupt
public static final Controller c
public static final ScriptInfo info
public static final int TICK
public static final int colorPurple
public static final int colorDarkGray
public static final int colorDarkerGray
public static final int colorWhite
public static final int colorGreen
public static final int colorYellow
public static final int colorRed
public static final int borderColor
public static final int bgColor
public static final int bgTransparency
public static final int paintX
public static final int paintY
public static final int paintW
public static java.lang.String paintStatus
public static void walkTowards(Location loc)
loc
- - Location to walk topublic static void walkTowards(int x, int y)
x
- - X coordinate to walk toy
- - y coordinate to walk topublic static void walkTowardsNearestBank()
public static boolean isAtLocation(Location loc)
loc
- Location -- Location to checkpublic static boolean isAtCoords(int x, int y)
x
- int - X coordinate to checky
- int - Y coordinate to checkpublic static boolean hasSkillLevel(SkillId skill, int level)
skill
- SkillId -- SkillId to checklevel
- int -- Level to check forpublic static boolean hasSkillLevel(int skill, int level)
skill
- id -- Id of the skill to checklevel
- int -- Level to check forpublic static boolean hasCompletedQuest(int quest)
quest
- int -- Quest id to checkpublic static boolean hasCompletedQuest(QuestId quest)
quest
- QuestId -- QuestId to checkpublic static boolean hasInventoryAmount(ItemId item, int amount)
item
- itemId - Item to check foramount
- int - Amount of itemId to check forpublic static boolean hasInventoryAmount(int item, int amount)
item
- int - Item to check foramount
- int - Amount of itemId to check forpublic static boolean hasNotedInventoryAmount(ItemId item, int amount)
item
- ItemId -- Item to check foramount
- int -- Amount to check forpublic static boolean hasNotedInventoryAmount(int item, int amount)
item
- int -- Item to check foramount
- int -- Amount to check forpublic static boolean hasUnnotedInventoryAmount(ItemId item, int amount)
item
- int -- Item to check foramount
- int -- Amount to check forpublic static boolean hasUnnotedInventoryAmount(int item, int amount)
item
- int -- Item to check foramount
- int -- Amount to check forpublic static boolean hasEquippedItem(ItemId item)
item
- itemId - Item to check forpublic static boolean hasEquippedItem(int item)
item
- int - Item to check forpublic static boolean hasItem(ItemId item)
item
- ItemId -- ItemId to check forpublic static boolean hasItem(int item)
item
- int -- Item to check forpublic static boolean hasUnnotedItem(int item)
item
- int -- Item idpublic static boolean hasUnnotedItem(ItemId item)
item
- ItemId -- ItemIdpublic static boolean hasNotedItem(int item)
item
- ItemId -- ItemIdpublic static boolean hasNotedItem(ItemId item)
item
- int -- Item idpublic static boolean hasEmptyInventorySpaces(int amount)
amount
- int -- Number of empty spaces to check forpublic static void checkForQuestCompletionOrQuit(QuestId quest)
quest
- QuestId -- QuestId of the quest to checkpublic static void checkForSkillLevelOrQuit(SkillId skill, int level)
skill
- SkillId -- SkillId of the skill to checklevel
- int -- Level to check forpublic static void checkForInventoryAmountOrQuit(ItemId item, int amount)
item
- ItemId -- ItemId to check foramount
- int -- Amount of item to check forpublic static void checkForUnnotedInventoryAmountOrQuit(ItemId item, int amount)
item
- ItemId -- ItemId to check foramount
- int -- Amount of item to check forpublic static void checkForNotedInventoryAmountOrQuit(ItemId item, int amount)
item
- ItemId -- ItemId to check foramount
- int -- Amount of item to check forpublic static void checkForEquippedItemOrQuit(ItemId item)
item
- ItemId -- ItemId to check forpublic static void checkForEmptyInventorySpacesOrQuit(int amount)
amount
- int -- Number of empty spaces to check forpublic static boolean isUIM()
public static boolean isHCIM()
public static boolean isRunningAndLoggedIn()
public static boolean isScriptRunning()
public static void handleSleepAndIdleMovement()
public static void sleepTicks(int amountOfTicks)
amountOfTicks
- int -- The number of ticks to sleep for.public static void sleepWhileBatching()
public static int quit()
public static int quit(java.lang.String message)
public static int quit(SeattaScript.QuitReason reason)
reason
- QuitReason -- Reason printed when quitting.public static int quit(SeattaScript.QuitReason reason, java.lang.String[] messageArray)
reason
- QuitReason -- Reason printed when quitting.messageArray
- String[] -- Array of message strings to print after the QuitReason.