From accf2c5e71db53bc5935e50beac1e32f288464ae Mon Sep 17 00:00:00 2001 From: jarryd229 <15334102+jarryd229@users.noreply.github.com> Date: Sun, 4 Aug 2024 22:12:19 +1000 Subject: [PATCH] added diango flagstaff_of_festivities code added diango flagstaff_of_festivities code --- .../world/gregs/voidps/world/map/draynor/Diango.kts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/game/src/main/kotlin/world/gregs/voidps/world/map/draynor/Diango.kts b/game/src/main/kotlin/world/gregs/voidps/world/map/draynor/Diango.kts index 77e574d21..a1c0c0aa5 100644 --- a/game/src/main/kotlin/world/gregs/voidps/world/map/draynor/Diango.kts +++ b/game/src/main/kotlin/world/gregs/voidps/world/map/draynor/Diango.kts @@ -3,12 +3,15 @@ package world.gregs.voidps.world.map.draynor import world.gregs.voidps.engine.client.message import world.gregs.voidps.engine.client.ui.open import world.gregs.voidps.engine.entity.character.npc.npcOperate +import world.gregs.voidps.engine.inv.add +import world.gregs.voidps.engine.inv.inventory import world.gregs.voidps.world.interact.dialogue.Chuckle import world.gregs.voidps.world.interact.dialogue.Happy import world.gregs.voidps.world.interact.dialogue.Neutral import world.gregs.voidps.world.interact.dialogue.Quiz import world.gregs.voidps.world.interact.dialogue.type.choice import world.gregs.voidps.world.interact.dialogue.type.npc +import world.gregs.voidps.world.interact.dialogue.type.stringEntry import world.gregs.voidps.world.interact.entity.npc.shop.openShop npcOperate("Talk-to", "diango") { @@ -34,6 +37,11 @@ npcOperate("Holiday-items", "diango") { } npcOperate("Redeem-code", "diango") { - player.message("Your code has been succesfully processed.") - player.message("Your code was not valid. Please check it and try again.") + val code = stringEntry("Please enter your code.") + if (code == "flagstaff") { + player.inventory.add("flagstaff_of_festivities") + player.message("Your code has been succesfully processed.") + } else { + player.message("Your code was not valid. Please check it and try again.") + } } \ No newline at end of file