mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Added missing Master Crafter dialogue
This commit is contained in:
parent
3b967791a4
commit
1d4d380e93
1 changed files with 29 additions and 29 deletions
|
|
@ -49,7 +49,8 @@ class MasterCrafterDialogue(player: Player? = null) : DialoguePlugin(player) {
|
|||
).also { stage++ }
|
||||
|
||||
101 -> options(
|
||||
"99000 gold! Are you mad?", "That's fine."
|
||||
"99000 gold! Are you mad?",
|
||||
"That's fine."
|
||||
).also { stage++ }
|
||||
|
||||
102 -> {
|
||||
|
|
@ -59,26 +60,10 @@ class MasterCrafterDialogue(player: Player? = null) : DialoguePlugin(player) {
|
|||
"99000 gold! Are you mad?"
|
||||
).also { stage++ }
|
||||
|
||||
2 -> {
|
||||
when {
|
||||
!inInventory(player, Items.COINS_995, 99000) -> playerl(
|
||||
FacialExpression.NEUTRAL,
|
||||
"But, unfortunately, I don't have enough money with me."
|
||||
).also { stage = 111 }
|
||||
|
||||
freeSlots(player) < 2 -> npcl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"Unfortunately all Skillcapes are only available with a free hood, it's part " +
|
||||
"of a skill promotion deal; buy one get one free, you know. So you'll need " +
|
||||
"to free up some inventory space before I can sell you one."
|
||||
).also { stage = END_DIALOGUE }
|
||||
|
||||
else -> playerl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"That's fine."
|
||||
).also { stage = 112 }
|
||||
}
|
||||
}
|
||||
2 -> playerl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"That's fine."
|
||||
).also { stage = 110 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -88,19 +73,34 @@ class MasterCrafterDialogue(player: Player? = null) : DialoguePlugin(player) {
|
|||
"such a prestigious item! You can find me here if you change your mind."
|
||||
).also { stage = END_DIALOGUE }
|
||||
|
||||
110 -> {
|
||||
when {
|
||||
!inInventory(player, Items.COINS_995, 99000) -> playerl(
|
||||
FacialExpression.NEUTRAL,
|
||||
"But, unfortunately, I don't have enough money with me."
|
||||
).also { stage = 111 }
|
||||
|
||||
freeSlots(player) < 2 -> npcl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"Unfortunately all Skillcapes are only available with a free hood, it's part " +
|
||||
"of a skill promotion deal; buy one get one free, you know. So you'll need " +
|
||||
"to free up some inventory space before I can sell you one."
|
||||
).also { stage = END_DIALOGUE }
|
||||
|
||||
else -> {
|
||||
Skillcape.purchase(player, Skills.CRAFTING)
|
||||
npcl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"Excellent! Wear that cape with pride my friend."
|
||||
).also { stage = END_DIALOGUE }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
111 -> npcl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"Well, come back and see me when you do."
|
||||
).also { stage = END_DIALOGUE }
|
||||
|
||||
112 -> {
|
||||
Skillcape.purchase(player, Skills.CRAFTING)
|
||||
npcl(
|
||||
FacialExpression.FRIENDLY,
|
||||
"Excellent! Wear that cape with pride my friend."
|
||||
).also { stage = END_DIALOGUE }
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue