Minor quest function refactors
Quest journal text improvements
This commit is contained in:
@@ -17,7 +17,7 @@ class GCItemOnCat : InteractionListener {
|
||||
val BEND_DOWN = 827
|
||||
|
||||
onUseWith(IntType.NPC, Items.BUCKET_OF_MILK_1927, NPCs.GERTRUDES_CAT_2997) { player, used, with ->
|
||||
if(questStage(player, GERTCAT) == 20 && removeItem(player, used.asItem())){
|
||||
if(getQuestStage(player, GERTCAT) == 20 && removeItem(player, used.asItem())){
|
||||
addItem(player, Items.BUCKET_1925)
|
||||
animate(player, BEND_DOWN) //bend down
|
||||
sendChat(with.asNpc(), "Mew!")
|
||||
@@ -27,7 +27,7 @@ class GCItemOnCat : InteractionListener {
|
||||
}
|
||||
|
||||
onUseWith(IntType.NPC, Items.DOOGLE_SARDINE_1552, NPCs.GERTRUDES_CAT_2997){ player, used, with ->
|
||||
if(questStage(player, GERTCAT) == 30 && removeItem(player, used.asItem())){
|
||||
if(getQuestStage(player, GERTCAT) == 30 && removeItem(player, used.asItem())){
|
||||
animate(player, BEND_DOWN)
|
||||
sendChat(with.asNpc(), "Mew!")
|
||||
setQuestStage(player, GERTCAT, 40)
|
||||
|
||||
@@ -11,14 +11,14 @@ class RopeOnLadyKeli : InteractionListener {
|
||||
val PAR = "Prince Ali Rescue"
|
||||
|
||||
onUseWith(IntType.NPC, Items.ROPE_954, NPCs.LADY_KELI_919) { player, used, with ->
|
||||
if(questStage(player, PAR) in 40..50 && getAttribute(player, "guard-drunk", false)){
|
||||
if(getQuestStage(player, PAR) in 40..50 && getAttribute(player, "guard-drunk", false)){
|
||||
if(removeItem(player, used.asItem())){
|
||||
sendDialogue(player, "You overpower Keli, tie her up, and put her in a cupboard.")
|
||||
setQuestStage(player, PAR, 50)
|
||||
setAttribute(player, "keli-gone", getWorldTicks() + 350)
|
||||
}
|
||||
} else {
|
||||
if (questStage(player, PAR) == 40){
|
||||
if (getQuestStage(player, PAR) == 40){
|
||||
sendMessage(player, "You need to do something about the guard first.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ import core.plugin.Initializable;
|
||||
import core.game.node.entity.player.Player;
|
||||
|
||||
import static core.api.ContentAPIKt.isQuestComplete;
|
||||
import static core.api.ContentAPIKt.questStage;
|
||||
import static core.tools.DialogueConstKt.END_DIALOGUE;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user