diff --git a/Server/src/main/kotlin/rs09/game/interaction/object/WizardGuildPortals.kt b/Server/src/main/kotlin/rs09/game/interaction/object/WizardGuildPortals.kt new file mode 100644 index 000000000..d12e0e634 --- /dev/null +++ b/Server/src/main/kotlin/rs09/game/interaction/object/WizardGuildPortals.kt @@ -0,0 +1,29 @@ +package rs09.game.interaction.`object` + +import api.ContentAPI +import core.game.world.map.Location +import rs09.game.interaction.InteractionListener + +class WizardGuildPortals : InteractionListener() { + + val WTOWER_PORTAL = 2156 + val DWTOWER_PORTAL = 2157 + val SORC_TOWER_PORTAL = 2158 + + override fun defineListeners() { + on(WTOWER_PORTAL, SCENERY, "enter"){player, _ -> + ContentAPI.teleport(player, Location.create(3114, 3171, 0)) + return@on true + } + + on(DWTOWER_PORTAL, SCENERY, "enter"){player, _ -> + ContentAPI.teleport(player, Location.create(2916, 3335, 0)) + return@on true + } + + on(SORC_TOWER_PORTAL, SCENERY, "enter"){player, _ -> + ContentAPI.teleport(player, Location.create(2701, 3395, 0)) + return@on true + } + } +} \ No newline at end of file