authetic game message

This commit is contained in:
downthecrop
2021-10-31 19:40:35 -07:00
parent 47a21db8f1
commit 599c4a26de
@@ -15,12 +15,10 @@ import core.plugin.Plugin
@Initializable @Initializable
class AlKharidStairsPlugin : OptionHandler() { class AlKharidStairsPlugin : OptionHandler() {
// Zekes Shop Upstairs Door replacement
private val zekeStairsTop = Scenery(35645,Location(3284,3190,1),2,0) private val zekeStairsTop = Scenery(35645,Location(3284,3190,1),2,0)
private val zekeDoorClosed = Scenery(27988,Location(3284,3190,1),0,2) private val zekeDoorClosed = Scenery(27988,Location(3284,3190,1),0,2)
private val zekeDoorOpened = Scenery(27989,Location(3285,3190,1),0,3) private val zekeDoorOpened = Scenery(27989,Location(3285,3190,1),0,3)
// Crafting Shop Upstairs Door replacement
private val craftingStairsTop = Scenery(35645,Location(3314,3187,1),2,0) private val craftingStairsTop = Scenery(35645,Location(3314,3187,1),2,0)
private val craftingDoorClosed = Scenery(27988,Location(3314,3187,1),0,3) private val craftingDoorClosed = Scenery(27988,Location(3314,3187,1),0,3)
private val craftingDoorOpened = Scenery(27989,Location(3314,3186,1),0,0) private val craftingDoorOpened = Scenery(27989,Location(3314,3186,1),0,0)
@@ -30,7 +28,7 @@ class AlKharidStairsPlugin : OptionHandler() {
node ?: return false node ?: return false
option ?: return false option ?: return false
if(node.location == zekeDoorOpened.location || node.location == craftingDoorOpened.location){ if(node.location == zekeDoorOpened.location || node.location == craftingDoorOpened.location){
ContentAPI.sendMessage(player,"Nothing interesting happens.") ContentAPI.sendMessage(player,"This door appears to be stuck open.")
} else{ } else{
DoorActionHandler.handleDoor(player,node.asScenery()) DoorActionHandler.handleDoor(player,node.asScenery())
} }
@@ -39,9 +37,11 @@ class AlKharidStairsPlugin : OptionHandler() {
override fun newInstance(arg: Any?): Plugin<Any> { override fun newInstance(arg: Any?): Plugin<Any> {
// Zekes Shop Upstairs Door replacement
SceneryBuilder.replace(zekeDoorClosed,zekeDoorOpened) SceneryBuilder.replace(zekeDoorClosed,zekeDoorOpened)
SceneryBuilder.add(zekeStairsTop) SceneryBuilder.add(zekeStairsTop)
// Crafting Shop Upstairs Door replacement
SceneryBuilder.replace(craftingDoorClosed,craftingDoorOpened) SceneryBuilder.replace(craftingDoorClosed,craftingDoorOpened)
SceneryBuilder.add(craftingStairsTop) SceneryBuilder.add(craftingStairsTop)