mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-15 19:10:18 -07:00
TLT dialogue bugfix
This commit is contained in:
parent
56b02e4150
commit
88c615e424
4 changed files with 9 additions and 7 deletions
|
|
@ -123,7 +123,7 @@ class FishingTrawlerInteractionHandler : InteractionListener() {
|
|||
if(!session.isActive){
|
||||
return@on false
|
||||
}
|
||||
if(player.location.y > 0){
|
||||
if(player.location.z > 0){
|
||||
player.sendMessage("You can't scoop water out up here.")
|
||||
return@on true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,20 +153,20 @@ class DukeHoracioTLTDialogue(val questStage: Int) : DialogueFile() {
|
|||
"mistake."
|
||||
).also { stage++ }
|
||||
|
||||
2 -> sendNormalDialogue(
|
||||
1 -> sendNormalDialogue(
|
||||
Sigmund,
|
||||
FacialExpression.ANGRY,
|
||||
"And I suppose you believe them, goblin lover?"
|
||||
).also { stage++ }
|
||||
|
||||
3 -> player("Well, they seemed friendlier than most goblins, and", "nothing was taken from the cellar.").also { stage++ }
|
||||
4 -> npc(
|
||||
2 -> player("Well, they seemed friendlier than most goblins, and", "nothing was taken from the cellar.").also { stage++ }
|
||||
3 -> npc(
|
||||
"Actually, something was taken. Sigmund has informed",
|
||||
"me that some of the castle silverware is missing from",
|
||||
"the cellar."
|
||||
).also { stage++ }
|
||||
|
||||
5 -> {
|
||||
4 -> {
|
||||
npc("Unless it is returned, I am afraid I will have no option", "but war.")
|
||||
player!!.questRepository.getQuest("Lost Tribe").setStage(player, 47)
|
||||
stage = END_DIALOGUE
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class Patch(val player: Player, val patch: FarmingPatch, var plantable: Plantabl
|
|||
Plantable.LIMPWURT_SEED, Plantable.WOAD_SEED -> 3
|
||||
else -> 1
|
||||
}
|
||||
} else if(patch.type == PatchType.HOPS){
|
||||
harvestAmt = RandomFunction.random(3,35)
|
||||
} else {
|
||||
harvestAmt = RandomFunction.random(1,4)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.rs09.consts.Items
|
|||
import rs09.game.node.entity.state.newsys.states.SeedlingState
|
||||
|
||||
private val cans = arrayListOf(Items.WATERING_CAN8_5340,Items.WATERING_CAN7_5339,Items.WATERING_CAN6_5338,Items.WATERING_CAN5_5337,Items.WATERING_CAN4_5336,Items.WATERING_CAN3_5335,Items.WATERING_CAN2_5334,Items.WATERING_CAN1_5333)
|
||||
private val seedlings = arrayListOf(Items.OAK_SEEDLING_5358,Items.WILLOW_SEEDLING_5359,Items.MAPLE_SEEDLING_5360,Items.YEW_SEEDLING_5361,Items.MAGIC_SEEDLING_5362,Items.APPLE_TREE_SEED_5283,Items.BANANA_TREE_SEED_5284,Items.ORANGE_TREE_SEED_5285,Items.CURRY_TREE_SEED_5286,Items.PINEAPPLE_SEED_5287,Items.PAPAYA_TREE_SEED_5288,Items.PALM_TREE_SEED_5289)
|
||||
private val seedlings = arrayListOf(Items.OAK_SEEDLING_5358,Items.WILLOW_SEEDLING_5359,Items.MAPLE_SEEDLING_5360,Items.YEW_SEEDLING_5361,Items.MAGIC_SEEDLING_5362,Items.APPLE_SEEDLING_5480,Items.BANANA_SEEDLING_5481,Items.ORANGE_SEEDLING_5482,Items.CURRY_SEEDLING_5483,Items.PINEAPPLE_SEEDLING_5484,Items.PAPAYA_SEEDLING_5485,Items.PALM_SEEDLING_5486)
|
||||
|
||||
@Initializable
|
||||
class SeedlingWaterer : UseWithHandler(*cans.toIntArray()) {
|
||||
|
|
@ -25,7 +25,7 @@ class SeedlingWaterer : UseWithHandler(*cans.toIntArray()) {
|
|||
val can = event.usedWith.asItem() ?: return false
|
||||
|
||||
val nextCan = can.id.getNext()
|
||||
val wateredSeedling = seedling.id + 6
|
||||
val wateredSeedling = if(seedling.id > 5400 ) seedling.id + 8 else seedling.id + 6
|
||||
|
||||
if(player.inventory.remove(can) && player.inventory.remove(seedling)){
|
||||
player.inventory.add(Item(wateredSeedling))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue