syncing up a few tweaks to entries
This commit is contained in:
parent
24b8122273
commit
b4b56f4e1f
@ -1,4 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
|
||||
@ -4,5 +4,5 @@ import game_logic.runescape.RunescapeRoutines
|
||||
|
||||
|
||||
fun main() {
|
||||
RunescapeRoutines.processInventoryAtFurnace(2137)
|
||||
RunescapeRoutines.processInventoryAtFurnace(2077)
|
||||
}
|
||||
10
src/main/kotlin/entries/HighAlch.kt
Normal file
10
src/main/kotlin/entries/HighAlch.kt
Normal file
@ -0,0 +1,10 @@
|
||||
package entries
|
||||
|
||||
import game_logic.runescape.RunescapeRoutines
|
||||
|
||||
|
||||
fun main(){
|
||||
val natureRunes = 15331
|
||||
val necklaces = 4948
|
||||
RunescapeRoutines.highAlchInvPoint(Math.min(natureRunes, necklaces))
|
||||
}
|
||||
8
src/main/kotlin/entries/IncenseEntry.kt
Normal file
8
src/main/kotlin/entries/IncenseEntry.kt
Normal file
@ -0,0 +1,8 @@
|
||||
package entries
|
||||
|
||||
import game_logic.runescape.RunescapeRoutines
|
||||
|
||||
|
||||
fun main() {
|
||||
RunescapeRoutines.fullRunIncense(0,0, 46, 23)
|
||||
}
|
||||
@ -1,8 +1,12 @@
|
||||
package game_logic.runescape
|
||||
|
||||
import controllers.PointerVarianceBounds
|
||||
import params.StandingTaskParams
|
||||
import params.TravelTaskParams
|
||||
import util.HelperFunctions
|
||||
import java.awt.Point
|
||||
import java.awt.event.ActionEvent
|
||||
import java.awt.event.InputEvent
|
||||
import java.awt.event.KeyEvent
|
||||
|
||||
/**
|
||||
@ -105,7 +109,11 @@ object RunescapeRoutines {
|
||||
* @param bankPoint Optional. The Point location of the bank to use.
|
||||
*
|
||||
*/
|
||||
fun cleanHerbs(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun cleanHerbs(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
util.Constants.FullInventory,
|
||||
@ -127,7 +135,11 @@ object RunescapeRoutines {
|
||||
* @param bankPoint Optional. The Point location of the bank to use.
|
||||
*
|
||||
*/
|
||||
fun cutIncenseSticks(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun cutIncenseSticks(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
util.Constants.FullInventory,
|
||||
@ -149,7 +161,11 @@ object RunescapeRoutines {
|
||||
* @param bankPoint Optional Point location of the bank to use.
|
||||
*
|
||||
*/
|
||||
fun coatIncenseSticks(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun coatIncenseSticks(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
util.Constants.CoatingIncenseWithAsh,
|
||||
@ -169,7 +185,11 @@ object RunescapeRoutines {
|
||||
* @param agent Optional Agent instance to use for banking actions.
|
||||
* @param bankPoint Optional Point location of the bank to use.
|
||||
*/
|
||||
fun infuseIncenseSticks(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun infuseIncenseSticks(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
util.Constants.InfusingIncenseWithHerb,
|
||||
@ -193,7 +213,11 @@ object RunescapeRoutines {
|
||||
* @deprecated This method needs validation before use in production.
|
||||
*/
|
||||
@Deprecated("Needs validation before you use it for realsies")
|
||||
fun craftPotionAtBank(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun craftPotionAtBank(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
util.Constants.FullInventory,
|
||||
@ -272,6 +296,23 @@ object RunescapeRoutines {
|
||||
RSOrchestrator.doTravelTask(agent, params)
|
||||
}
|
||||
|
||||
fun highAlchInvPoint(volume: Int) {
|
||||
val agent = RSOrchestrator.getInstance()
|
||||
val invSlot = agent.promptUserForPoint("Place mouse over stack you'd like to high alch")
|
||||
|
||||
val highAlchSleep = 16L * 3L
|
||||
|
||||
|
||||
agent.doLoop(volume, 1) {
|
||||
agent.automaton.keyPress(KeyEvent.VK_MINUS)
|
||||
agent.sleepForNTicks(1)
|
||||
agent.automaton.moveMouse(agent.automaton.getNearbyPoint(invSlot, PointerVarianceBounds(5, 5)))
|
||||
agent.sleepForNTicks(1)
|
||||
agent.automaton.mouseClick(InputEvent.BUTTON1_DOWN_MASK)
|
||||
agent.sleepForNTicks(1)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Crafts a specified volume of necromancy ink at the bank.
|
||||
*
|
||||
@ -283,10 +324,14 @@ object RunescapeRoutines {
|
||||
* @param agent The orchestrator instance to use, defaults to global instance
|
||||
* @param bankPoint The tile position of the bank booth to use
|
||||
*/
|
||||
fun createNecromancyInk(volume: Int, agent: RSOrchestrator = RSOrchestrator.getInstance(), bankPoint: Point = agent.getBankPoint()) {
|
||||
fun createNecromancyInk(
|
||||
volume: Int,
|
||||
agent: RSOrchestrator = RSOrchestrator.getInstance(),
|
||||
bankPoint: Point = agent.getBankPoint()
|
||||
) {
|
||||
val params = StandingTaskParams(
|
||||
volume,
|
||||
20*13,
|
||||
20 * 13,
|
||||
bankPoint,
|
||||
KeyEvent.VK_F6,
|
||||
KeyEvent.VK_MINUS,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user