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(3109, 3159, 0))
			ContentAPI.sendMessage(player, "You enter the magic portal...")
			ContentAPI.sendMessage(player, "You teleport to the Wizards' tower.")
            return@on true
        }

        on(DWTOWER_PORTAL, SCENERY, "enter"){player, _ ->
            ContentAPI.teleport(player, Location.create(2907, 3333, 0))
			ContentAPI.sendMessage(player, "You enter the magic portal...")
			ContentAPI.sendMessage(player, "You teleport to the Dark Wizards' tower.")
            return@on true
        }

        on(SORC_TOWER_PORTAL, SCENERY, "enter"){player, _ ->
            ContentAPI.teleport(player, Location.create(2703, 3406, 0))
			ContentAPI.sendMessage(player, "You enter the magic portal...")
			ContentAPI.sendMessage(player, "You teleport to Thormac the Sorceror's house.")
            return@on true
        }
    }
}