Fixed Nettle Tea wrong return item

Fixed Yak Hide crafting swapped items
Fixed mining bot dropped ore ironman restrictions
Fixed Ardy teleport tab requirements
Fixed Alice's husband not requiring ghostspeak
Fixed Fishing Trawler stuck on boat bug
Fixed POH debug region info showing in non-debug mode
This commit is contained in:
downthecrop
2024-03-26 01:51:16 +00:00
committed by Ryan
parent 1d4d380e93
commit a7516f2d6e
7 changed files with 27 additions and 9 deletions
@@ -17,7 +17,7 @@ class NonBankingMiner : Script() {
}
//checks if the bot has tin ore in his inventory and drops it if he does
if(bot.inventory.containsAtLeastOneItem(Items.TIN_ORE_438)){
produceGroundItem(null,438,1,bot.location)
produceGroundItem(bot,438,1,bot.location)
bot.inventory.remove(Item(Items.TIN_ORE_438,1))
}
//The following is to prevent lucky bots from breaking by having a full inventory of gems
@@ -5,14 +5,18 @@ import core.api.removeItem
import core.api.teleport
import core.game.interaction.IntType
import core.game.interaction.InteractionListener
import core.game.node.entity.player.Player
import core.game.node.entity.player.link.TeleportManager
import core.game.node.item.Item
import core.game.world.map.Location
import core.api.hasRequirement;
class TeleTabsListener : InteractionListener {
enum class TeleTabs(val item: Int, val location: Location, val exp: Double) {
ADDOUGNE_TELEPORT(8011, Location.create(2662, 3307, 0), 61.0),
enum class TeleTabs(val item: Int, val location: Location, val exp: Double, val requirementCheck: (Player) -> Boolean = { true }) {
ADDOUGNE_TELEPORT(8011, Location.create(2662, 3307, 0), 61.0, {
player -> hasRequirement(player, "Plague City");
}),
AIR_ALTAR_TELEPORT(13599, Location.create(2978, 3296, 0), 0.0),
ASTRAL_ALTAR_TELEPORT(13611, Location.create(2156, 3862, 0), 0.0),
BLOOD_ALTAR_TELEPORT(13610, Location.create(3559, 9778, 0), 0.0),
@@ -47,7 +51,7 @@ class TeleTabsListener : InteractionListener {
val tabEnum = TeleTabs.forId(tab)
if (tabEnum != null && inInventory(player,tab)) {
val tabloc = tabEnum.location
if (inInventory(player, tab)) {
if (inInventory(player, tab) && tabEnum.requirementCheck(player)) {
if (teleport(player, tabloc, TeleportManager.TeleportType.TELETABS)) {
removeItem(player, Item(node.id, 1))
}
@@ -196,7 +196,7 @@ public final class HouseManager {
}
player.setAttribute("poh_entry", HouseManager.this);
player.lock(1);
player.sendMessage("House location: " + houseRegion.getBaseLocation() + ", entry: " + getEnterLocation());
player.debug("House location: " + houseRegion.getBaseLocation() + ", entry: " + getEnterLocation());
}
/**